A Circle CI API token is needed to interact with the Circle CI API.
browse_circle_token()
opens a browser window for the respective Circle CI
endpoint to retrieve the key.
Store API token
circle
supports two ways of storing the Circle API tokens:
via env vars
R_CIRCLE
via
~/.circleci/cli.yml
The latter should already be present if you already used the circle
CLI
tool at some point in the past. If not, its up to your preference which
approach to use.
The following instructions should help to set up ~/.circleci/cli.yml
correctly:
Copy the token from the browser after having called
browse_circle_token()
. You can useedit_circle_config()
to open~/.circleci/cli.yml
.The token should be stored using the following structure
Examples
if (FALSE) { # \dontrun{
browse_circle_token()
edit_circle_config()
} # }