EvalGate CLI command reference
Complete reference for all EvalGate CLI commands: setup, gates, CI integration, trace labeling, failure analysis, judge orchestration, and auto loops.The EvalGate CLI is the fastest way to run regression gates, analyze failure patterns, and automate prompt improvement without leaving your terminal. Run TypeScript CLI commands with
npx @evalgate/sdk <command> for zero-install usage, or add @evalgate/sdk to your project and run the same commands through your package manager.
- TypeScript (npx)
- Python
Navigate by outcome
Both CLIs expose the same versioned capability map. Start here when you know the job you need to accomplish but not the internal command name:Stable exit codes
Call any public API operation
The TypeScript CLI’sapi command consumes the generated public operation registry. This gives automation a single command for every operation in the API reference without falling back to private routes or database helpers. Treat it as an escape hatch for advanced automation; evalgate capabilities and the native workflow commands are the primary navigation surface.
--path name=value, --query name=value, and --header name=value more than once when an operation declares multiple inputs. --body accepts inline JSON or @path/to/body.json. Machine mode writes the exact successful API envelope to stdout; failures write a stable JSON error containing code, message, status, requestId, and exitCode. Ctrl-C aborts the active request and exits 130.
Setup and initialization
npx @evalgate/sdk init — plan and scaffold a project
npx @evalgate/sdk init — plan and scaffold a project
yarn alias,
Yarn Classic, Yarn Modern, Bun, Deno, pip, uv, Poetry, Pipenv, PDM,
Conda, Mamba, Hatch, Pixi, and explicit custom JSON argv. Conflicting
JavaScript or Python/environment markers stop the plan. Repeat
--package-handler <id> for an explicit polyglot composition; gate and
baseline update execute every runnable handler from its owning root.baseline update accepts only successful current evidence.
Then commit the generated files and push to trigger your first CI gate:npx @evalgate/sdk doctor — environment diagnostics
npx @evalgate/sdk doctor — environment diagnostics
--quick when you also want account and platform connectivity checks.Gate and CI
npx @evalgate/sdk gate — run the regression gate locally
npx @evalgate/sdk gate — run the regression gate locally
1 if any metric regresses.npx @evalgate/sdk ci — one-command CI gate
npx @evalgate/sdk ci — one-command CI gate
--base is provided. Add --impacted-only to run only specs affected by the current diff.npx @evalgate/sdk check — platform gate
npx @evalgate/sdk check — platform gate
EVALGATE_API_KEY). Use --onFail import to upload failed run context to the dashboard for review.npx @evalgate/sdk baseline update — refresh the baseline
npx @evalgate/sdk baseline update — refresh the baseline
Labeling and analysis
npx @evalgate/sdk label — interactive trace labeling
npx @evalgate/sdk label — interactive trace labeling
u to undo the previous label. Press Ctrl-C to save progress and exit.npx @evalgate/sdk analyze — failure-mode frequency report
npx @evalgate/sdk analyze — failure-mode frequency report
npx @evalgate/sdk failure-modes — configure failure-mode taxonomy
npx @evalgate/sdk failure-modes — configure failure-mode taxonomy
label, and optionally seeds or extends your evalgate.config.json alert weights.failureModeAlerts.modes in config and used by analyze and gate alerting.npx @evalgate/sdk replay-candidate — inspect a stored candidate for replay
npx @evalgate/sdk replay-candidate — inspect a stored candidate for replay
replay alias is deprecated — prefer replay-candidate.npx @evalgate/sdk replay-decision — compare two runs
npx @evalgate/sdk replay-decision — compare two runs
Agent evidence and enterprise controls
npx @evalgate/sdk run-cli — run a command with evidence capture
npx @evalgate/sdk run-cli — run a command with evidence capture
--local).npx @evalgate/sdk mcp — inspect, audit, or proxy MCP servers
npx @evalgate/sdk mcp — inspect, audit, or proxy MCP servers
--format json for machine-readable audit output. Use --strict-persistence in CI when evidence must land on the platform.npx @evalgate/sdk controls — inspect enterprise guardrails
npx @evalgate/sdk controls — inspect enterprise guardrails
EVALGATE_API_KEY with access to /api/system/controls.Repository intelligence and evaluation packs
Use the local activation path first. After the gate is working and GitHub is connected, scan an exact commit, review the evidence, and then install coverage:Advanced
npx @evalgate/sdk cluster — group similar failures
npx @evalgate/sdk cluster — group similar failures
npx @evalgate/sdk synthesize — generate synthetic golden cases
npx @evalgate/sdk synthesize — generate synthetic golden cases
npx @evalgate/sdk auto — bounded autonomous prompt-improvement loop
npx @evalgate/sdk auto — bounded autonomous prompt-improvement loop
npx @evalgate/sdk auto. The Python CLI exposes the same bounded workflow as evalgate auto run and evalgate auto daemon.npx @evalgate/sdk discover --manifest — refresh the spec manifest
npx @evalgate/sdk discover --manifest — refresh the spec manifest
Judge commands
npx @evalgate/sdk judge registry — list available judges
npx @evalgate/sdk judge registry — list available judges
npx @evalgate/sdk judge presets — list judge presets
npx @evalgate/sdk judge presets — list judge presets
npx @evalgate/sdk judge test — test a judge configuration
npx @evalgate/sdk judge test — test a judge configuration
npx @evalgate/sdk judge compare — compare two outputs
npx @evalgate/sdk judge compare — compare two outputs
Judge credibility config
Configure judge credibility thresholds and failure-mode alerts inevalgate.config.json at the root of your project:
8 (WARN) instead of using a potentially biased score. When labeled sample count is below minLabeledSamples, bootstrap confidence intervals are also skipped — both conditions emit reason codes into the judgeCredibility block of the JSON report.
Complete command index
Every registered EvalGate CLI command. Runnpx @evalgate/sdk <command> --help for the same text in your terminal.
evalgate analyze — Analyze labeled golden dataset failure modes (first pass)
evalgate analyze — Analyze labeled golden dataset failure modes (first pass)
evalgate api - call any public operation from the verified OpenAPI contract
evalgate api - call any public operation from the verified OpenAPI contract
evalgate auto — Plan, run, or daemonize budget-aware experiment iterations
evalgate auto — Plan, run, or daemonize budget-aware experiment iterations
evalgate baseline — Manage regression gate baselines
evalgate baseline — Manage regression gate baselines
evalgate check — CI/CD evaluation gate (API-based)
evalgate check — CI/CD evaluation gate (API-based)
evalgate ci — One-command CI loop (manifest → impact → run → diff)
evalgate ci — One-command CI loop (manifest → impact → run → diff)
evalgate cluster — Group similar traces for faster cluster-level review
evalgate cluster — Group similar traces for faster cluster-level review
evalgate compare — Side-by-side result file comparison
evalgate compare — Side-by-side result file comparison
evalgate controls - Inspect enterprise guardrails, provider policy, retention, and drift alerts
evalgate controls - Inspect enterprise guardrails, provider policy, retention, and drift alerts
evalgate datasets - Manage governed Dataset Hub artifacts
evalgate datasets - Manage governed Dataset Hub artifacts
evalgate diff — Compare two run reports
evalgate diff — Compare two run reports
evalgate discover — Discover behavioral specs
evalgate discover — Discover behavioral specs
evalgate doctor — Comprehensive CI/CD readiness checklist
evalgate doctor — Comprehensive CI/CD readiness checklist
evalgate evals — Evals-as-Code manifest workflow
evalgate evals — Evals-as-Code manifest workflow
evalgate explain — Explain last gate/check failure
evalgate explain — Explain last gate/check failure
evalgate failure-modes — View and configure failure-mode taxonomy
evalgate failure-modes — View and configure failure-mode taxonomy
evalgate gate — Run the regression gate
evalgate gate — Run the regression gate
evalgate generate - Generate test cases via LLM
evalgate generate - Generate test cases via LLM
evalgate impact-analysis — Analyze impact of changes
evalgate impact-analysis — Analyze impact of changes
evalgate init - Preview or apply EvalGate project scaffolding
evalgate init - Preview or apply EvalGate project scaffolding
evalgate integrity - Inspect integrity and workflow-governance signals
evalgate integrity - Inspect integrity and workflow-governance signals
evalgate judge — Run, compare, or configure pluggable judges
evalgate judge — Run, compare, or configure pluggable judges
evalgate knowledge - Inspect learned workflow hints and playbook guidance
evalgate knowledge - Inspect learned workflow hints and playbook guidance
evalgate label — Interactive trace labeling for golden dataset
evalgate label — Interactive trace labeling for golden dataset
evalgate mcp - Inspect, audit, or proxy MCP servers with evidence capture
evalgate mcp - Inspect, audit, or proxy MCP servers with evidence capture
evalgate measurement - Inspect and execute evaluator validation
evalgate measurement - Inspect and execute evaluator validation
evalgate migrate — Migrate legacy config formats
evalgate migrate — Migrate legacy config formats
evalgate packs - Discover and install first-party domain evaluation packs
evalgate packs - Discover and install first-party domain evaluation packs
evalgate plan - Preview an autonomous workflow plan
evalgate plan - Preview an autonomous workflow plan
evalgate print-config — Show resolved config
evalgate print-config — Show resolved config
evalgate promote — Promote candidate eval cases to regression suite
evalgate promote — Promote candidate eval cases to regression suite
evalgate prompts - Manage governed Prompt Hub artifacts
evalgate prompts - Manage governed Prompt Hub artifacts
evalgate replay — Replay a candidate eval case (deprecated alias)
evalgate replay — Replay a candidate eval case (deprecated alias)
evalgate replay-candidate — Replay a candidate eval case
evalgate replay-candidate — Replay a candidate eval case
evalgate replay-decision - Compare two run reports and decide keep/discard
evalgate replay-decision - Compare two run reports and decide keep/discard
evalgate repo - Scan an exact connected repository commit for AI systems
evalgate repo - Scan an exact connected repository commit for AI systems
evalgate rollback - Remove files created by one init transaction
evalgate rollback - Remove files created by one init transaction
evalgate run — Run evaluation specifications
evalgate run — Run evaluation specifications
evalgate run-cli - Run an agent/CLI command with evidence capture
evalgate run-cli - Run an agent/CLI command with evidence capture
evalgate sync — Push/pull labels and prompt state between CLI and web
evalgate sync — Push/pull labels and prompt state between CLI and web
evalgate synthesize — Generate synthetic golden-case drafts from labeled failures
evalgate synthesize — Generate synthetic golden-case drafts from labeled failures
evalgate trace — Inspect stored trajectory metrics for a run
evalgate trace — Inspect stored trajectory metrics for a run
evalgate validate — Validate spec files without running them
evalgate validate — Validate spec files without running them
evalgate watch — Watch mode (re-execute on file save)
evalgate watch — Watch mode (re-execute on file save)
evalgate workflow - Inspect or generate workflow-native coverage bundles
evalgate workflow - Inspect or generate workflow-native coverage bundles