specloom-cli-0.2.0 is not a library.
Specloom CLI
specloom-cli is the CLI for running Specloom pipeline stages and agent lookup tools.
Install from crates.io
Quickstart
Run with the installed binary:
Run from the workspace during development:
The generate command runs the full pipeline in order and writes artifacts under output/.
Live Figma Quickstart
Set your token once (or pass --figma-token per command):
Fetch and inspect a real node snapshot:
Run the full pipeline from live Figma data:
Inputs and Defaults
Input modes:
fixture: uses a built-in deterministic payload for local/testing runs.live: calls the Figma API with either--file-key+--node-id, or a single--figma-url.snapshot: loads an existing raw snapshot via--snapshot-pathand reuses it as fetch output.
Defaults:
fetchdefaults to--input fixture.generatedefaults to--input live.FIGMA_TOKENenv (or--figma-token) is required forlive.- Downstream stages read prior artifacts from
output/.
Commands
List stage output directories:
Run one stage:
Run fetch stage directly (fixture, live, or snapshot):
Run full pipeline:
Run agent lookup tools (stateless run-and-consume):
Workflow Matrix
| Goal | Command | Output Mode |
|---|---|---|
| Inspect all stage output directories | specloom stages |
text (default) |
| Inspect all stage output directories as machine-readable data | specloom stages --output json |
json |
| Run fetch stage with fixture input | specloom fetch --input fixture |
text (default) |
| Run fetch stage with live Figma input | specloom fetch --input live --file-key <file> --node-id <node> |
text (default) |
| Run fetch stage with Figma quick link input | specloom fetch --input live --figma-url "<figma-url>" |
text (default) |
| Run fetch stage with existing snapshot artifact | specloom fetch --input snapshot --snapshot-path <path> |
text (default) |
| Run one stage with human-readable output | specloom run-stage <stage> |
text (default) |
| Run one stage with machine-readable output | specloom run-stage <stage> --output json |
json |
| Run end-to-end pipeline with fixture input and per-stage artifact lines | specloom generate --input fixture |
text (default) |
| Run end-to-end pipeline with live Figma input | specloom generate --input live --file-key <file> --node-id <node> |
text (default) |
| Run end-to-end pipeline with Figma quick link input | specloom generate --input live --figma-url "<figma-url>" |
text (default) |
| Run end-to-end pipeline from existing snapshot artifact | specloom generate --input snapshot --snapshot-path <path> |
text (default) |
| Run end-to-end pipeline with fixture input and structured stage results | specloom generate --input fixture --output json |
json |
| Find candidate nodes via deterministic fuzzy lookup | specloom agent-tool find-nodes --query "<text>" --output json |
text/json |
| Read indexed node details | specloom agent-tool get-node-info --node-id <id> |
text/json |
| Fetch node screenshot directly from Figma images API | specloom agent-tool get-node-screenshot --file-key <file> --node-id <node> |
text/json |
Notes:
- Valid stages are:
fetch,normalize,build-spec,build-agent-context, andexport-assets. - Invalid stage execution returns exit code
2with an explicit error message. generateruns deterministic default stages sequentially:fetch,normalize,build-spec,build-agent-context, andexport-assets.- Agent tool commands are stateless run-and-consume invocations; no background daemon is required.
License
Licensed under the Apache License, Version 2.0 (../../LICENSE).