TWG CLI is currently in beta. Commands and documentation may change between releases.
TWG CLI stores credentials in ~/.config/twg/auth.conf and reuses them across sessions. Use this page to manage tokens, re-authenticate, or configure credentials for CI/CD.
To update your credentials at any time:
1 2twg login
To force a full re-entry of all credentials:
1 2twg login --force
TWG CLI uses a single API token for TWG commands across Jira, Confluence, Rovo Search, and more. The token page is selected by the binary's default token mode: classic-token binaries open the standard Atlassian API-token page, while scoped-token binaries open the TWG-scoped token page.
Bitbucket-specific commands require a separate Bitbucket token. twg login prompts for this optional token and preserves an existing Bitbucket token unless you run twg login --force.
twg login opens your browser automatically to the token creation page. If you need to create a TWG-scoped token manually:
twg login prompts you.For CI/CD and scripted use, set the following variables instead of running twg login:
| Variable | Purpose |
|---|---|
TWG_USER | Atlassian account email |
TWG_SITE | Default site prefix |
TWG_TOKEN | API token generated by the login token page |
TWG_BBC_TOKEN | Bitbucket token for Bitbucket-specific commands |
Never pass tokens as CLI flags. TWG CLI only accepts credentials interactively or via environment variables.
Rate this page: