> ## Documentation index
> Fetch the complete documentation index at: https://create-shadcn-js.docs.hyperdyn.in/llms.txt
> Ask it with GET https://create-shadcn-js.docs.hyperdyn.in/ask?q=<keywords or question>. Short keywords rank best.
> Use these to discover all available pages before exploring further.

# Quickstart

> Install create-shadcn-js, choose your options, and run the generated app.

## 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

```bash
npx create-shadcn-js@latest
```

Equivalent commands:

```bash
npm create shadcn-js@latest
pnpm create shadcn-js
bun create shadcn-js
```

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

```bash
npx create-shadcn-js@latest my-app \
  --pm npm \
  -t v4 \
  -m quickstart \
  --no-sample \
  --no-git \
  -y
```

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

## After scaffolding

```bash
cd my-app
npm run dev
```

Add more components with the command printed by the CLI:

```bash
npx shadcn@4 add dialog
```

For the legacy Tailwind v3 path, use `npx shadcn@2.3.0 add dialog` instead. See [Tailwind v3](/tailwind-v3).
