Scaffolding with create-next-app
Generate a complete, ready-to-run Next.js project with one command — and learn every prompt so you get the JavaScript setup this module uses.
One command sets up everything
Remember the last React lesson — the CDN scripts, the in-browser Babel, the "this doesn't scale" warning? A real project needs a bundler, a dev server, a linter, and a folder structure, all configured correctly. Setting that up by hand is tedious and error-prone.
create-next-app does it all in one command. It creates a folder, installs React and Next.js, and writes a working starter project you can run immediately. This is the standard way every Next.js project begins — from a weekend hobby site to apps at OpenAI.
npx (which comes with npm) runs a package without installing it permanently. npx create-next-app@latest fetches the newest scaffolder, runs it once, and is done — perfect for a one-time setup tool.