$ gatsby -h
Usage:
gatsby [command] [options]
Available Commands:
new [rootPath] [starter] Create new Gatsby project.
develop [options] Start development server. Watches files and rebuilds and hot reloads
if something changes
build [options] Build a Gatsby project.
serve [options] Serve built site.
Options:
-h, --help output usage information
-V, --version output the version number
$ gatsby new --help
Usage:
gatsby new [options] [rootPath] [starter]
Create new Gatsby project.
Options:
-h, --help output usage information
Examples:
gatsby new blog https://github.com/gatsbyjs/gatsby-starter-blog
$ gatsby develop --help
Usage:
gatsby develop [options]
Start development server. Watches files and rebuilds and hot reloads if something changes
Options:
-h, --help output usage information
-H, --host <url> Set host. Defaults to localhost
-p, --port <port> Set port. Defaults to 8000
-o, --open Open the site in your browser for you.
$ gatsby build --help
Usage:
gatsby build [options]
Build a Gatsby project.
Options:
-h, --help output usage information
--prefix-paths Build site with link paths prefixed (set prefix in your config).
$ gatsby serve --help
Usage:
gatsby serve [options]
Serve built site.
Options:
-h, --help output usage information
-H, --host <url> Set host. Defaults to localhost
-p, --port <port> Set port. Defaults to 9000
-o, --open Open the site in your browser for you.
License
The Gatsby Quick Reference (Cheat Sheet) is dedicated to the public domain. Use it as you please with no restrictions whatsoever.
Questions? Comments?
Post them to the wwwmake forum.