cli
Render any name to an image file from the terminal.
The CLI renders with @napi-rs/canvas, so npx needs both packages:
sh
npx -p glorpies -p @napi-rs/canvas glorpies agent-47 --look ink --size 128 --shape circle -o agent.pngnpx -p glorpies -p @napi-rs/canvas glorpies agent-47 --state thinking -f gifIn a project with both installed: npx glorpies agent-47.
options
| flag | default | |
|---|---|---|
-l, --look | auto or a look | auto |
-s, --size | pixels, 16 to 4096 | 256 |
-f, --format | png, webp, jpeg, svg, gif | from --out, else png |
--shape | circle, squircle, rounded, square | square |
--state | idle, thinking, working, waiting, blocked, done | idle |
--background | false for only the face, or a colour to put it on: ffe9a8, '#ffe9a8', tomato | |
--loop | seconds, for a gif | 3 |
-o, --out | the file to write, or - for stdout | <name>.<format> |
--force | overwrite an existing file | |
-h, --help |
Names starting with - go after --: glorpies -- -weird-name.
in scripts
sh
npx glorpies agent-47 -f webp -o - > avatar.webpfor name in ada grace linus; do npx glorpies "$name" --look sticker; doneExisting files are never overwritten without --force. Errors exit with status 1.