airglot
DocsPrivate beta
Docs menu

Tokens

The CLIs authenticate with a CI token. Each token belongs to one app and carries one or both scopes.

ScopeLets the CLI
SyncUpload the template with sync, and existing translations with import (web CLI).
ExportDownload published releases with pull.

check uses the token, when there is one, to check the template against AirGlot's rules. It saves nothing.

Create a token

  1. Open the app in AirGlot and go to Settings › Integrations.
  2. Under CI tokens, give the token a name, such as github-actions, pick its scopes and select Create token.
  3. Copy the token. You won't see it again. Tokens start with agt_.

Only people who can manage the app see this section.

Use it

The CLIs read the token only from the AIRGLOT_TOKEN environment variable. Never put it in airglot.yaml or commit it.

  • GitHub Actions: add a repository secret named AIRGLOT_TOKEN and pass it as env on the step. See CI pipelines.
  • Bitbucket Pipelines: add a secured repository variable named AIRGLOT_TOKEN.
  • Locally: export AIRGLOT_TOKEN=agt_… in your shell for one session.

Use separate tokens for separate jobs, for example one with Sync for the template workflow and one with Export for release builds. Then revoking one doesn't stop the other.

Revoke a token

In the same CI tokens list, select Revoke next to the token and confirm. The list shows when each token was last used, which helps find ones nothing uses any more. A revoked token stops working at once.

When the CLI gets a missing, revoked or wrong-scope token, it exits with code 1 or 2. See exit codes.