CLI Commands

Running an app

  1. running an application on locally

    npm run develop # or yarn develop

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

  2. preparing optimized production build

    npm run build
  3. serving locally production build

    npm run serve

    Note that your site by default will be available on http://localhost:9000

  4. deploying to github pages

    npm run deploy:gh

    See more HERE