CLI
Generate assets directly from your terminal or integrate GlyphKit into CI/CD pipelines and AI agent tool loops via MCP.
Installation
Install globally via npm, pnpm, or Homebrew:
npm install -g @glyphkit/clipnpm add -g @glyphkit/clibrew install glyphkit/tap/glyphkitVerify the installation:
glyphkit --version
# glyphkit 1.4.2Authentication
Set your API key once and it persists across all commands:
glyphkit config set api-key af_live_xxxxxxxxxxxxxxxxxxxxOr export it as an environment variable (useful in CI):
export GLYPHKIT_API_KEY=af_live_xxxxxxxxxxxxxxxxxxxxQuick Start
Generate a logo in multiple formats with one command:
glyphkit generate \
--prompt "dark mode fintech app icon, abstract F lettermark" \
--formats svg,png,ico \
--width 512 \
--height 512 \
--style minimal \
--out ./brandCommands
glyphkit generateGenerate assets from a text prompt. The primary command — accepts a prompt and outputs files in the requested formats.
| Flag | Description |
|---|---|
| --prompt, -p | Asset description (required). |
| --formats, -f | Comma-separated output formats: svg,png,ico,favicon-package,social-kit. Default: svg. |
| --width | Output width in pixels. Default: 512. |
| --height | Output height in pixels. Default: 512. |
| --background | Background: hex color or "transparent". Default: transparent. |
| --style | Style hint: minimal, bold, flat, outline, gradient. |
| --out, -o | Output directory. Default: ./output. |
| --open | Open the output directory when generation is complete. |
glyphkit generate \
--prompt "minimalist fintech logo" \
--formats svg,png,ico \
--style minimal \
--out ./assetsglyphkit job statusCheck the status of a running or completed generation job.
| Flag | Description |
|---|---|
| <job-id> | Job ID returned by a generate command. |
glyphkit job status job_1a2b3c4d5e6fglyphkit job listList your recent generation jobs.
| Flag | Description |
|---|---|
| --limit | Number of jobs to return. Default: 20. |
| --status | Filter: queued, processing, complete, failed. |
glyphkit job list --status complete --limit 5glyphkit config setPersist configuration values so you don't need to pass flags every time.
| Flag | Description |
|---|---|
| api-key <key> | Set your API key. |
| out <path> | Set default output directory. |
glyphkit config set api-key af_live_xxxxxxxxxxxxxxxxxxxx
glyphkit config set out ./generatedglyphkit mcpStart an MCP server so AI agents (Claude, GPT-4o, etc.) can call GlyphKit tools directly inside their tool loop.
| Flag | Description |
|---|---|
| --port | Port to listen on. Default: 3100. |
glyphkit mcp --port 3100CI/CD Integration
Add asset generation to your GitHub Actions workflow:
# .github/workflows/assets.yml
name: Generate Brand Assets
on:
push:
branches: [main]
paths: ['brand/**']
jobs:
generate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm install -g @glyphkit/cli
- run: |
glyphkit generate \
--prompt "$(cat brand/prompt.txt)" \
--formats svg,png,favicon-package \
--out ./public/brand
env:
GLYPHKIT_API_KEY: ${{ secrets.GLYPHKIT_API_KEY }}
- uses: actions/upload-artifact@v4
with:
name: brand-assets
path: public/brand/MCP Server (AI Agents)
Start an MCP server so AI agents can call GlyphKit tools directly inside their tool loop — no wrapper code needed.
glyphkit mcpAdd to your Claude Desktop or Agent SDK config:
{
"mcpServers": {
"glyphkit": {
"command": "glyphkit",
"args": ["mcp"],
"env": {
"GLYPHKIT_API_KEY": "af_live_xxxxxxxxxxxxxxxxxxxx"
}
}
}
}The MCP server exposes generate_asset and get_job_status as callable tools.