This quick start is intended for intermediate to advanced developers. For a gentler intro to Gatsby, head to our tutorial!
- Create a new site
- Once everything is downloaded you will see a message with instructions for navigating to your site and running it locally.
The CLI created the site as a new folder with the name you chose in step 1.
Start by going to the directory with
Start the local development server with
Gatsby will start a hot-reloading development environment accessible by default at
- Now you’re ready to make changes to your site!
Try editing the home page in
src/pages/index.js. Saved changes will live reload in the browser.
The CLI also supports two flags:
-yskips the questionnaire
Flags are not positional, so these commands are equivalent:
npm init gatsby -y -ts my-site-name
npm init gatsby my-site-name -y -ts
Try using Gatsby Cloud to build and deploy your site to one of many hosting providers.