Skip to Content
CLI

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/cli

Or use it directly with npx:

npx @boxicons/cli

Quick Start

Once installed, simply run:

boxicons

You’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 Svelte

Available FREE packages:

SelectionPackage NameDescription
Core@boxicons/coreCore library with SVG icons and fonts
JavaScript@boxicons/jsJavaScript library
React@boxicons/reactReact components
Vue@boxicons/vueVue components
Svelte@boxicons/svelteSvelte 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_KEY

Step 3: Select Installation Type

? Installation type: (Use arrow keys) ❯ Individual Packages (Recommended) Main Package

Main Package Option

Select from 4 framework options:

? Select framework: (Use arrow keys) ❯ JS React Vue Svelte

Installs: @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 Svelte

Step 5: Select Icon Pack

? Select icon pack: (Use arrow keys) ❯ basic filled brands duotone duotone-mix duotone-solid

Step 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 bold

Package naming convention:

@boxicons-pro/{framework}-{pack}-{style}[-{weight}]
  • Weight is only included for thin or bold (omitted for normal)
  • 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 NO

If 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.md

The 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

PackageInstall Command
Corenpm install @boxicons/core
JavaScriptnpm install @boxicons/js
Reactnpm install @boxicons/react
Vuenpm install @boxicons/vue
Sveltenpm install @boxicons/svelte

PRO Main Packages

FrameworkInstall Command
JSnpm install @boxicons-pro/js
Reactnpm install @boxicons-pro/react
Vuenpm install @boxicons-pro/vue
Sveltenpm 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:

  1. Verify your API key is correct in your Boxicons Account 
  2. Check that .npmrc was created correctly:
    cat .npmrc
  3. 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:

  1. Ensure you’re using the correct package name format
  2. For Pro packages, verify your subscription is active
  3. Try updating the CLI: npm install -g @boxicons/cli@latest

Getting Help


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