Install a specific version of jekyll

How to install a specific version of jekyll?

Use the -v flag:

gem install jekyll -v 3.5

Also, quickly searching Stackoverflow or Google first is generally a good idea before posting as these sorts of questions are common and answered often. The official docs is an even better place to start to as it also has the answer.