Skip to main content

CLI Basics

Global shape​

teams [GLOBAL OPTIONS] <COMMAND> [ARGS]

Use --output json for scripts and agents. Use --profile to select a tenant or customer profile. Use --page-size and --all-pages for list commands that support pagination.

Output detection​

The CLI defaults to human output when stdout is a terminal and JSON when stdout is piped. Logs and diagnostics go to stderr so stdout remains parseable.

Common commands​

teams auth status --output json
teams team list --output json
teams chat list --output json
teams config path

teams config path prints the config file location and the storage namespace (teams-cli for released binaries) that names both the config directory and the keyring service.

See the CLI reference for the generated command map.