Installation & Quick Start
A quick start guide to using the @pphatdev/registry CLI.
Usage via npx (Recommended)
You don't need to install anything. Run the CLI directly using npx:
npx pphat initThe CLI supports multiple convenient aliases (prefixes), so you can use any of the following interchangeably:
npx pphat <command>npx pphatdev <command>npx @pphatdev/registry <command>Global Installation (Optional)
If you plan to use the CLI frequently across many projects, install it globally on your machine:
npm install -g @pphatdev/registryThen use the short commands anywhere:
pphat initpphat -vpphat --versionStep-by-Step Workflow
1. Initialize your project
Run the init command to set up your preferences. It interactively prompts you for configuration and writes a pphatdev.json file at the root of your project:
npx pphat initExample interactive setup:
? What is name of config ? › Default configuration
? What do you want to use ? (required must select one) › Icons
? Which directory you want to use ? (required must select one) › Nextjs format (.tsx)
? Where do you store icon of nextjs ? › components/icons
Success! Configuration saved to pphatdev.json.
2. View & Manage Configuration
View or update your stored configuration anytime using the config command:
npx pphat configOr fetch / set specific keys:
npx pphat config getnpx pphat config get icons.nextjs.dirnpx pphat config set icons.nextjs.use true3. Discover Items in the Registry
Browse available icons, components, or installed skills:
npx pphat list iconsnpx pphat ls componentsnpx pphat list skills4. Add Icons or Components
Download icons or components directly into your project using subcommand or hyphenated grammar:
Subcommand grammar
npx pphat add icon react vue githubnpx pphat add component button card modalHyphenated grammar
npx pphat add-icon react vue githubnpx pphat add-component button card modal
npx pphat add react(no subcommand) is preserved as a legacy shortcut foradd icon react.
Custom target directory or format
Override your default configuration on the fly using -d (--dir) or -f (--format):
npx pphat add icon react vue -d src/assets/iconsnpx pphat add component button -f nextjs -d src/components/ui5. Install AI Agent Skills
New in v1.5.1 — install modular AI coding assistant skills (SKILL.md) from GitHub repositories with automated agent detection and lockfile generation:
npx pphat add skill pphatdev/skillsnpx pphat add skill pphatdev/skills --skill api-documentationnpx pphat add skill pphatdev/skills -a claude cursor6. Remove Resources
Cleanly remove previously downloaded icons, components, or skills:
npx pphat remove icon react vuenpx pphat remove component buttonnpx pphat remove skill pphatdev/skillsHyphenated aliases also work (remove-icon, remove-component, remove-skill):
npx pphat remove-icon react -f svg -d public/iconsnpx pphat remove-skill api-documentation