gappsapps_tech

Table of Contents

GatsbyJS cheat sheet

First, install the global executable:

npm install -g gatsby-cli

For a list of commands and options...

gatsby --help

Create a new local Gatsby site using the default starter (see Quick Start on how to use other starters).

gatsby new my-site-name

Start the Gatsby development server.

gatsby develop

-H, --host -p, --port -o, --open -S, --https

gatsby build

Set host. Defaults to localhost

Set port. Defaults to 8000

Open the site in your (default) browser for you UseHTTPS

Compile your application and make it ready for deployment.

--prefix-paths

--no-uglify

--open-tracing-config- file

Build site with link paths prefixed (set pathPrefix in your config)

Build site without uglifying JS bundles (for debugging)

Edit this page on GitHub