CLI Commands
A complete reference for every command exposed by the @pphatdev/registry CLI (v1.5.1).
You can run the CLI via global installation (pphat) or directly via npx. The following invocations are equivalent:
npx pphat <command>npx pphatdev <command>npx @pphatdev/registry <command>Version & Help
Both short and long version flags are fully supported in v1.5.1+:
npx pphat -vnpx pphat --versionnpx pphat --helpinit
Interactively initializes project preferences and generates a pphatdev.json file in the project root.
npx pphat initPrompts will guide you through selecting resource types (icons, components), formats (SVG, Next.js, Nuxt.js), and storage paths.
config
View and update configuration settings interactively or programmatically.
Interactive Configuration
npx pphat configGet Configuration
npx pphat config getnpx pphat config get icons.nextjs.dirSet Configuration
npx pphat config set icons.nextjs.use truelist / ls
Lists available icons, components, or currently installed skills.
npx pphat list iconsnpx pphat ls componentsnpx pphat list skillsadd
Parent command that downloads icons, components, or AI agent skills using a subcommand grammar.
add icon <names…>
npx pphat add icon react vue githubadd component <names…>
npx pphat add component button card modaladd skill <sources…>
npx pphat add skill pphatdev/skillsnpx pphat add skill pphatdev/skills --skill api-documentationnpx pphat add skill pphatdev/skills -a claude cursorLegacy shortcut
For backwards compatibility, add <name> with no subcommand is treated as add icon <name>:
npx pphat add react vueOptions for Icons & Components
| Flag | Long flag | Description |
| --- | --- | --- |
| -f | --format <fmt> | Output format (svg, nextjs, nuxtjs) |
| -d | --dir <path> | Destination directory |
add-icon
Hyphenated alias for add icon. Downloads one or multiple icons from the registry into your project.
npx pphat add-icon react vue githubOptions
| Flag | Long flag | Description |
| --- | --- | --- |
| -f | --format <fmt> | Output format (svg, nextjs, nuxtjs) |
| -d | --dir <path> | Destination directory |
Examples
npx pphat add-icon react vue -d src/assets/iconsnpx pphat add-icon github -f nextjsadd-component / add-comp
Hyphenated alias for add component. Downloads one or multiple UI components.
npx pphat add-component button card modalOptions
| Flag | Long flag | Description |
| --- | --- | --- |
| -f | --format <fmt> | Output format (nextjs, nuxtjs) |
| -d | --dir <path> | Destination directory |
Examples
npx pphat add-component button -f nextjs -d src/components/uinpx pphat add-comp card modaladd-skill
Hyphenated alias for add skill. Installs AI agent skills from GitHub repositories or local directory paths with automated agent detection and lockfile generation.
npx pphat add-skill pphatdev/skillsOptions
| Flag | Long flag | Description |
| --- | --- | --- |
| -d | --dir <dir> | Custom target directory for skills (default: .agent/skills) |
| -g | --global | Install skills globally to ~/.agent/skills |
| -s | --skill <names…> | Install specific skill(s) by name (* for all) |
| -a | --agent <agents…> | Target specific coding agents (claude, cursor, agent, etc.) |
| -y | --yes | Skip interactive prompts and install with defaults |
| | --all | Install all available skills without prompting |
| -l | --list | List available skills in the repository without installing |
Examples
npx pphat add-skill pphatdev/skills --skill api-documentationnpx pphat add-skill pphatdev/skills -a claude cursornpx pphat add-skill pphatdev/skills --all -yupdate
Parent command to update installed resources (skills).
update skill [targets…
npx pphat update skillnpx pphat update skill pphatdev/skillsupdate-skill
Hyphenated alias for update skill. Updates installed skills to their latest revisions and refreshes hashes in skills-lock.json.
npx pphat update-skill pphatdev/skillsOptions
| Flag | Long flag | Description |
| --- | --- | --- |
| -d | --dir <dir> | Custom target directory for skills |
| -g | --global | Update globally installed skills in ~/.agent/skills |
remove
Parent command that deletes previously downloaded icons, components, or installed skills.
remove icon <names…>
npx pphat remove icon react vueremove component <names…>
npx pphat remove component button cardremove skill <targets…>
npx pphat remove skill pphatdev/skillsnpx pphat remove skill api-documentationOptions for Icons & Components
| Flag | Long flag | Description |
| --- | --- | --- |
| -f | --format <fmt> | Restrict removal to one format (svg, nextjs, nuxtjs) |
| -d | --dir <path> | Restrict removal to a specific directory |
remove-icon
Hyphenated alias for remove icon.
npx pphat remove-icon react vuenpx pphat remove-icon react -f svg -d public/iconsremove-component / remove-comp
Hyphenated alias for remove component.
npx pphat remove-component button cardnpx pphat remove-comp modal -f nextjs -d src/components/uiremove-skill
Hyphenated alias for remove skill. Deletes installed skill folders and removes references from .skills.json and skills-lock.json.
npx pphat remove-skill pphatdev/skillsnpx pphat remove-skill api-documentation -gOptions
| Flag | Long flag | Description |
| --- | --- | --- |
| -d | --dir <dir> | Custom target directory for skills |
| -g | --global | Remove from global skills directory (~/.agent/skills) |
stats
Show CLI usage statistics from ~/.pphat/history.jsonl or the remote registry.
npx pphat statsnpx pphat stats --top-iconsnpx pphat stats --top-componentsnpx pphat stats --remoteOptions
| Flag | Long flag | Description |
| --- | --- | --- |
| -n | --days <days> | Only include runs from the last N days |
| | --top-icons [n] | Show top N most-added icons (default: 10) |
| | --top-components [n] | Show top N most-added components (default: 10) |
| | --remote | Query aggregated stats endpoint instead of local history |
| | --clear | Wipe your own local history file (~/.pphat/history.jsonl) |
| -y | --yes | Skip confirmation prompts for destructive actions |