Developer
News and Updates
Get Support
Sign in
Get Support
Sign in
DOCUMENTATION
Cloud
Data Center
Resources
Sign in
Sign in
DOCUMENTATION
Cloud
Data Center
Resources
Sign in
Last updated May 7, 2026

Authentication

Teamwork Graph CLI (TWG CLI) is in beta

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.

Re-authenticate

To update your credentials at any time:

1
2
twg login

To force a full re-entry of all credentials:

1
2
twg login --force

Create a TWG API token

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:

  1. Go to https://id.atlassian.com/manage-profile/security/api-tokens.
  2. Click Create API token with scopes and accept the pre-filled settings.
  3. Copy the token value and paste it when twg login prompts you.

Use environment variables

For CI/CD and scripted use, set the following variables instead of running twg login:

VariablePurpose
TWG_USERAtlassian account email
TWG_SITEDefault site prefix
TWG_TOKENAPI token generated by the login token page
TWG_BBC_TOKENBitbucket token for Bitbucket-specific commands

Never pass tokens as CLI flags. TWG CLI only accepts credentials interactively or via environment variables.

Next steps

Rate this page: