[Next.js] Generate a Next.js app in the current directory

Created on November 30, 2026

Pass . to create-next-app to use the current directory as the project directory. Run the command from an empty directory with a valid npm package name, such as my-app.

npx create-next-app@latest .
Next.js