# CircleCI CLI > Command-line interface to CircleCI for use in your terminal or scripts. This is the short index: install, authenticate, install the agent skills, and links to the full reference. # Getting started `circleci` is a command-line interface to CircleCI for use in your terminal or your scripts. ## Installation Pick the entry for your platform. Package managers that need their repository registered first list the setup command and the install command, in that order. macOS or Linux — Homebrew: ```shell brew install circleci ``` Windows — WinGet: ```shell winget install --id CircleCI.CLI ``` Linux — apt (Debian, Ubuntu, Mint, Raspberry Pi): ```shell curl -1sLf 'https://packages.circleci.com/public/setup.deb.sh' | sudo -E bash sudo apt install circleci ``` Linux — rpm (Fedora, RHEL, SUSE, Amazon): ```shell curl -1sLf 'https://packages.circleci.com/public/setup.rpm.sh' | sudo -E bash sudo dnf install circleci ``` Linux — Snap: ```shell sudo snap install circleci sudo snap connect circleci:password-manager-service ``` Prebuilt binaries and Linux packages for every release are on the [releases page](https://github.com/CircleCI-Public/circleci-cli/releases), and the [README](https://github.com/CircleCI-Public/circleci-cli#readme) covers the less common cases. ## Configuration Run `circleci auth login` to authenticate with your CircleCI account. You can also set the `CIRCLE_TOKEN` environment variable. ## Get Running Run `circleci run get` to view the runs for the current project in an interactive terminal UI (TUI). ## AI agents Using an AI coding agent? Run `circleci help agents` to install CircleCI's skills. ## Model Context Protocol The CLI supports the MCP protocol. To enable it, run: Claude: ```shell circleci mcp claude enable # Enable in Claude desktop claude mcp add-from-claude-desktop -s user # Add with current user scope ``` Cursor: ```shell circleci mcp cursor enable ``` VS Code: ```shell circleci mcp vscode enable ``` ## Support Report bugs or search for existing feature requests in our [issue tracker](https://github.com/CircleCI-Public/circleci-cli/issues) # Agents CircleCI publishes skills that teach AI coding agents to use `circleci`: validate config, watch the run a push started, read failing logs and tests, rerun jobs and debug failed builds. Further skills cover config tuning, onboarding, deploys and Smarter Testing. The source is at . ## Claude Code ```shell claude plugin marketplace add CircleCI-Public/skills claude plugin install circleci@circleci-public-skills ``` Or inside a session: ```text /plugin marketplace add CircleCI-Public/skills /plugin install circleci@circleci-public-skills ``` ## Codex ```shell codex plugin marketplace add CircleCI-Public/skills codex plugin add circleci@circleci-skills ``` ## Cursor and other agents The [skills](https://github.com/vercel-labs/skills) installer (Node 22.20 or later) supports Cursor and most other agents; `-a` names the agent. To install the CLI skill: ```shell npx skills add CircleCI-Public/skills -a cursor --skill circleci-cli ``` `--skill` takes several names, and `--list` shows them all. Leaving `--skill` out installs every skill in the repository, the Chunk skills included, when an agent runs the command or `-y` is passed; in a terminal you pick from a list instead. Pass `-g` to install for your user rather than the current project. Without it, an agent gets the project, and a terminal asks which you want. Without Node, copy a skill's folder from `plugins/circleci/skills/` in the repository to `~/.cursor/skills/`, where `` is the `name` in its `SKILL.md`, so `skills/cli` becomes `circleci-cli`. ## MCP `circleci` also runs as an MCP server. Run `circleci mcp claude enable` (Claude Desktop), `circleci mcp cursor enable` or `circleci mcp vscode enable`. `circleci help getting-started` shows the extra step for Claude Code. ## Docs for models - : install, authenticate, and links to the rest - : every command, flag and JSON field ## Reference - [Full command reference](https://cli.circleci.com/llms-full.txt): every command, flag and JSON field, generated from the live command tree. Large — fetch it when you need command detail. - [Command reference on the web](https://cli.circleci.com/reference/): the same content as a browsable page. - [Environment variables](https://cli.circleci.com/reference/#environment): authentication, colour, paging and telemetry. Also `circleci help environment`. - [Output formatting](https://cli.circleci.com/reference/#formatting): `--json`, `--jq` and templates. Also `circleci help formatting`. - [Source, issue tracker and prebuilt binaries](https://github.com/CircleCI-Public/circleci-cli)