Scaffold a standard Next.js app
Starting a new product or prototype
Next.js 16+ · Command
create-next-app scaffolds a Next.js application from the default template or a public GitHub example. It supports interactive prompts and command-line options for repeatable project setup.
create-next-app scaffolds a new Next.js application from the default template or a public GitHub example. It can run interactively or accept options for a non-interactive setup, then creates the project directory and installs its dependencies.
create-next-app <project-directory> [options]| Name | Type | Description |
|---|---|---|
project-directory | string | Destination directory or project name for the generated application. |
options | string | Optional CLI flags controlling the generated project. |
Creates a Next.js project directory and installs the required dependencies.
--example option lets you bootstrap from a public GitHub example instead.--help to inspect the available command-line options.--version to print the CLI version.npx create-next-app@latest my-app --ts --eslint --appCreates a new Next.js application named my-app with TypeScript, ESLint, and the App Router enabled.
Starting a new product or prototype
Reproducing a documented starter
Automating project creation
create-next-app used for?It is the CLI for scaffolding a new Next.js application. It supports the default template and examples from public GitHub repositories.
Follow-up: How would you start from an example? Use --example with an example name or repository URL, followed by the project name.
The command accepts a project directory and options. It can prompt for configuration interactively, or configure the project non-interactively through flags.
Follow-up: How can a script disable a default feature? Prefix its option with --no-, such as --no-eslint.
Use a package-manager launcher such as npx create-next-app@latest, pnpm create next-app, yarn create next-app, or bun create next-app. Add the project name and supported options.
Follow-up: What is the basic positional structure? It is create-next-app <project-directory> [options].
nextApp RouterInstallation