Skip to main content

Prerequisites#

  • Node.js ^20.19.0 or >=22.12.0
  • npm, pnpm, yarn, or bun on your PATH
  • Network access for create-vite, your package manager, and the shadcn registry

Run the CLI#

Equivalent commands:

The interactive flow asks for:

  1. Project name and directory
  2. Package manager
  3. Tailwind CSS version — v4 (default) or v3
  4. shadcn/ui setup — interactive CLI or quickstart preset
  5. Starter Button + showcase demo
  6. Git repository initialization

Non-interactive example#

-y uses non-interactive defaults and refuses a non-empty target directory unless --force is passed.

After scaffolding#

Add more components with the command printed by the CLI:

For the legacy Tailwind v3 path, use npx shadcn@2.3.0 add dialog instead. See Tailwind v3.