Skip to content

API keys

Create, use, and delete personal access tokens for the Marathon Cloud CLI and CI.

The CLI and every CI integration authenticate with a personal access token. Tokens belong to your user and act with your team role; create separate tokens for your laptop and for each CI system so one can be deleted without affecting the others.

Terminal window
export MARATHON_CLOUD_API_KEY=YOUR_TOKEN
marathon-cloud devices android

Every command reads the token from MARATHON_CLOUD_API_KEY, or from --api-key if you prefer to pass it explicitly.

  1. Sign in to the Marathon Cloud console and open the user menu in the top-right corner.
  2. Choose Tokens. The page is at /tokens.
  3. Under Create token, enter a Name that identifies where the token will be used, for example github-actions or laptop, and click Create.
  4. A Token created dialog shows the value once. Use the copy button and store it in your secret manager before closing the dialog.

Active tokens are listed under Active tokens with their name and creation date. Click the trash icon next to a token and confirm with Delete. Requests using that token are rejected with 401 Unauthorized from that moment.

Environment Store as
GitHub Actions Repository or organization secret, passed as apiKey
CircleCI Context or project environment variable MARATHON_CLOUD_API_KEY
Bitrise Secret MARATHON_CLOUD_API_KEY, passed as api_key
Local shell MARATHON_CLOUD_API_KEY in your shell profile, or a secrets manager

Never commit a token to version control. See CI/CD integration for per-platform examples.