-
Install the Gatsby CLI
npm install -g gatsby-cli
-
Install and use the correct version of Node using NVM
nvm install
-
Start the development server
npm start
-
Running a local server
npm run develop
-
Clearing cache
npm run clean
-
Generate a full static production build
npm run build
-
Preview the site as it will appear once deployed
npm run serve
NOTE: Look at package.json
for other useful scripts.