A CLI for viewing CircleCI pipelines, workflows, jobs, and output.
- View pipelines with workflow status
- List workflows and jobs with status filtering
- View detailed job information including steps
- Display job output with ANSI color support
- Smart caching and concurrent API requests for faster responses
- Token efficient integration with Claude Code (via skill)
uv tool install --from git+https://github.com/Peter554/circle-cli circle
# or (suggested to create an alias)
uvx --from git+https://github.com/Peter554/circle-cli circle Configuration is loaded from multiple sources with the following priority:
CLI flags > environment variables > project config > home config
Create ~/.circle-cli.toml for settings shared across all projects:
token = "your-circleci-token"Create .circle-cli.toml in your project root for project-specific settings:
org = "your-organization"
repo = "your-repository"
# vcs = "gh" # optional, defaults to "gh" (GitHub). Use "bb" for Bitbucket.The project config is searched upward from the current directory, stopping at the git repository root.
Important: Add .circle-cli.toml to your .gitignore or .git/info/exclude to keep your token secure.
Configuration can also be set via environment variables: CIRCLE_TOKEN, CIRCLE_ORG, CIRCLE_REPO, CIRCLE_VCS or CLI flags.
Aliases: pipeline, p
Show latest pipelines for a branch. This is the default command for the CLI.
Flags:
--branch,-b- The branch to show pipelines for (defaults to current branch). Use@anyto show your pipelines across all branches.--number,-n- Number of pipelines to show (default: 3)
# These are all equivalent (default command)
circle pipelines list
circle pipelines
circle p
circle
# Show pipelines for a specific branch
circle pipelines --branch main
circle pipelines -b main
# Show your pipelines across all branches
circle pipelines -b @any
# Show more pipelines
circle pipelines -n 10Aliases: workflow, w
Show workflows for a pipeline.
Flags:
--pipeline,-p- Pipeline ID (defaults to latest pipeline for current branch)
# These are all equivalent
circle workflows list
circle workflows
circle w
# Show workflows for a specific pipeline
circle workflows --pipeline abc123Aliases: job, j
Show jobs for workflows.
Flags:
--pipeline,-p- Pipeline ID (defaults to latest pipeline for current branch)--workflow,-w- Filter by workflow ID (can be specified multiple times)--status,-s- Filter by job status (can be specified multiple times)
# These are all equivalent
circle jobs list
circle jobs
circle j
# Show only failed jobs
circle jobs --status failed
# Filter by pipeline
circle jobs --pipeline abc123
# Filter by workflow
circle jobs --workflow abc123 --workflow def456Show detailed information about a job, including its steps.
Aliases: detail
Flags:
--step-status,-s- Filter steps by status (can be specified multiple times)
# Show job details
circle jobs details 12345
# Show only failed steps
circle jobs details 12345 --step-status failedShow test metadata for a job. Useful for identifying which tests failed before viewing full output.
Flags:
--status,-s- Filter by test result (success, failure/failed, skipped). Can be specified multiple times.--file,-f- Filter tests by file path suffix--show-messages,-m- Show failure messages
# Show all tests for a job
circle jobs tests 12345
# Show only failed tests
circle jobs tests 12345 --status failed
# Show failed tests with failure messages
circle jobs tests 12345 --status failed --show-messages
# Filter by file
circle jobs tests 12345 --file test_auth.pyShow the output of a job step.
Flags:
--step(required) - The step number to show output for--parallel-index- The parallel run index (required if there are multiple parallel runs)--try-extract-summary- Try to extract a summary from the output (e.g., pytest summary)
# Show output for step 5
circle jobs output 12345 --step 5
# Extract summary (useful for test output)
circle jobs output 12345 --step 5 --try-extract-summary
# For parallel runs
circle jobs output 12345 --step 5 --parallel-index 2Manage the local cache. Cache is stored per-project based on the project slug.
Show total cache size.
circle cache sizeProactively remove expired items from the cache. Note that expired items are also cleared automatically on access.
circle cache pruneClear all items from the cache.
circle cache clearThese flags are available on all commands:
--token- CircleCI API token--vcs- Version control system (ghorbb)--org- Organization name--repo- Repository name--output-format- Output format (prettyorjson)--no-cache- Disable caching--log-level- Log level (DEBUG, INFO, WARNING, ERROR, CRITICAL)
A skill is available for Claude Code that teaches Claude how to use this CLI. Install it with:
circle install-claude-skillThis installs the skill to ~/.claude/skills/circle-cli/. Use --skills-dir to specify a different location.
Once installed, Claude can automatically use the CLI to investigate CI failures, check pipeline status, and view job output.