DEV Community

Cover image for Gatsby cli commands
sakethk
sakethk

Posted on

Gatsby cli commands

  1. gatsby develop
  2. gatsby build
  3. gatsby serve
  4. gatsby info
  5. gatsby clean
  6. gatsby repl
  7. gatsby new [rootPath] [starter]

gatsby develop

Starts development server. If something changes in the project it will rebuilds the server and perform hot reload.

gatsby build

Generates build from the source code.

gatsby serve

Serve previously built Gatsby site.

gatsby info

It gives gatsby environment information and packages information

gatsby clean

Clears the cache, assets and build

gatsby repl

It is node repl with context of Gatsby environment

Top comments (0)