Docs
Install Next.js
Create a new Next.js app with TypeScript, Tailwind CSS and the App Router.
Create the app
Step 1: Run create-next-app
npx create-next-app@latest my-app --ts --tailwind --eslint --app --src-dir --import-alias "@/*"--tsTypeScript,--tailwindTailwind CSS v4,--eslintlinting.--appthe App Router,--src-dircode insrc/,--import-alias "@/*"imports like@/components/....- The CLI may ask a few more questions (for example about React Compiler). The defaults are fine.
Step 2: Start the dev server
cd my-app && npm run devOpen http://localhost:3000 to check it works.
Next
Tailwind CSS is already set up. Continue with npx shadcn@latest init (see Add utilities).