Forgecroft Docs
CLI

Forgecroft CLI

The Forgecroft CLI drives runs, workspaces, and API keys from your terminal. It is the fastest way to integrate Forgecroft into CI pipelines and coding agents.

Choose this lane if you want to trigger plans from your laptop, gate a CI pipeline on Forgecroft results, or let a coding agent (Claude Code, Codex, Cursor) operate Forgecroft on your behalf.

CLI vs Agent — which one do I need?

Forgecroft has two distinct binaries. They do different jobs and should not be confused.

forgecroft (CLI)forgecroft-agent (self-hosted runner)
Who runs itYou, on your laptop or in CIA long-running process on infra you control
What it doesTriggers runs, reads logs, manages keysClaims queued runs and executes tofu plan / apply
CredentialsYour user session or a short-lived onboarding keyAn org-scoped runner key you install once
When you need itAlways, if you use the API at allOnly for self-hosted execution (agent mode)

If you only use Forgecroft’s managed execution, you never need forgecroft-agent — the CLI is enough.