rsnext/docs/api-reference/cli.md
Luis Alvarez D d1fdd2bbf8 Add descriptions to documentation pages (#9901)
* Added descriptions

* Added descriptions to API Reference

* Added descriptions to API Routes

* Added descriptions to basic features

* Added descriptions to the routing docs

* Update exportPathMap.md

Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-01-03 13:16:51 -05:00

964 B

description
The Next.js CLI allows you to start, build, and export your application. Learn more about it here.

Next.js CLI

The Next.js CLI allows you to start, build, and export your application.

To get a list of the available CLI commands, run the following command inside your project directory:

npx next -h

(npx comes with npm 5.2+ and higher)

The output should look like this:

Usage
  $ next <command>

Available commands
  build, start, export, dev, telemetry

Options
  --version, -v   Version number
  --inspect       Enable the Node.js inspector
  --help, -h      Displays this message

For more information run a command with the --help flag
  $ next build --help

You can pass any node arguments to next commands:

NODE_OPTIONS="--throw-deprecation" next
NODE_OPTIONS="-r esm" next
NODE_OPTIONS="--inspect" next