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 use
edit_circle_config()
to open ~/.circleci/cli.yml
.
The token should be stored using the following structure
host: https://circleci.com
endpoint: graphql-unstable
token: <token>