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 Apr 1, 2026

Global options

The following flags are available on most commands.

Core flags

FlagShortDescription
--site <hostname>-sAtlassian site prefix (for example, example for example.atlassian.net). Auto-loaded from auth.conf or TWG_SITE env var
--output <format>-oOutput format: text (default) or json
--user <email>-uAtlassian account email for Basic auth. Auto-loaded from auth.conf or TWG_USER env var
--scope <scope>Filter scope: me, user, team, or org
--since <period>Time window, for example 7d, 2w, or 1m
--first <n>Number of results to return
--after <cursor>Pagination cursor from a previous response
--account-id <aaid>Atlassian Account ID of the target user
--mode agentAgent mode — quieter output, hints and warnings stripped from JSON envelopes
--output-file <path>Write JSON output to a file instead of stdout; prints stdout=<path> to stdout
--yes-ySkip confirmation prompts for write operations
--version-VPrint the installed TWG CLI version and exit
--help-hDisplay help for any command (useful for scripting and debugging)

Advanced flags

These flags are available for debugging and integration testing.

FlagDescription
--api-version <version>API contract version for machine-readable responses (current: v2; reserved for future versions)
--timeout-ms <ms>Per-request HTTP timeout in milliseconds for GraphQL and REST calls. Also settable via TWG_TIMEOUT_MS

Use the site flag

The --site (-s) flag is optional when you've configured a default site via twg login or the TWG_SITE environment variable. Cross-product commands (work, goals, projects, focus-areas, org-tree) never require it.

1
2
twg jira workitem query --jql "project = PROJ"          # uses site from auth.conf
twg jira workitem query -s example --jql "..."           # explicit override
twg work query --scope me --since 7d                     # no site needed

When using multiple Atlassian sites, always pass -s explicitly so the correct site is targeted.

Filter by scope and time

1
2
--scope me                    # Your own items
--scope user --account-id X   # A specific user's items
--scope org                   # Reporting chain from a root user
--since 7d                    # Last 7 days
--since 2w                    # Last 2 weeks
--since 1m                    # Last month

Paginate results

1
2
--first 20          # Return 20 results
--after <cursor>    # Fetch the next page using the cursor from the previous response

Query languages

TWG CLI exposes product-native query languages as flags. These are not global but are surface-specific:

FlagLanguageSurface
--jql <query>JQL — Jira Query Languagetwg jira workitem query
--cql <query>CQL — Confluence Query Languagetwg confluence search query
--tql <query>TQL — Atlas Target Query Languagetwg goals, twg projects
--aql <query>AQL — Assets Query Languagetwg assets query
1
2
# JQL
twg jira workitem query --jql "project = PROJ AND status = 'In Progress'"

# CQL
twg confluence search query --cql "space = ENG AND type = page"

# TQL
twg goals --tql "owner = currentUser() AND status = 'AT_RISK'"

# AQL
twg assets query --aql "objectType = Server AND Status = Active"

Next steps

Rate this page: