prom is the official command-line client. It wraps every endpoint in the API
reference, formats the result for a terminal, and prints the source filing under
any financial figure. With --json it returns the API payload verbatim, which
makes it the quickest way for scripts and AI agents to use Prometheus.
1
Install
npx prometheus-terminal … works without installing.2
Log in
Create a key on prometheus.services/developers, then:The prompt is hidden, the key is validated against the API before it is saved, and it is
stored in
~/.config/prometheus/config.json (mode 0600). In CI or an agent, pipe it
instead: echo "$KEY" | prom login --with-key, or just set PROMETHEUS_API_KEY.3
Pull real data
Ten things to try
prom --help lists every command; prom <command> --help shows its flags and examples.
Identifiers
<id> is a ticker (NVDA) or a numeric SEC CIK (1045810); tickers are upper-cased for
you. Accession numbers are accepted with or without dashes. Country codes are ISO-2 (US).
Two conveniences the raw API does not give you
- Transcripts. The API requires both a transcript id and its date.
prom transcript NVDAstreams the latest call;prom transcript NVDA 31919looks the date up from the index. - 8-K items.
/events/{accession}needs anitemcode.prom event NVDA <accession>resolves it when the filing has one coded item, and tells you the choices when it has more.
Machine use: --json, exit codes, streams
--jsonprints the API response verbatim as a single JSON document on stdout — nothing else is written to stdout, soprom --json financials NVDA | jqalways parses.- stdout is data; stderr is everything else (progress, warnings, errors). Text endpoints
(
transcript,section,event,filing) stream plain text so they pipe intoless,grepor a file. - Exit codes are stable (
prom help exit-codes):
- On a 429 with
Retry-Afterof ten seconds or less,promwaits and retries once (--no-retrydisables this). Quota exhaustion is never retried; the message carries the reset date and the upgrade link. When fewer than 5% of your monthly requests remain, a single warning is printed on stderr. prom meshows the plan, limits and live usage for the calling key;prom llmsprints llms.txt so an agent can read its own manual.
Analytics descriptors
prom correlate and prom chart take series descriptors:
The valid vocabularies come from
prom catalog (--macro, --fundamentals, --search).
Configuration
Flags win over the environment, which wins over the config file. Avoid
--api-key in shared
shells — it lands in history.
Shell completion
Versioning
prom --version prints the CLI version and the SHA-256 of the OpenAPI contract it was
built against. A release is only published when that hash matches the live spec, so the
CLI can never silently drift from the API.