CLI Reference
BrandKit provides a command-line interface for SVG processing, analysis, and security scanning.
Installation
Commands Overview
| Command | Description |
|---|---|
white |
Create white icon on transparent background |
color |
Create centered color icon preserving original colors |
convert |
Convert SVG colors with fine-grained control |
process |
Full pipeline: convert, center, verify |
analyze |
Analyze SVG geometry (centering, padding) |
verify |
Verify SVG is pure vector |
security-scan |
Scan for security threats |
sanitize |
Remove security threats from SVG |
Global Flags
Usage Pattern
Examples
# Create white icon
brandkit white icon.svg -o icon_white.svg
# Create color icon
brandkit color icon.svg -o icon_color.svg
# Security scan directory
brandkit security-scan brands/
# Verify all SVGs recursively
brandkit verify-all brands/
# Full processing pipeline
brandkit process icon.svg -o output.svg --color ffffff --center --strict
Exit Codes
| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | Error (invalid input, processing failure, threats detected) |
Environment
BrandKit reads no environment variables. All configuration is via command-line flags.