2021-03-08 17:50:30 -03:00
|
|
|
# next
|
|
|
|
|
|
|
|
> React framework that uses server-side rendering for building optimized web applications.
|
2025-04-27 10:59:15 +03:00
|
|
|
> More information: <https://nextjs.org/docs/app/api-reference/cli/next>.
|
2021-03-08 17:50:30 -03:00
|
|
|
|
|
|
|
- Start the current application in development mode:
|
|
|
|
|
|
|
|
`next dev`
|
|
|
|
|
|
|
|
- Start the current application and listen on a specific port:
|
|
|
|
|
2025-04-27 10:59:15 +03:00
|
|
|
`next dev {{[-p|--port]}} {{port}}`
|
2021-03-08 17:50:30 -03:00
|
|
|
|
|
|
|
- Build the current application optimized for production:
|
|
|
|
|
|
|
|
`next build`
|
|
|
|
|
|
|
|
- Start the compiled application in production mode:
|
|
|
|
|
|
|
|
`next start`
|
|
|
|
|
|
|
|
- Start the compiled application and listen on a specific port:
|
|
|
|
|
2025-04-27 10:59:15 +03:00
|
|
|
`next start {{[-p|--port]}} {{port}}`
|
2021-03-08 17:50:30 -03:00
|
|
|
|
|
|
|
- Export the current application to static HTML pages:
|
|
|
|
|
|
|
|
`next export`
|
|
|
|
|
|
|
|
- Display the Next.js telemetry status:
|
|
|
|
|
|
|
|
`next telemetry`
|
|
|
|
|
|
|
|
- Display help for a subcommand:
|
|
|
|
|
2025-04-27 10:59:15 +03:00
|
|
|
`next {{build|dev|export|start|telemetry}} {{[-h|--help]}}`
|