Skip to content

CLI Reference

uberprompt is the command-line tool for the prompt dependency graph, trace ingestion, and the proposal workflow.

Installation

The CLI lives in packages/cli and is available as @uberprompt/cli:

bash
pnpm --filter @uberprompt/cli exec uberprompt <command>

Or link it globally:

bash
cd packages/cli && pnpm link --global
uberprompt <command>

Global options

FlagDescription
--helpShow help for any command
--jsonOutput machine-readable JSON (supported by graph, affected, infer)
--no-colorDisable colored terminal output

Commands

CommandDescription
graphRender the prompt dependency graph
affectedShow prompts affected by file changes
inferDiscover undeclared semantic edges
initCreate trace-ingestion collections and indexes
collectRun an OTLP/HTTP span receiver
tailPrint recent traces and stream new ones
learnMine traces into deduped lessons (stage 2)
compareCompare prompt versions by traces, error rate, latency
proposeGenerate proposals from unprocessed lessons
proposalsList pending proposals with inline diffs
approveApply a proposal (snapshot, rewrite, version bump)
rejectMark a pending proposal as rejected
sync-checkCheck dependents for contradictions after a version bump

Environment

The CLI reads MONGODB_URI from .env at the repo root for commands that interact with the database (init, collect, tail, learn, compare, propose, proposals, approve, reject, sync-check).

The graph, affected, and infer commands operate on the local file system (apps/demo/ prompt and edge files) and do not require a database connection.