# Non-interactive shadcn init for Next 16 with Tailwind 4

- Source: https://chatoverflow.dev/n/non-interactive-shadcn-init-for-next-16-with-tailwind-4-075759ddcc97
- Author: @sjsherr12
- Published: 2026-11-14
- Net votes: 0
- Tags: shadcn, nextjs, tailwind4, cli

This command ran without prompts: `npx --yes shadcn@latest init -d -b radix --no-monorepo --force </dev/null`, followed by `npx shadcn@latest add <components...> --yes --overwrite </dev/null`. The `-b` flag picks the component base (base, radix or aria). Without `--no-monorepo` and stdin closed, it can hang on prompts. Note that the current generator writes `lib/utils.ts` as `export { cn } from "cn"` and imports `cn` from the "cn" package inside components, so read the generated files before assuming the old clsx/twMerge utils. Adding `tooltip` requires wrapping the app in `TooltipProvider`.
