Troubleshoot TWG CLI
Common issues
“Command not found: twg” after installing
Your shell can’t find the TWG CLI binary. This usually means the install directory isn’t in your PATH.
To fix:
Run
ls ~/.local/bin/twgto confirm TWG CLI was installed.If the file exists, add
~/.local/binto your PATH. The installer should have shown you the exact line to add.Restart your terminal, then run
twg --versionto confirm it works.
Authentication fails or “Unauthorized” error
原因 | 修正 |
|---|---|
Wrong API token type | You must use a classic (unscoped) API token, not a scoped token. See Get started with TWG CLI. |
Token expired or revoked | Create a new token at id.atlassian.com and run |
Wrong site name | The site name should be just the subdomain, for example |
Wrong email | Confirm the email matches your Atlassian account. |
Your agent isn’t using TWG CLI skills
Your agent isn’t querying Atlassian data even though TWG CLI is installed.
To fix:
Run
twg skills installto confirm skills are installed.Check that skills were installed into your project folder (
.agents/skills/twg/). Some agents only pick up skills from a project-level folder.Restart your agent or editor session after installing.
Windows SmartScreen warning during install
Windows may show a SmartScreen warning when running the installer.
To proceed: Select More info, then select Run anyway.
Bitbucket commands return errors
If Bitbucket-specific prompts fail but Jira and Confluence work, you may not have configured a Bitbucket app password.
To fix: Run twg login again and follow the prompts to enter your Bitbucket app password.
Check your setup with twg doctor
TWG CLI includes a built-in diagnostic command that checks whether your setup is working correctly.
Run the check
twg doctorEach check shows as pass or fail with a short message.
What twg doctor checks
チェックマーク | 意味 |
|---|---|
Build info | Confirms TWG CLI is installed and shows the current version. |
認証 | Confirms your Atlassian credentials are saved and readable. |
API connectivity | Tests whether TWG CLI can reach the Atlassian API with your credentials. |
Skills installed | Checks whether agent skills are installed in your project. |
If a check fails
Failed check | What to do |
|---|---|
Build info | Re-install TWG CLI. See Get started with TWG CLI. |
認証 | Run |
API connectivity | Check your network connection and confirm your API token is valid. If on a VPN, confirm Atlassian domains are accessible. |
Skills installed | Run |
この内容はお役に立ちましたか?