How to Install the CircleCI CLI

Posted on

CircleCI Docs and the CLI repo both contain install instructions but with lots of other info. Here’s simply how to install the CircleCI CLI:

Install on Ubuntu

Ubuntu 16.04, Ubuntu 18.04+

1
2
sudo snap install circleci docker
sudo snap connect circleci:docker docker

Note: With snap packages, the docker command will use the Docker snap, not any version of Docker you may have previously installed. For security purposes, snap packages can only read/write files from within $HOME.

Install on macOS

macOS 10.12+

1
brew install circleci

Install on elementary OS and Debian

elementary OS 0.4+ and Debian 9+

Install Snapd (if needed)

1
2
sudo apt install snapd
sudo snap install core   # On Debian only

Then install the snap

1
2
sudo snap install circleci docker
sudo snap connect circleci:docker docker

Install on Fedora

Fedora 28+

Install Snapd (if needed)

1
sudo dnf install snapd

Then install the snap

1
2
sudo snap install circleci docker
sudo snap connect circleci:docker docker

Install on other Unix-like Operating Systems

1
2
curl -o /usr/local/bin/circleci https://circle-downloads.s3.amazonaws.com/releases/build_agent_wrapper/circleci
chmod +x /usr/local/bin/circleci
comments powered by Disqus
Share
Share