Use CircleCI from the command line
open sourceMITself-hostablefreeMCP
The CircleCI CLI (circleci) is CircleCI's official command-line tool for circleci.com and CircleCI server. It triggers and watches runs, inspects workflows, jobs, test results and flaky tests, downloads artifacts, validates and processes pipeline config, and manages contexts, environment variables, orbs, policies, self-hosted runners and projects, with --json output on every command that returns data. circleci preflight runs uncommitted changes through CI on a temporary branch, circleci migrate converts GitHub Actions workflows, and circleci mcp runs the CLI as an MCP server for AI coding agents. It is written in Go under the MIT licence and installs with Homebrew, WinGet, Snap, apt or rpm.
Ways to install
App stores
Package managers
Problems it solves
- validate my CircleCI config.yml before I push and wait for the pipeline to fail
- watch my CI run from the terminal instead of refreshing the browser
- my coding agent needs to read failing CI logs and rerun the job
- download the build artifacts from the last CI job without clicking through the web UI
- see which tests are flaky across recent CI runs
- run my uncommitted changes through CI before I commit them
- manage CI secrets and environment variables from a script
- publish and version reusable CI config packages for my organization
- convert our GitHub Actions workflows to CircleCI
- check CPU and memory usage of a CI job to pick the right resource class
- trigger a pipeline on a branch from the command line
- give Claude Code or Cursor access to our CI runs through MCP
- test the policies that govern which pipelines can run before pushing them
Features
- trigger, watch, approve, cancel and list runs
- inspect workflows, jobs, step output and CPU and memory usage
- download job artifacts
- validate, process and pack pipeline config
- test results and flaky test detection
- preflight: run uncommitted changes through CI on a temporary branch
- contexts, project environment variables and Docker layer cache purges
- orb and namespace management
- policy testing and pushing
- self-hosted runner resource classes, instances and tokens
View 6 more
- migrate GitHub Actions workflows
- raw CircleCI API requests
- --json output for scripting
- runs as an MCP server for Claude, Cursor or VS Code
- CLI extensions
- agent skills for Claude Code and other coding agents
Capabilities
| Agents can report problems | plan not known |
|---|---|
| Has a command line tool | plan not known |
| Has an MCP server | plan not known |
| Takes plugins | plan not known |
Alternatives
The same job
These do what CircleCI CLI does.
- GitHub CLI (gh) GitHub's official command line tool
- GitLab CLI A GitLab CLI tool bringing GitLab to your command line
- CircleCI CI/CD platform for building, testing and deploying software
- Claude Code GitHub Actions GitHub Action that runs Claude Code in your workflows, on @claude mentions or any GitHub event
