@vforsh/svgen
v0.1.0
Published
Bun CLI for QuiverAI text-to-SVG and image-to-SVG generation.
Downloads
15
Readme
svgen
Bun CLI for QuiverAI SVG generation API.
- Text to SVG (
gen/ aliasesrun,do) - Image to SVG (
vectorize) - Result polling (
result,wait) - Config management (
config/ aliascfg) - Diagnostics (
doctor/ aliascheck) - Skill URL discovery (
skill)
Install
bun install
bun link
svgen --helpAuth
Use env var or config (stdin for secrets):
export SVGEN_API_KEY="<your-key>"
# or
printf '<your-key>' | svgen cfg set apiKey -Quick start
# generate one SVG
svgen gen -p "A flat rocket logo" --save-dir ./out
# vectorize image URL
svgen vectorize --image-url https://example.com/logo.png --save-dir ./out
# list models
svgen models list
# fetch or wait for a generation id
svgen result resp_123
svgen wait resp_123 --interval 2000 --max-wait 120000Config
svgen cfg ls
svgen cfg get endpoint model retries
svgen cfg set endpoint=https://api.quiver.ai retries=3 model=arrow-preview
printf '<key>' | svgen cfg set apiKey -
svgen cfg unset retries model
cat config.json | svgen cfg import --json
svgen cfg export --jsonOutput modes
--json: single JSON object to stdout--plain: stable plain lines for scripts- default: human-readable output
Doctor
svgen doctor
svgen doctor --jsonExit codes:
0: ready / success1: runtime failure or not ready2: invalid usage
Skill install URL
svgen skill