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
FlagDescription
-p, --portPort to start the dev server on (default: 3000)
-H, --hostnameHostname to bind (default: localhost)
--turbopackEnable 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.