CLI
Use npx popcons to log in, list and add icons and components, install the agent skill and validate icons.
The CLI adds icons and components to your project without leaving the terminal. It needs Node.js and a license key from your account.
Commands
npx popcons login [key] # verify and save your license key (CI: set POPCONS_LICENSE_KEY)
npx popcons whoami | logout # show or remove the saved key
npx popcons init # write popcons.json (detects framework, Tailwind)
npx popcons search bell --json # search icons; also: categories, list
npx popcons add bell heart --format react --sound # copy icons into your project as source
npx popcons ui add button tabs # add components
npx popcons pack add neon # add every component of a pack
npx popcons skill install # install the icon designer agent skill
npx popcons mcp # stdio MCP bridge for editors
npx popcons validate my-icon.json # check an icon definition offlineCommand reference
| Command | What it does | Needs login |
|---|---|---|
login [key] | Verify and save your license key. | No |
whoami, logout | Show or remove the saved key. | No |
init | Write popcons.json for your project. | No |
search, categories, list | Find icons by name, tag or category. | No |
add <icon...> | Write icons into your project as source. | Yes |
ui add <name...> | Add components. | Yes |
pack add <id> | Add every component of a pack. | Yes |
skill install | Install the icon designer agent skill. | Yes |
mcp | Run the stdio MCP bridge for editors. | Yes |
validate <file> | Check an icon definition offline. | No |
loginchecks your key against the server and saves it for later commands.listprints the icon names you can add.add <icon...>fetches each icon and writes the files into your project.ui add <component...>does the same for components and pack components, intosrc/components/uiby default.pack add <id>installs every component of a pack. Both needpopcons loginfirst.skill installdownloads the agent skill for licensed accounts. See Agent skill.validate <file.json>checks an icon definition against the Popcons format without a network call.
Options
| Command | Option | What it does |
|---|---|---|
add | --dir <path> | Output folder. Default src/components/icons. |
add | --color, --stroke, --corner, --speed, --intensity | Bake a style into the files, the same controls as the customizer. |
ui add | --pack <id> | Install every component of a pack (for example neon). |
ui add | --dir <path> | Output folder. Default src/components/ui. |
skill install | --target claude|cursor|dir | Where to install. Default claude, which writes to ~/.claude/skills. |
skill install | --dir <path> | Skills folder, project folder or exact folder, depending on the target. |
| any | --site <url> | API origin. Defaults to $POPCONS_SITE or the production site. |
Run any command with --help to see the options in your installed version. Prefer the registry directly? See Components.