Getting started with the CLI
Install
Section titled “Install”Homebrew (macOS and Linux):
brew install forgecroft/tap/forgecroftcurl (any Unix):
curl -sSfL https://install.forgecroft.com | shBoth paths install the forgecroft-gate command into a directory on your PATH. Verify:
forgecroft-gate --versionSet your API key
Section titled “Set your API key”Create an API key in the Forgecroft console under Settings → API keys, then set it as an environment variable:
export FORGECROFT_API_KEY=fc_live_...The gate reads your key from FORGECROFT_API_KEY. Export it in your shell locally, or store it as a secret named FORGECROFT_API_KEY in continuous integration. There is no interactive login command — the key is the only credential the gate needs. To review your identity and organization, open the account page in the Forgecroft console.
Evaluate your first change
Section titled “Evaluate your first change”From inside a git repository with staged changes, evaluate the diff against your org’s Controls:
forgecroft-gateThe gate sends the staged diff to Forgecroft, matches your changed paths to the covering Components, applies your Controls, and prints a deterministic verdict — go, conditional_go, no_go, or insufficient_context. It exits 0 unless the verdict is no_go or a finding is a blocker. That is all you need to gate a continuous-integration job. To evaluate an arbitrary range instead of the staged diff:
forgecroft-gate --range main..HEADSee API-First Quickstart for a curl-equivalent walkthrough of the same evaluation.
Next steps
Section titled “Next steps”- CI Usage — wire the merge gate and fail continuous integration on a
no_goverdict - Coding Agents — wire Forgecroft into Claude Code, Codex, or Cursor
- Command Reference — every flag the gate accepts