Next.js › Next.js Project Setup & Configuration
How do you create a new Next.js project from scratch?
BeginnerAnswer
You run the create-next-app command in your terminal, which walks you through a few setup questions like whether you want TypeScript or Tailwind CSS, and then generates a fully working project structure with all the necessary configuration files already in place.
npx create-next-app@latest my-app
cd my-app
npm run devReal-world example A developer starting a new personal blog project runs create-next-app, answers a few quick setup questions, and has a working development server running within a couple of minutes.