Next.js 16 · Command line

Use another port

Start the dev server on port 4000.

npx next dev -p 4000

Official Next.js 16 documentation

More command line commands

All command line commands · Next.js 16 cheatsheet

Was this page helpful?