CLI reference
prometheus is a thin command-line wrapper over a running instance's HTTP API. Ask for verified Firecrawl code (build) or manage self-healing scripts and their deployments (scripts, deploy, deployments). Zero dependencies (Node ≥ 18, uses global fetch); it never embeds the agent — it just calls your instance.
Install
Configuration
Output modes
Every command supports --json. The CLI is TTY-aware:
- Interactive terminal: human-friendly output (tables, summaries;
buildwrites files). - Piped or
--json: raw JSON on stdout, so another program can parse it.
Errors print error: <message> to stderr and exit non-zero.
The model
A SCRIPT is the versioned collector (prompt, self-heal, marketplace lineage). A DEPLOYMENT is one way it runs for you: on a cron (--every), on demand as an API endpoint (--no-schedule), or both. One script can have many deployments.
prometheus build
Ask Prometheus for a verified Firecrawl collector.
Interactive — writes script.ts + sample.json and prints how it works:
Piped — feed the code straight into your project:
The returned script runs with tsx script.ts and needs FIRECRAWL_API_KEY. Builds run the agent and take ~30–180s.
prometheus scripts
Create and manage versioned, self-healing collectors.
create
Provide a prompt (builds now) or --session <id> from a prior build (mints an existing collector instantly). --every / --no-schedule also deploy the new script in the same call.
Schedules (--every, UTC): hourly · 30m · 6h · daily · daily@14:00 · weekly · monday@09:00 · raw cron "0 9 * * 1". --no-schedule = on-demand only.
Self-heal (--heal): off · repair · rebuild · repair_then_rebuild (default). A successful heal appends a new script version that every track-latest deployment picks up.
ls / show
Health icons: ● healthy · ✗ failing · ↻ healing · ○ pending.
data
The latest collected JSON across all the script's deployments — the thing you actually consume.
heal / fork / rm
prometheus deploy / deployments
Operate the ways a script runs.
--pin V freezes the deployment on script version V (omit to track latest).
Recipes
See also: the API reference and the MCP reference.