A client for the CircleCI API.
Also an example of building a CLI application in Clojure and compiling it to a native executable using GraalVM.
Download a recent release and put it
on your PATH
.
- If you don't have one, generate a CircleCI API token here.
- Set a
CIRCLE_TOKEN
environment variable with your token. - If you have only one GitHub or Bitbucket project, set
CIRCLE_PROJECT_USER
orCIRCLE_PROJECT_ORG
so you don't have to specify a--username
at the CLI. - If you're using Bitbucket, set
CIRCLE_VCS_TYPE
so you don't have to specify your project's--vcs-type
at the CLI.
Turn off colored output by passing --no-color
.
For full details:
cci -h
To get the last 5 builds for your project:
cci -p your-project
To focus on one branch:
cci -p your-project -b your-branch
To pull back more:
cci -p your-project -l 25
In case you didn't read the usage section and you've not defined any environment variables:
cci -t your-token \
-u your-username \
-p your-project \
-v your-vcs-type \ # default of 'github'
-b your-branch \ # optional
-l a-limit # default of 5
Copyright © 2018 Daniel Gregoire
Distributed under the Mozilla Public License version 2.0.
Code copied and edited from tools.cli
in the com.semperos.cci.cli
namespace maintains its own copyright and license,
which has been included in the source code.