1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-06 00:35:23 +02:00
tldr/pages/common/next.md
2025-04-27 10:59:15 +03:00

36 lines
810 B
Markdown

# next
> React framework that uses server-side rendering for building optimized web applications.
> More information: <https://nextjs.org/docs/app/api-reference/cli/next>.
- Start the current application in development mode:
`next dev`
- Start the current application and listen on a specific port:
`next dev {{[-p|--port]}} {{port}}`
- 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:
`next start {{[-p|--port]}} {{port}}`
- Export the current application to static HTML pages:
`next export`
- Display the Next.js telemetry status:
`next telemetry`
- Display help for a subcommand:
`next {{build|dev|export|start|telemetry}} {{[-h|--help]}}`