This quick start is intended for intermediate to advanced developers. For a gentler intro to Gatsby, head to our tutorial!
Video hosted on egghead.io.
Note: this video uses
npx, which is a tool to execute an npm package without first installing it. Running the command
npx gatsby new is the same as running
gatsby new after installing the gatsby-cli on your computer.
The above command installs Gatsby CLI globally on your machine.
Gatsby will start a hot-reloading development environment accessible by default at
src/pages. Saved changes will live reload in the browser.
Gatsby starts a local HTML server for testing your built site. Remember to build your site using
gatsby build before using this command.
To see detailed documentation for the CLI commands, run
gatsby --help in the terminal.
For specific commands, run
gatsby COMMAND_NAME --help e.g.
gatsby new --help.
For more information on the Gatsby CLI, visit the CLI reference section of the docs.
Edit this page on GitHub