CLI
Use the registry from any package manager
The CLI is the shadcn-style distribution path for apps that should own their component source while still following Cooud UI conventions.
Initialize a project
Select your package manager
pnpm dlx cooud-ui@latest init
Add components
Copy components into your app
pnpm dlx cooud-ui@latest add button card dialog
Inspect the registry
List available registry items, or diff a copied component against the registry version to spot local drift.
npx cooud-ui@latest listnpx cooud-ui@latest diff button
Command surface
These commands are designed for app teams that want source ownership and repeatable upgrades.
init
Creates cooud-ui.json, installs base dependencies, writes lib/cn, and imports tokens.
add
Copies components into your app, resolves registry dependencies, and rewrites imports.
list
Prints registry items and lets teams audit what exists before adding code.
diff
Compares local copied components against the registry version to expose drift.
Config
The config keeps local aliases explicit, so generated code lands in the right folders for each app.
{"aliases": {"ui": "@/components/ui","lib": "@/lib"},"paths": {"ui": "components/ui","lib": "lib"},"registry": "https://raw.githubusercontent.com/pedrogbraz/cooud-ui/main/registry"}
Use --registry ./registry for offline testing against a local registry build.