Run the following command and follow the prompts:
1 2twg login
You'll be asked for:
| Prompt | What to enter |
|---|---|
| Site | Your Atlassian site name (for example, example for example.atlassian.net) |
| Your Atlassian account email | |
| API token | A classic (unscoped) API token — see below |
Credentials are saved to ~/.twg/auth.conf and reused across sessions.
TWG CLI requires a classic API token (also called an unscoped token).
twg-cli and copy the token value.Some products require additional credentials. All are prompted interactively during twg login:
| Product | What you need |
|---|---|
| Bitbucket | Bitbucket app password |
| Rovo Search | MCP-scoped token |
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 | Classic API token |
TWG_BBC_TOKEN | Bitbucket app password |
TWG_MCP_TOKEN | Rovo MCP token |
Never pass tokens as CLI flags. TWG CLI only accepts credentials interactively or via environment variables.
Rate this page: