Getting Started

In this tutorial, we learn how to install gatsbyjs cli and set up a new project.


  1. Make sure Nodejs is installed in your pc.
  2. Familiar with the command prompt.
  3. Basic knowledge of react is required. If you don’t know check out React Tutorials

Now open your terminal and run below commands.

npm install --global gatsby-cli

If you are using mac use sudo in front of npm.

Setup a new project using cli

gatsby new gatsby-site
cd gatsby-site
gatsby develop // to fire the dev server

In your browser open localhost:8000