Skip to main content
create-next-app is the official CLI tool for bootstrapping a new Next.js project. It sets up a fully configured project with your chosen options.

Usage

Flags

TypeScript and JavaScript

boolean
Initialize as a TypeScript project. This is the default.
boolean
Initialize as a JavaScript project.

Styling

boolean
Initialize with Tailwind CSS configuration. Enabled by default.

Linting

boolean
Initialize with ESLint configuration.
boolean
Initialize with Biome configuration (fast linter and formatter).
boolean
Skip linter configuration entirely.

Router and structure

boolean
Initialize as an App Router project.
boolean
Initialize a minimal project with only route handlers (no UI).
boolean
Place the project code inside a src/ directory.
string
default:"@/*"
Configure the import alias used throughout the project.
boolean
Initialize a minimal empty project.

Bundler

boolean
Enable Rspack as the bundler in the generated project.
Turbopack is the default bundler for Next.js development. You can switch to webpack at any time using next dev --webpack or next build --webpack in your project.

Package manager

boolean
Bootstrap the project using npm.
boolean
Bootstrap the project using pnpm.
boolean
Bootstrap the project using Yarn.
boolean
Bootstrap the project using Bun.

Examples

string
Bootstrap from a named Next.js example or any public GitHub repository URL.
string
Specify a subdirectory path within the example repository.

Compiler

boolean
Initialize with React Compiler enabled.

Other

boolean
Clear any stored CLI preferences and start fresh.
boolean
Create the project files without running package installation.
boolean
Skip git repository initialization.
boolean
Include AGENTS.md and CLAUDE.md files to guide coding agents. Enabled by default.
boolean
Accept all defaults or reuse previous preferences without interactive prompts.
boolean
Show all available options.
boolean
Output the create-next-app version number.

Interactive mode

Run create-next-app without flags to start the interactive prompt:
You will be asked:
Choosing customize settings presents:

Non-interactive mode

Pass all flags at once to skip prompts:

Examples

Default template

From an official example

Browse all available examples in the Next.js repository.

From a GitHub repository

JavaScript project

(--no-* negates any default option.)