Boxicons CLI
The Boxicons CLI is an interactive command-line tool that makes it easy to install Boxicons packages. It guides you through selecting the right package for your project, handles Pro registry configuration automatically, and even offers to add AI assistance documentation.
Installation
Install the CLI globally using npm:
npm install -g @boxicons/cliOr use it directly with npx:
npx @boxicons/cliQuick Start
Once installed, simply run:
boxiconsYou’ll see the Boxicons CLI welcome screen:
┌─────────────────────────────────────────┐
│ │
│ Boxicons CLI │
│ │
│ https://boxicons.com │
│ │
└─────────────────────────────────────────┘Usage Flow
Step 1: Choose Your Plan
First, select whether you want FREE or PRO icons:
? Choose your plan: (Use arrow keys)
❯ FREE - Access basic icons
PRO - Access all icon packs and variations FREE Package Installation
If you select FREE, you’ll be presented with 5 package options:
? Select package: (Use arrow keys)
❯ Core
JavaScript
React
Vue
SvelteAvailable FREE packages:
| Selection | Package Name | Description |
|---|---|---|
| Core | @boxicons/core | Core library with SVG icons and fonts |
| JavaScript | @boxicons/js | JavaScript library |
| React | @boxicons/react | React components |
| Vue | @boxicons/vue | Vue components |
| Svelte | @boxicons/svelte | Svelte components |
PRO Package Installation
If you select PRO, the CLI will:
Step 2: Configure API Key
? Enter your Boxicons Pro API Key: [hidden]The CLI automatically creates or updates your .npmrc file with:
@boxicons-pro:registry=https://npm.boxicons.com/
//npm.boxicons.com/:_authToken=YOUR_API_KEYStep 3: Select Installation Type
? Installation type: (Use arrow keys)
❯ Individual Packages (Recommended)
Main PackageMain Package Option
Select from 4 framework options:
? Select framework: (Use arrow keys)
❯ JS
React
Vue
SvelteInstalls: @boxicons-pro/{framework}
Individual Packages Option
This provides granular control over exactly which icons you install:
Step 4: Select Framework
? Select framework: (Use arrow keys)
❯ JS
React
Vue
SvelteStep 5: Select Icon Pack
? Select icon pack: (Use arrow keys)
❯ basic
filled
brands
duotone
duotone-mix
duotone-solidStep 6 & 7: Select Style and Weight (skipped for brands)
If you select any pack except brands, you’ll choose style and weight:
? Select style: (Use arrow keys)
❯ regular
rounded
sharp
? Select weight: (Use arrow keys)
❯ thin
normal
boldPackage naming convention:
@boxicons-pro/{framework}-{pack}-{style}[-{weight}]- Weight is only included for
thinorbold(omitted fornormal) - Brands pack doesn’t include style or weight (e.g.,
@boxicons-pro/react-brands)
Examples
Install FREE React Package
? Choose your plan: FREE
? Select package: React
🚀 Installing @boxicons/react...
✅ Successfully installed @boxicons/react!Install PRO Main Package for Vue
? Choose your plan: PRO
? Enter your Boxicons Pro API Key: ********
✅ Pro registry configured
? Installation type: Main Package
? Select framework: Vue
🚀 Installing @boxicons-pro/vue...
✅ Successfully installed @boxicons-pro/vue!Install PRO Individual Package
? Choose your plan: PRO
? Enter your Boxicons Pro API Key: ********
✅ Pro registry configured
? Installation type: Individual Packages (Recommended)
? Select framework: React
? Select icon pack: duotone
? Select style: rounded
? Select weight: bold
🚀 Installing @boxicons-pro/react-duotone-rounded-bold...
✅ Successfully installed @boxicons-pro/react-duotone-rounded-bold!Install PRO Brands Package
? Choose your plan: PRO
? Enter your Boxicons Pro API Key: ********
✅ Pro registry configured
? Installation type: Individual Packages (Recommended)
? Select framework: Svelte
? Select icon pack: brands
🚀 Installing @boxicons-pro/svelte-brands...
✅ Successfully installed @boxicons-pro/svelte-brands!AI Assistance (SKILL.md)
After installing a package, the CLI offers to add a SKILL.md file to help AI assistants understand how to work with Boxicons in your project.
? Would you like to add SKILL.md for AI assistance?
❯ YES
NOIf you select YES, choose where to store it:
? Where would you like to store SKILL.md?
❯ .cursor/skills/boxicons/SKILL.md
.claude/skills/boxicons/SKILL.md
.well-known/skills/default/SKILL.mdThe SKILL.md file contains context about Boxicons usage, including:
- Package structure and naming conventions
- Icon packs and variations
- Common usage patterns
- Framework-specific examples
This helps AI assistants like Cursor, Claude, and GitHub Copilot provide more accurate suggestions when working with Boxicons.
Package Reference
FREE Packages
| Package | Install Command |
|---|---|
| Core | npm install @boxicons/core |
| JavaScript | npm install @boxicons/js |
| React | npm install @boxicons/react |
| Vue | npm install @boxicons/vue |
| Svelte | npm install @boxicons/svelte |
PRO Main Packages
| Framework | Install Command |
|---|---|
| JS | npm install @boxicons-pro/js |
| React | npm install @boxicons-pro/react |
| Vue | npm install @boxicons-pro/vue |
| Svelte | npm install @boxicons-pro/svelte |
PRO Individual Packages
Individual packages follow this pattern:
@boxicons-pro/{framework}-{pack}-{style}[-{weight}]Examples:
@boxicons-pro/react-basic-regular@boxicons-pro/vue-filled-rounded-bold@boxicons-pro/js-duotone-sharp-thin@boxicons-pro/svelte-brands
Troubleshooting
API Key Issues
If you see an authentication error when installing Pro packages:
- Verify your API key is correct in your Boxicons Account
- Check that
.npmrcwas created correctly:cat .npmrc - The file should contain:
@boxicons-pro:registry=https://npm.boxicons.com/ //npm.boxicons.com/:_authToken=YOUR_API_KEY
Package Not Found
If a package installation fails:
- Ensure you’re using the correct package name format
- For Pro packages, verify your subscription is active
- Try updating the CLI:
npm install -g @boxicons/cli@latest
Getting Help
- Documentation: https://boxicons.com
- Support: contact@boxicons.com
- Issues: Report on GitHub
Related Packages
The core package is used by all framework-specific packages:
@boxicons/react- React components@boxicons/vue- Vue components@boxicons/svelte- Svelte components@boxicons/js- JavaScript utilities