Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

CircleCI CLI

$ circleci Official Med Risk
CircleCI · Code & DevOps · MIT · macos / linux / windows

Official 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.

FCRS-1.0 Score
84 /100
Good
Medium Confidence
Zero-Friction Install
brew install circleci
CLI vs MCP Decision CLI Preferred vs MCP

Use circleci CLI directly for validating .circleci/config.yml, packing/expanding orbs, and managing contexts.

Agent-Readiness Checklist

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 19 / 25

Non-interactive with --skip-update-check and crisp exit codes on config validate, though lacks universal --json output across commands.

  • circleci config validate returns exit 0/non-zero cleanly
  • Outputs plain text or expanded YAML rather than --json
Trust & Safety 21 / 25

Read-only config validate and config process catch CI errors pre-push; CIRCLECI_CLI_TOKEN scopes API access.

  • config validate never triggers live pipelines
Setup & Portability 14 / 15

Single Go binary distributed via Homebrew and GitHub Releases across macOS, Linux, and Windows.

  • Zero-dependency Go executable
Utility & Efficiency 13 / 15

Prevents broken CI YAML commits and simplifies orb/context management.

  • Compiles orbs and validates dynamic config locally
Maintenance & Lineage 9 / 10

Official CircleCI CLI under MIT license.

  • First-party CircleCI-Public/circleci-cli repository
Docs & Verifiability 8 / 10

Well-documented CLI guide at circleci.com/docs/local-cli/.

  • Official docs at circleci.com/docs/local-cli/

Security, Auth & Guardrails

Auth Modes
Env API Key Config File
Credential Storage

Stores API tokens and host endpoint in ~/.circleci/cli.yml and accepts CIRCLECI_CLI_TOKEN env var.

Side Effects
Read-Only Local Write Remote Write
Cost & Quotas

MIT open-source Go CLI; CircleCI build credits depend on your CircleCI plan.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Validate .circleci/config.yml syntax and schema
circleci config validate --skip-update-check

Checks .circleci/config.yml against CircleCI's config compiler without triggering pipeline runs.

Expand orbs and parameterized jobs
circleci config process .circleci/config.yml --skip-update-check

Prints the fully compiled CircleCI YAML after resolving orb references.

Controlled Writes & Previews

Validate an inline orb source directory
circleci orb validate orb.yml --skip-update-check

Packs and validates a CircleCI orb definition without publishing.

Strengths for Agents

  • + circleci config validate catches invalid YAML, orb parameters, and schema errors before git push.
  • + circleci config process expands orb definitions so agents can inspect compiled jobs.
  • + Single Go binary with --skip-update-check for clean CI/agent output.

Caveats & Pitfalls

  • ! config validate calls the CircleCI GraphQL API by default (requires network access, though not always a token for public repos).
  • ! Lacks universal --json output for pipeline/job inspection.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI