CLI Reference¶
The conbench binary is the supported command-line surface for writes,
interactive login, CI diagnostics, and trusted operations jobs. The CLI uses
Cobra, so every command supports --help:
This page is a map of the maintained command groups. The command-specific
--help output is the exact flag reference.
Result Commands¶
Submit one or more benchmark result JSON files:
Keep globs quoted:
The CLI expands globs internally, validates payloads, resolves credentials, and submits one file at a time. With one input file it prints one compact JSON result identity. With multiple input files it prints one JSON line per file, including per-file success or error state.
Fetch one result as JSON:
Use Submitting Results for payload shape and migration examples.
Read And Compare Commands¶
Compare two benchmark results:
List benchmark series:
Export history CSV for one result's series:
Use Browsing And Comparing for the dashboard and API workflows these commands support.
CI Commands¶
Render a CI benchmark report:
Common selector forms:
conbench ci report --server URL --repository REPO --commit SHA --run-ids RUN_IDS
conbench ci report --server URL --run-ids CONTENDER_IDS --baseline-run-ids BASELINE_IDS
--format json is the default. Use --format markdown --output
conbench-report.md for CI step summaries. Report exit codes are:
| Exit code | Meaning |
|---|---|
0 |
success or skipped report |
1 |
failure or action_required report |
2 |
usage, authentication, server, transport, or decode error |
Use CI Reporting for the metadata contract, GitHub Actions fragment, baseline modes, and status precedence.
Authentication Commands¶
Run browser loopback login and store a user-owned API token:
List and revoke API tokens:
For automation, prefer CONBENCH_TOKEN over --token so the token is not
placed on process arguments. Explicit --token remains available for local
overrides. Credential resolution is:
--tokenCONBENCH_TOKEN- the credentials file written by
conbench auth login
Use Authentication And Tokens for browser sessions, operator tokens, and user-owned API tokens.
Operations Commands¶
Repair unknown commit rows after GitHub metadata becomes available:
Evaluate server-side alert rules:
Deliver queued alert events:
conbench admin alerts deliver --channel webhook --format json
conbench admin alerts deliver --channel slack --format json
conbench admin alerts deliver --channel github-check --format json
conbench admin alerts deliver --channel github-comment --format json
conbench admin alerts deliver --channel email --format json
Run the production-clone compatibility harness:
Use Operations, Alerting, and Production-Clone Compatibility for the required environment variables and safety boundaries.
API And Server Commands¶
Emit the OpenAPI document:
Run the server and embedded Svelte dashboard:
Use API And SDK for generated clients and Operations for the runtime environment contract.