openpencil/packages/cli/src/commands
Danila Poyarkov 1975fae36e Add @open-pencil/cli with headless .fig file operations
Commands:
- open-pencil info <file> — document stats, node types, fonts
- open-pencil tree <file> — visual node tree with agentfmt
- open-pencil find <file> — search by name/type with rich output
- open-pencil export <file> — render to PNG/JPG/WEBP at any scale

Uses canvaskit-wasm/full for headless CPU rasterization.
All commands support --json for machine-readable output.
agentfmt provides consistent colored terminal formatting.
2026-03-01 01:19:24 +03:00
..
export.ts Add @open-pencil/cli with headless .fig file operations 2026-03-01 01:19:24 +03:00
find.ts Add @open-pencil/cli with headless .fig file operations 2026-03-01 01:19:24 +03:00
info.ts Add @open-pencil/cli with headless .fig file operations 2026-03-01 01:19:24 +03:00
tree.ts Add @open-pencil/cli with headless .fig file operations 2026-03-01 01:19:24 +03:00