Skip to content

CLI reference

The factflow CLI is the primary management interface to the backend. Every operation — creating configs, starting executions, browsing storage, inspecting lineage — has a CLI equivalent. Installed via the radicalAI Homebrew tap.

Every command accepts these flags:

FlagDefaultPurpose
--serverhttp://localhost:8000Factflow API base URL
--profileNamed server profile stored in ~/.factflow/profiles.json
-o, --outputtableOutput format: table, json, json-pretty, yaml
--timeout30sHTTP request timeout
-v, --verbosefalsePrint → METHOD URL before each HTTP call
--colorautoForce colour output (e.g., piping through less -R)
--no-colorfalseDisable all ANSI colour
--compactfalseForce compact JSON (no pretty-print, no colour)

Store a server + credentials combination under a short name:

Terminal window
factflow --server https://factflow.prod.dnb.no --profile prod system health
# profile persists; reuse:
factflow --profile prod execution list

Profiles live at ~/.factflow/profiles.json.

  • table — aligned columns on TTY; compact JSON when piped
  • json — always compact JSON
  • json-pretty — indented JSON with ANSI syntax highlighting on TTY
  • yaml — YAML with highlighting on TTY
  • 0 — success
  • 1 — any error: API failure, validation failure, or usage error (bad flags, missing arg)

There are no other exit codes. execution wait exits 0 for any terminal status (including failed/cancelled) — parse the printed status field to branch on outcome.

Terminal window
factflow completion zsh > "$(brew --prefix)/share/zsh/site-functions/_factflow"
factflow completion bash > "$(brew --prefix)/etc/bash_completion.d/factflow"
factflow completion fish > ~/.config/fish/completions/factflow.fish
GroupPurpose
configCreate, edit, validate, run pipeline configurations
executionStart, inspect, cancel, wait, replay executions
pipelinePause, resume, inspect running routes globally
storageBrowse, read, download, watch storage objects
lineageInspect lineage rows, trace chains, find failures
searchSemantic, hybrid, multi-model search across indexed content
indexManage vector indexes and recommendations
replayReplay runner — typically invoked via execution replay
webhookManage webhook subscriptions and deliveries
systemHealth, metrics, config, version, reload
versionPrint CLI version