Skip to main content

Environment Variables

VariablePurpose
TEAMS_CLI_ACCESS_TOKENUse a pre-obtained Microsoft Graph access token instead of keyring lookup.
TEAMS_CLI_CLIENT_IDEntra app client ID.
TEAMS_CLI_CLIENT_SECRETClient secret for client credentials flow.
TEAMS_CLI_TENANT_IDTenant ID or tenant domain.
TEAMS_CLI_SCOPESSpace-separated delegated Graph scopes for auth login, auth refresh, and auth consent-url.
TEAMS_CLI_DISABLE_KEYRINGTest-only escape hatch used by CLI tests.
MS_TEAMS_CLI_VERSIONDocs build override for the sidebar release badge.

TEAMS_CLI_ACCESS_TOKEN must be a Graph token. Tokens captured from the Teams client, including fossteams/teams-token files such as token-teams.jwt, have the wrong audience for Microsoft Graph and will fail with Invalid audience.