@gentleduck/cli
v1.3.2
Published
CLI to add gentleduck/ui components and bootstrap integrations.
Maintainers
Readme
@gentleduck/cli
Add components to your project.
Scaffold a duck-ui configuration and install, update, diff, or remove registry components from the terminal.
Quick start
npx @gentleduck/cli init
npx @gentleduck/cli add buttonCommands
| Command | Description |
|---------|-------------|
| init | Create duck-ui.config.json and install base dependencies |
| add [components...] | Install components from the registry |
| diff [components...] | Show what changed between local and registry versions |
| update [components...] | Pull latest registry versions into your project |
| remove [components...] | Delete installed components |
| list | List available registry components |
Monorepo support
Pass --monorepo during init and target a specific workspace with --workspace:
npx @gentleduck/cli init --monorepo --workspace apps/web
npx @gentleduck/cli add button --workspace apps/webFeatures
- TypeScript -- resolves path aliases from your
tsconfig.json - Tailwind v4 -- detects and configures Tailwind CSS v4
- Monorepo aware -- workspace targeting with validation
- Diff view -- inline diff with merge conflict UI before overwriting
- Package manager detection -- works with npm, yarn, pnpm, and bun
