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
| Option | Value | Required | Env | Default | Description |
|---|---|---|---|---|---|
--device-code | no | Use device code flow | |||
--client-credentials | no | Use client credentials flow | |||
--client-id | ID | no | TEAMS_CLI_CLIENT_ID | Azure AD application client ID | |
--client-secret | SECRET | no | TEAMS_CLI_CLIENT_SECRET | Client secret for client credentials | |
--tenant-id | TENANT | no | TEAMS_CLI_TENANT_ID | Azure AD tenant ID or domain | |
--scopes | SCOPES | no | OAuth scopes for delegated flows |
Examples
Device code login
teams auth login --device-code
Exit Codes
| Code | Meaning |
|---|---|
| 0 | success |
| 2 | invalid input |
| 3 | authentication error |
| 4 | permission denied |
| 6 | rate limited |