TWG CLI

Set up TWG CLI

1. CLI installation mode

Use this mode when you want to install and authenticate TWG CLI directly from your terminal.

Before you begin

The TWG CLI binary does not require a separate runtime (for example, no Node.js).

Step 1: Install TWG CLI

macOS and Linux

Recommended:

curl -fsSL https://teamwork-graph.atlassian.com/cli/install -o twg-install.sh
bash twg-install.sh

If you use Bash or zsh and want a compact shortcut, you can also run:

bash <(curl -fsSL https://teamwork-graph.atlassian.com/cli/install)

During setup:

The installer completes setup and runs twg doctor automatically. To repair setup later:

twg setup

To install a specific version:

bash twg-install.sh --version 0.9.1

If ~/.local/bin is not in your PATH, the installer prints the exact line to add to your shell profile.

Windows

Install — PowerShell
curl.exe -fsSL https://teamwork-graph.atlassian.com/cli/install.ps1 -o twg-install.ps1
powershell -ExecutionPolicy Bypass -File .\twg-install.ps1
Install — Command Prompt (cmd)
curl.exe -fsSL https://teamwork-graph.atlassian.com/cli/install.ps1 -o twg-install.ps1
powershell -ExecutionPolicy Bypass -File twg-install.ps1

The Windows installer performs the same setup as macOS and Linux: binary install, checksum verification, consent, email and site save, skill install, token login, and doctor verification.

Setup asks for:

Prompt What to enter
Email Your Atlassian account email.
Site Your Atlassian site name (for example, example for example.atlassian.net).
Token The token from the page that twg login opens automatically.
Bitbucket token Optional post-setup step. Required only for Bitbucket-specific commands.

Credentials are saved to ~/.config/twg/auth.conf and reused across sessions. For re-authentication, token management, and CI/CD environment variables, see Authentication.

2. Agent installation mode

Use this mode when you want an AI coding agent to install TWG CLI, authenticate, and set up agent skills for you.

Copy the following prompt and paste it into your agent:

Install/setup TWG using https://teamwork-graph.atlassian.com/cli/AGENTS.md

The agent should use that hosted AGENTS.md directly. There are no separate agent-specific install URLs.

Verify setup

Run:

twg doctor

This checks authentication, connectivity, and build info. It works the same on macOS, Linux, PowerShell, and cmd.

Try it

Your AI coding agent can now access your Atlassian data across Jira, Confluence, Bitbucket, and more. Describe what you want in plain language and your agent handles the rest:

See Agent examples for more prompts to try.

Quick start video

Introduction to Teamwork Graph CLI — walks through installation, authentication, and using the agent skill to query work across Atlassian products.

Update

macOS/Linux — use the built-in updater:

twg update

Windows (PowerShell or cmd) — re-run the install command from the Windows section above.

twg update and the installers refresh installed skill files automatically when they can detect existing TWG skill installs.

Setup enables scheduled OAuth refresh and update notifications automatically. To repair or re-enable the schedule manually:

twg upkeep enable

This installs a per-user native schedule that runs every 12 minutes. It never installs CLI updates automatically. Use twg upkeep status to inspect it and twg upkeep disable to remove it. Linux scheduling requires a systemd user instance and an active user D-Bus session. If setup cannot install the schedule, it completes with repair guidance; a manual retry reports the underlying systemctl --user error.

If upkeep is disabled, normal CLI use performs at most one best-effort detached update check per day. twg -v only prints the installed version, and twg doctor does not perform a release check.

Uninstall

Preview the files and state that would be removed:

twg uninstall --dry-run

The default uninstall disables scheduled upkeep, then removes the binary, installer-owned skill bundles, upkeep state, PATH changes, and caches. It preserves credentials, consent, and user configuration so reinstalling can restore the CLI without repeating setup:

twg uninstall

To revoke credentials and remove all TWG configuration and state:

twg uninstall --purge

Beta updates

To receive pre-release updates before they reach the stable channel, use the beta channel.

First install via beta

bash <(curl -fsSL https://teamwork-graph.atlassian.com/cli/beta/install)

Installs from the beta channel record the channel preference automatically — future twg update calls continue to check the beta channel.

Switch an existing install to beta

twg update --channel beta

Switch back to stable

twg update --channel stable

Feedback

To share feedback or report an issue, use the CLI:

twg feedback --summary "<short title>"

Or submit feedback using the TWG CLI feedback form.

Admin opt-out

Organization admins can request to opt their organization out of Teamwork Graph CLI access. Submit a request using the TWG CLI admin opt-out form. The team will process your request within 24 hours.

Next steps