Installation

How to install dependencies and structure your app.

Choose the setup that matches your starting point.

Use shadcn/create

Build your preset visually, preview your choices, and generate a framework-specific setup command.

Open shadcn/create

Available for Next.js, Vite, Laravel, React Router, Astro, and TanStack Start.

Use the CLI

Use the CLI to scaffold a new project directly from the terminal:

pnpm dlx shadcn@latest init -t [framework]

Supported templates: next, vite, start, react-router, and astro.

For Laravel, create the app first with laravel new, then run npx shadcn@latest init.

Existing Project

Each framework guide includes an Existing Project section with the manual setup steps for that framework.

Pick your framework below and follow that path.

Choose Your Framework

For Laravel, start with laravel new before using shadcn/create or sd-ui init.