Skip to main content

5-Minute Quickstart

1. Install

brew install osodevops/tap/teams
# or
cargo install --git https://github.com/osodevops/ms-teams-cli

2. Sign in

teams auth login --device-code
teams auth doctor --output json | jq .

3. Find a target

TEAM_ID=$(teams team list --output json | jq -r '.data[0].id')
CHANNEL_ID=$(teams channel list "$TEAM_ID" --output json | jq -r '.data[0].id')

4. Send a message

teams message send --team "$TEAM_ID" --channel "$CHANNEL_ID" --body "teams-cli smoke test" --output json

If this fails with PERMISSION_DENIED, check auth failures and the permissions matrix.