CLI
The documentation template includes standard Next.js CLI commands for development, building, and production serving.
dev
Starts the development server with hot module replacement and Turbopack:
bash
bun run dev
| Flag | Description |
|---|---|
-p, --port | Port to start the dev server on (default: 3000) |
-H, --hostname | Hostname to bind (default: localhost) |
--turbopack | Enable Turbopack (default in Next.js 16) |
build
Creates an optimised production build:
bash
bun run build
This generates static HTML, CSS, and JavaScript in the .next directory. Pages using "use cache" are pre-rendered at build time.
start
Starts the production server:
bash
bun run start
Run bun run build before starting the production server. The server listens on port 3000 by default.
lint
Runs Biome to lint and check the project:
bash
bun run lint
This uses the Biome configuration in biome.jsonc with recommended rules for TypeScript and React.