How to Install Jekyll and Launch a New Site

In this article, we will cover a basic installation of the Jekyll static site generator. Then, we will create and launch the default Jekyll site, which you can later customize.

To learn more about what Jekyll is and how you can use it, check out the previous article regarding What is Jekyll?

Moving Forward with a New Jekyll Installation

This tutorial starts on the command line, and you will need to revisit the command line quite often throughout using Jekyll. But that is no reason to fear! You may find the commands involved are lightweight and easy to remember. After a few practice runs, you will have them down.

Follow along with the steps below to install Jekyll and launch a new site.

  1. Open your favorite Terminal client.
  2. christopherm installJekyll Selection 01

    Type sudo gem install Jekyll. (Sudo privilege may or not be required depending on your user configuration.)

  3. christopherm installJekyll Selection 02

    Provide sudo password.


  4. christopherm installJekyll Selection 03

    Change directory to the location where you want your new site files to reside. For example, if you want to save your site files to the desktop, type cd Desktop.

  5. christopherm installJekyll Selection 04

    To create your site type jekyll new and the desired name for the directory. For example, jekyll new example.

  6. christopherm installJekyll Selection 05

    Change directories into the location of the site files. For example, type cd example.

  7. christopherm installJekyll Selection 06

    To make sure everything was installed properly, launch the example site by typing jekyll serve.

  8. christopherm installJekyll Selection 07

    To see the site, visit this address in your browser: Alternatively, you can browse to localhost:4000.

Well done on completing this tutorial! You can now install and launch a Jekyll site. Stay tuned, as we work deeper into Jekyll to customize our site.

Christopher Maiorana Content Writer II

Christopher Maiorana joined the InMotion community team in 2015 and regularly dispenses tips and tricks in the Support Center, Community Q&A, and the InMotion Hosting Blog.

More Articles by Christopher

Was this article helpful? Let us know!