
shadcn CLI
CLIOfficial shadcn/ui CLI: initializes projects and adds component source to your codebase on demand, with switchable presets. Since v4 it offers --dry-run and --diff so agents can preview changes, and it comes with an agent skill.
shadcn
A CLI for adding components to your project.
create
Use the create command to create a new project. You will be taken to a website to build your custom design system and choose your framework.
npx shadcn create
init
Use the init command to initialize dependencies for a new project.
The init command installs dependencies, adds the cn util, configures Tailwind CSS, and CSS variables for the project.
npx shadcn init
apply
Use the apply command to apply a preset to an existing project.
The apply command overwrites the current preset configuration, reinstalls detected UI components, and updates fonts and CSS variables to match the new preset.
npx shadcn apply --preset a2r6bw
add
Use the add command to add components to your project.
The add command adds a component to your project and installs all required dependencies.
npx shadcn add [component]
Example
npx shadcn add alert-dialog
You can also run the command without any arguments to view a list of all available components:
npx shadcn add
Documentation
Visit https://ui.shadcn.com/docs/cli to view the documentation.
License
Licensed under the MIT license.
Related resources

Web Artifacts Builder
SkillBuilds multi-component web pages that need state or routing with React, Tailwind CSS and shadcn/ui, using bundled init and build scripts, then packs them into a single HTML file for a claude.ai Artifact. Official Anthropic skill.
anthropics/skills182k
shadcn/ui
SkillOfficial shadcn/ui skill: uses the shadcn CLI to read project config and component docs, then adds, searches, composes and fixes components following styling, form and accessibility rules. Can also start new projects from presets.
shadcn-ui/ui126k
shadcn MCP Server
MCPMCP server built into the official shadcn CLI: lets agents browse and search components, blocks and templates in any configured registry, including private ones, and install them into your project in plain language. The project needs a components.json.
shadcn-ui/ui126k
daisyUI
SkillOfficial daisyUI skill: the agent uses daisyUI 5 component classes, semantic colors and themes whenever it writes HTML or JSX, picking components by intended function, reading their guides and following their exact structure. Includes install, usage, config and color guides. Built on Tailwind CSS 4.
saadeghi/daisyui42.6k
React Composition Patterns
SkillVercel's guide to React composition patterns: replaces boolean prop sprawl with compound components, lifted state and clean Context interfaces, including React 19 API changes. Useful for refactoring component libraries and reviewing component architecture.
vercel-labs/agent-skills32.5k
General Translation CLI
CLIGeneral Translation's gt CLI: a wizard sets up i18n for React, Next.js and similar apps, then sends UI strings and JSON, YAML or Markdown files for AI translation and writes them back, with CI support. Needs a Node.js project and a General Translation API key (free sign-up, usage-based pricing).
generaltranslation/gt1.1k