Feliciano.Tech

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+

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+

brew install circleci

Install on elementary OS and Debian

elementary OS 0.4+ and Debian 9+

Install Snapd (if needed)

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

Then install the snap

sudo snap install circleci docker
sudo snap connect circleci:docker docker

Install on Fedora

Fedora 28+

Install Snapd (if needed)

sudo dnf install snapd

Then install the snap

sudo snap install circleci docker
sudo snap connect circleci:docker docker

Install on other Unix-like Operating Systems

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