CircleCI CLI
$ circleci Official Med RiskOfficial Go CLI for CircleCI pipelines, orbs, and contexts. Essential for agents editing .circleci/config.yml because circleci config validate catches YAML, orb, and schema errors before pushing commits.
brew install circleci Use circleci CLI directly for validating .circleci/config.yml, packing/expanding orbs, and managing contexts.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Non-interactive with --skip-update-check and crisp exit codes on config validate, though lacks universal --json output across commands.
circleci config validatereturns exit 0/non-zero cleanly- Outputs plain text or expanded YAML rather than
--json
Read-only config validate and config process catch CI errors pre-push; CIRCLECI_CLI_TOKEN scopes API access.
config validatenever triggers live pipelines
Single Go binary distributed via Homebrew and GitHub Releases across macOS, Linux, and Windows.
- Zero-dependency Go executable
Prevents broken CI YAML commits and simplifies orb/context management.
- Compiles orbs and validates dynamic config locally
Official CircleCI CLI under MIT license.
- First-party
CircleCI-Public/circleci-clirepository
Well-documented CLI guide at circleci.com/docs/local-cli/.
- Official docs at circleci.com/docs/local-cli/
Security, Auth & Guardrails
Stores API tokens and host endpoint in ~/.circleci/cli.yml and accepts CIRCLECI_CLI_TOKEN env var.
MIT open-source Go CLI; CircleCI build credits depend on your CircleCI plan.
# CircleCI CLI (circleci) Agent Rules - Always run `circleci config validate --skip-update-check` after editing `.circleci/config.yml`. - Confirm before running `circleci orb publish` or mutating `circleci context` secrets.
Agent-Ready Command Recipes
Safe Read-Only Queries
circleci config validate --skip-update-check
Checks .circleci/config.yml against CircleCI's config compiler without triggering pipeline runs.
circleci config process .circleci/config.yml --skip-update-check
Prints the fully compiled CircleCI YAML after resolving orb references.
Controlled Writes & Previews
circleci orb validate orb.yml --skip-update-check
Packs and validates a CircleCI orb definition without publishing.
Strengths for Agents
- +
circleci config validatecatches invalid YAML, orb parameters, and schema errors beforegit push. - +
circleci config processexpands orb definitions so agents can inspect compiled jobs. - + Single Go binary with
--skip-update-checkfor clean CI/agent output.
Caveats & Pitfalls
- !
config validatecalls the CircleCI GraphQL API by default (requires network access, though not always a token for public repos). - ! Lacks universal
--jsonoutput for pipeline/job inspection.