Cli

gatsby new gatsby-site

Start development server

gatsby develop

Gatsby will start a hot-reloading development environment accessible by default at http://localhost:8000.

Create a production build

gatsby build

Gatsby will perform an optimized production build for your site, generating static HTML and per-route JavaScript code bundles.

Serve the production build locally

gatsby serve

Gatsby starts a local HTML server for testing your built site. Remember to build your site using gatsby build before using this command.

Last updated