LinuxCommandLibrary

circleci

CLI for CircleCI continuous integration platform

TLDR

Configure CLI with API token

$ circleci setup
copy
Validate config file
$ circleci config validate
copy
Run job locally
$ circleci local execute --job [build]
copy
Process config file
$ circleci config process [.circleci/config.yml]
copy
Create new project
$ circleci project create
copy
List contexts
$ circleci context list [github] [org-name]
copy
List orbs
$ circleci orb list
copy
Get namespace info
$ circleci namespace info [namespace]
copy

SYNOPSIS

circleci [options] command [arguments]

DESCRIPTION

circleci is the official CLI for CircleCI, enabling local job execution, config validation, pipeline management, and interaction with CircleCI resources from the terminal.
The CLI is particularly useful for validating and processing configuration files before pushing changes, running jobs locally in Docker containers for faster development iteration, and managing orbs, contexts, and project settings. It integrates with the CircleCI API for pipeline and workflow management.
Local execution requires Docker and runs individual jobs in containers that mirror the cloud environment, though some features like caching and workflows are not available locally.

PARAMETERS

--token token

CircleCI API token
--host url
CircleCI host URL
--debug
Enable debug output
--skip-update-check
Skip update check

CONFIGURATION

~/.circleci/cli.yml

CLI configuration including API token and host URL.
.circleci/config.yml
Project-level CircleCI pipeline configuration defining jobs, workflows, and orbs.

COMMANDS

setup

Configure CLI with API token
config validate
Validate config.yml syntax
config process
Process and expand config
local execute
Run jobs locally
project
Manage projects
context
Manage contexts and environment variables
orb
Manage orbs
namespace
Manage namespaces
pipeline
Manage pipelines
version
Show version

LOCAL EXECUTION

$ circleci local execute --job build -e VAR=value
copy
Note: Workflows, caching, and some features are not supported locally.

CAVEATS

Local execution runs single jobs only, not workflows. Caching not supported locally. Some CircleCI features require cloud execution.

SEE ALSO

docker(1), git(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community