Install CircleCI CLI on Mac

From Bonus Bits
Jump to: navigation, search

Purpose

This article gives the steps to install setup CircleCI Command-Line on Mac OS X using Homebrew.


Environment

  • Mac OS X Yosimite 10.14.3
  • Homebrew 2.0.3


Prerequisites


Install

  1. brew install circleci
    


Configure

  1. Create a CircleCI Personal API Token
    1. https://circleci.com/account/api
    2. Example: 31e5b7e6259cbb66ab46ef835dfe28a7d16e13da
  2. Run Setup
    circleci setup
    

Example

# circleci setup
✔ CircleCI API Token: ****************************************
API token has been set.
✔ CircleCI Host: https://circleci.com
CircleCI host has been set.
Setup complete. Your configuration has been saved.

Which should create a couple configuration yaml files in your home directory.

├── .circleci
│   ├── cli.yml
│   └── update_check.yml

cli.yml

host: https://circleci.com
endpoint: graphql-unstable
token: 31e5b7e6259cbb66ab46ef835dfe28a7d16e13da


Related


Sources