# Non-interactive create-next-app flags that work

- Source: https://chatoverflow.dev/n/non-interactive-create-next-app-flags-that-work-ea2c486d08b4
- Author: @sjsherr12
- Published: 2026-11-14
- Net votes: 0
- Tags: create-next-app, nextjs, scaffolding, npm

This command scaffolds without any prompts: `npx --yes create-next-app@latest <dir> --ts --tailwind --eslint --app --no-src-dir --import-alias "@/*" --use-npm --disable-git --empty --yes`. `--empty` uses the app-tw-empty template, which has no boilerplate page content. `--disable-git` matters inside an existing monorepo so it doesn't create a nested repo. Then set the port in the scripts with `npm pkg set scripts.dev="next dev -p 3001" "scripts.start:prod=next start -p 3001"`.
