CLI
Install OonkooUI components with zero configuration. The CLI handles setup, dependencies, and authentication automatically.
OonkooUI uses shadcn/ui as the foundation for base UI primitives (Button, Card, Dialog, etc.). The OonkooUI components are higher-level blocks built on top of these primitives, giving you production-ready sections like Hero, Pricing, Features, and more.
Installation Methods
Choose the method that works best for your workflow. Both methods install the same components.
OonkooUI CLI
Complete standalone solution with zero configuration required.
- ✓ Auto-creates lib/utils.ts
- ✓ Auto-installs dependencies
- ✓ Interactive component picker
- ✓ Component updates & sync
- ✓ Pro component access
- ✓ Download tracking
- ✓ npm, yarn, pnpm, bun support
shadcn CLI
Use shadcn CLI if you already have components.json configured.
- ✓ Works with existing shadcn setup
- ✓ Download tracking
- ✓ Free components only
- ✗ Requires components.json
- ✗ No Pro access
- ✗ No auto-setup
Using shadcn CLI
1. Add OonkooUI Registry
First, add the OonkooUI registry to your existing components.json file:
{
"registries": {
"@oonkoo": "https://ui.oonkoo.com/r/{name}.json"
}
}Note: This method only works if you have components.json configured. If you get a registry error, use the OonkooUI CLI instead.
2. Install Components (Method A: Registry)
Then, install OonkooUI components using the registry prefix:
npx shadcn@latest add @oonkoo/pulse-buttonnpx shadcn@latest add @oonkoo/pulse-button @oonkoo/spark-cursor2. Install Components (Method B: Direct URL)
Alternatively, install components using the direct URL (no registry config needed):
npx shadcn@latest add "https://ui.oonkoo.com/r/pulse-button"Tip: Use this method if you don't want to configure the registry. Works without components.json changes!
Using OonkooUI CLI
init
Initialize OonkooUI in your project with zero configuration. Automatically creates config, directories, and required utilities.
npx oonkoo initWhat init does:
- ✓ Creates oonkoo.config.json
- ✓ Sets up component directories
- ✓ Auto-creates lib/utils.ts with cn() helper
- ✓ Installs clsx & tailwind-merge dependencies
- ✓ Detects your package manager (npm/yarn/pnpm/bun)
Options: -y, --yes - Skip prompts and use defaults
add
Add components to your project. Automatically fetches code, installs dependencies, and tracks downloads.
npx oonkoo add pulse-buttonnpx oonkoo add pulse-button spark-cursornpx oonkoo addAvailable components: pulse-button, spark-cursor — Browse all
Options: -a, --all Add all components | -o, --overwrite Overwrite existing | -y, --yes Skip confirmations
Works with: npm, yarn, pnpm, bun (auto-detected)
list
List all available components from the registry with filtering options.
npx oonkoo listnpx oonkoo list --category buttonsnpx oonkoo list --tier freeExample output:
buttons pulse-button free [element] An animated button with pulsating effect other spark-cursor free [element] Spark cursor effect on click
auth
Authenticate with OonkooUI to access Pro components. Supports browser-based login (recommended) or API key authentication.
npx oonkoo authnpx oonkoo auth --api-keynpx oonkoo auth --logoutYou can also use npx oonkoo login as an alias for auth.
update
Check for and apply updates to installed components.
npx oonkoo updatenpx oonkoo update --allOonkooUI CLI Configuration
The oonkoo.config.json file in your project root (created by npx oonkoo init):
{
"style": "default",
"tailwind": {
"config": "tailwind.config.js",
"css": "app/globals.css",
"baseColor": "slate",
"cssVariables": true
},
"aliases": {
"components": "@/components",
"utils": "@/lib/utils",
"ui": "@/components/ui",
"hooks": "@/hooks"
},
"registryUrl": "https://ui.oonkoo.com/api/registry"
}Requirements
System Requirements
- ✓ Node.js 18+ (LTS recommended)
- ✓ npm, yarn, pnpm, or bun
Project Requirements
- ✓ React 18+ (React 19 supported)
- ✓ Tailwind CSS 3+ (v4 supported)
- ✓ TypeScript (recommended)
Supported Frameworks
Works with any React framework that supports Tailwind CSS.
Start Building
Browse the component library and start adding to your project.