Skip to content
synccn

CLI

synccn installs with the shadcn CLI. These are the commands you'll use.

synccn is a registry for the shadcn CLI, so there's no separate tool to install. Set up a project first with the installation guide.

Connect synccn

Once per project. Adds the @synccn registry to components.json.

$ pnpm dlx shadcn@latest registry add @synccn=https://synccn.com/r/{name}.json

add

Copies components, and anything they depend on, into your project. Add -demo to a name for its example, or use a block name like dashboard.

$ pnpm dlx shadcn@latest add @synccn/data-table

view

Prints a component's files and dependencies without installing anything.

$ pnpm dlx shadcn@latest view @synccn/data-table

Compare with the latest

Shows what's different between your copy and the current version on synccn.com, line by line, without changing any files.

$ pnpm dlx shadcn@latest add @synccn/button --diff

Without setup

Every component also has its own address, which works in any shadcn project without connecting the registry first.

$ pnpm dlx shadcn@latest add https://synccn.com/r/button.json

synccn

The synccn CLI adds update tracking on top of shadcn. See Sync for the full workflow.

synccn add <names…>Install with the shadcn CLI and start tracking
synccn track <names…>Track components you already installed
synccn statusWhat changed upstream, and what you changed
synccn diff <name>Both sets of changes, line by line
synccn update [names…]Preview, back up, merge. --dry-run to preview only, --force to write conflict markers
synccn restore [backup]List backups or put one back
synccn doctorCheck versions, aliases, registry, styles and packages. --fix applies safe fixes