Create Next App

The easiest way to get started with Next.js is by using create-next-app. This CLI tool enables you to quickly start building a new Next.js application, with everything set up for you. You can create a new app using the default Next.js template, or by using one of the official Next.js examples. To get started, use the following command:

npx create-next-app@latest
# or
yarn create next-app

You can create a TypeScript project with the --ts, --typescript flag:

npx create-next-app@latest --ts
# or
yarn create next-app --typescript

Options

create-next-app comes with the following options:

Why use Create Next App?

create-next-app allows you to create a new Next.js app within seconds. It is officially maintained by the creators of Next.js, and includes a number of benefits:

Related

For more information on what to do next, we recommend the following sections:

Pages: Learn more about what pages are in Next.js.
CSS Support: Use the built-in CSS support to add custom styles to your app.
CLI: Learn more about the Next.js CLI.