Skip to content

Latest commit

 

History

History
103 lines (67 loc) · 1.97 KB

GATSBY.md

File metadata and controls

103 lines (67 loc) · 1.97 KB

Gatsby Quick Reference (Cheat Sheet)

Gatsby Commands

$ 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

new Command

$ 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

develop Command

$ 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.

build Command

$ 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).

serve Command

$ 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.

Meta

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.