# CircleCI CLI

Install and authenticate the CircleCI CLI so an agent can work with pipelines, builds, and configs from the terminal. This skill covers setup only. The maintained workflow skills live in the CircleCI-Public/skills repository (see below).

## When to use this

- The CLI is not installed yet, or `circleci auth me` fails
- You need the CLI's install and sign-in commands
- You want the full CLI skills for an agent

## Install

    brew install circleci                      # macOS and Linux (Homebrew)
    winget install --id CircleCI.CLI           # Windows

For apt, rpm, Snap, and other options, see https://cli.circleci.com/.

## Authenticate

    circleci auth login     # opens a browser for OAuth; no token to paste
    circleci auth me        # confirm who you are signed in as

In CI or other non-interactive environments, set `CIRCLE_TOKEN` to a personal API token instead: https://app.circleci.com/settings/user/tokens

## Get the full skills

The maintained `circleci-cli` skill, with the complete command workflows, is published by CircleCI-Public/skills. Either run:

    circleci help agents

or install the plugin in Claude Code:

    claude plugin marketplace add CircleCI-Public/skills
    claude plugin install circleci@circleci-public-skills

## Reference

- CLI home and install options: https://cli.circleci.com/
- LLM-friendly index: https://cli.circleci.com/llms.txt
- Command reference: https://cli.circleci.com/reference/
- CLI guide in the docs: https://circleci.com/docs/guides/toolkit/circleci-cli/
- Connect an agent over MCP: see the `circleci-mcp-server` skill
