CLI
Use the shadcn CLI with the shincn registry to add components to your project.
Adding components
Pass the --registry flag to pull from the shincn registry:
npx shadcn add button --registry https://ui.ch.sh/r
You can add multiple components in a single command:
npx shadcn add button card dialog input tabs --registry https://ui.ch.sh/r
Registry shorthand
If you add the shincn registry to your components.json, you can use a shorter syntax:
{
"registries": {
"shincn": {
"url": "https://ui.ch.sh/r"
}
}
}Then run:
npx shadcn add shincn/button
Available commands
npx shadcn init — Initialize a new project with shadcn configuration.
npx shadcn add [component] — Add a component to your project.
npx shadcn diff [component] — Show changes between your local component and the registry version.