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

See the CLI reference for the generated command map.