2025-03-14 21:59:59 -06:00
|
|
|
# next
|
|
|
|
|
|
|
|
|
|
> React framework that uses server-side rendering for building optimized web applications.
|
2025-05-08 12:26:01 -06:00
|
|
|
> More information: <https://nextjs.org/docs/app/api-reference/cli/next>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Start the current application in development mode:
|
|
|
|
|
|
|
|
|
|
`next dev`
|
|
|
|
|
|
|
|
|
|
- Start the current application and listen on a specific port:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`next dev {{[-p|--port]}} {{port}}`
|
2025-03-14 21:59:59 -06: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-05-08 12:26:01 -06:00
|
|
|
`next start {{[-p|--port]}} {{port}}`
|
2025-03-14 21:59:59 -06: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-05-08 12:26:01 -06:00
|
|
|
`next {{build|dev|export|start|telemetry}} {{[-h|--help]}}`
|