available now

IcoGenie CLI

Generate production-ready SVG icons from your terminal. Perfect for automation, CI/CD pipelines, and rapid prototyping.

npm install -g @icogenie/cli

Installation

Global Install (Recommended)

npm install -g @icogenie/cli

Installs the CLI globally, making icogenie available everywhere.

One-time Use (npx)

npx @icogenie/cli generate "rocket ship"

Run without installing. Great for trying it out.

Requires: Node.js 18 or later

Quick Start

1

Install the CLI

Install globally to use from any directory.

npm install -g @icogenie/cli
2

Login to your account

Opens your browser to authenticate securely.

icogenie login
3

Generate an icon

Describe the icon you want in natural language.

icogenie generate "a friendly robot assistant"
4

Export to SVG

Convert your preview to production-ready SVG and PNG formats.

icogenie export <generation-id>

How It Works

The CLI uses a two-step workflow: generate a preview first, then export to production formats. This lets you review the icon before committing to the full export cost.

1

Generate Preview

1 credit

Generate a watermarked preview to see if you like the result. The preview is saved locally with a unique ID.

icogenie generate "rocket ship launching"

Output: ~/.icogenie/drafts/abc123.../preview.png

2

Review Preview

free

Open the preview image to check if it matches your vision. Not happy? Generate another variation.

open ~/.icogenie/drafts/abc123.../preview.png
3

Export to SVG

5 credits

Happy with the preview? Export it to production-ready SVG and PNG formats. Use the generation ID from step 1.

icogenie export abc123...

Output:

icon.svg - Scalable vector graphic

png/icon-16.png, icon-32.png, icon-192.png, icon-512.png

meta.html - Ready-to-use HTML meta tags

Tip: For bundles, the same workflow applies. Use icogenie bundle to generate previews, then icogenie export with the bundle ID to export all icons.

Commands

Authentication

icogenie login

Authenticate with IcoGenie. Opens your browser for secure sign-in.

icogenie login
icogenie logout

Sign out and clear your local session.

icogenie logout
icogenie whoami

Display your current user information and email.

icogenie whoami

Generation

icogenie generate

Generate an icon from a text prompt. Costs 1 credit per generation.

icogenie generate "rocket ship" --variations 4 --style outline

Options

-v, --variationsNumber of variations(1, 2, 4) default: 1
-s, --styleIcon style(solid, outline) default: solid
-o, --outputCustom output path(path) default: ~/.icogenie/drafts
icogenie bundle

Generate a bundle of icons from a description. AI analyzes your needs and creates a consistent set. Costs 1 credit per icon for preview.

icogenie bundle "social media icons for my app" --count 10 --style solid

Options

-c, --countTarget number of icons(2-20) default: auto-determined
-s, --styleIcon style(solid, outline) default: solid
-o, --outputCustom output directory(path) default: ~/.icogenie/drafts
icogenie export

Export a generated icon or bundle to SVG and PNG formats. Single icons cost 5 credits, bundles cost 4 credits per icon (20% discount).

icogenie export abc123def --output ./my-icons

Options

-o, --outputOutput directory(path) default: current directory

Account

icogenie credits

Check your current credit balance.

icogenie credits
icogenie billing

Open the billing page in your browser to purchase more credits.

icogenie billing

Credits

Single Icons

1credit

Preview Generation

Generate a preview image from your prompt

5credits

Export to SVG

Convert to production-ready SVG + PNG assets

Bundles (20% discount)

1credit / icon

Bundle Preview

Generate previews for all icons in your bundle

4credits / icon

Bundle Export

Export all icons to SVG + PNG (20% off single price)

New accounts receive 8 free credits to get started. Purchase more credits when you run out.

Ready to generate your first icon?

CLI Documentation | IcoGenie