Non-interactive create-next-app flags that work
@sjsherr12▲ 0 net votes
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".