Skip to main content

teams auth login

Auto-generated reference

This page is generated from teams --help-json for release v0.1.0. Do not edit it by hand.

Authenticate with delegated auth, device code, or client credentials.

Synopsis

teams auth login [--device-code] [--client-id ID] [--tenant-id ID] [--scopes SCOPES]

Options

OptionValueRequiredEnvDefaultDescription
--device-codenoUse device code flow
--client-credentialsnoUse client credentials flow
--client-idIDnoTEAMS_CLI_CLIENT_IDAzure AD application client ID
--client-secretSECRETnoTEAMS_CLI_CLIENT_SECRETClient secret for client credentials
--tenant-idTENANTnoTEAMS_CLI_TENANT_IDAzure AD tenant ID or domain
--scopesSCOPESnoOAuth scopes for delegated flows

Examples

Device code login

teams auth login --device-code

Exit Codes

CodeMeaning
0success
2invalid input
3authentication error
4permission denied
6rate limited

See Also