Skip to main content

CLI Reference

Generated reference

This reference is generated from checked-in CLI metadata for release v0.9.0. The generated command pages are replaced on each CLI release.

OSO MS Teams CLI is installed as teams. It defaults to human output in an interactive terminal and JSON when stdout is piped. Use --output json when an agent or script needs a stable envelope.

Global Options​

OptionPurpose
-o, --output json|human|plainForce output format.
-q, --quietSuppress non-essential output.
-v, --verboseIncrease stderr logging. Repeat for debug or trace.
--no-colorDisable ANSI colors.
--config <path>Use an explicit config file.
--profile <name>Use a named credential profile.
--timeout <seconds>Override Graph request timeout.
--retry <count>Override retry attempts.
--page-size <count>Set page size for list operations whose Graph endpoint accepts $top.
--all-pagesFollow Graph pagination until complete.
-h, --helpPrint command help.
-V, --versionPrint the CLI version.

Commands​

CommandSummary
teams authAuthentication commands
teams auth loginAuthenticate with Microsoft Teams
teams auth refreshSilently redeem the stored refresh token for the resolved delegated scopes
teams auth statusCheck current auth status
teams auth consent-urlPrint the admin consent URL for the active auth app
teams auth doctorDiagnose auth configuration and current token state
teams auth listList stored profiles and the account each one holds
teams auth switchSwitch active profile
teams auth logoutClear stored credentials
teams auth tokenExport current access token
teams userUser lookup commands
teams user meGet current authenticated user's profile
teams user getGet a user by ID or UPN
teams user listList users in the organization
teams user resolveResolve a name or email to user candidates, degrading with available scopes: exact lookup, then people search, then a roster sweep over shared group/meeting chats
teams configConfiguration management
teams config initInitialise config file with defaults
teams config showShow current configuration
teams config getGet a config value
teams config setSet a config value
teams config pathPrint config file location
teams config profilesList all profiles
teams completionsGenerate shell completions
teams teamTeam operations
teams team listList joined teams
teams team getGet a team by ID
teams team createCreate a new team
teams team updateUpdate a team
teams team deleteDelete a team
teams team cloneClone a team
teams team archiveArchive a team
teams team unarchiveUnarchive a team
teams team membersTeam member operations
teams team members listList team members
teams team members addAdd a member to a team
teams team members removeRemove a member from a team
teams channelChannel operations
teams channel listList channels in a team
teams channel getGet a channel by ID
teams channel createCreate a new channel
teams channel updateUpdate a channel
teams channel deleteDelete a channel
teams channel membersChannel member operations
teams channel members listList channel members
teams channel members addAdd a member to a channel
teams channel members removeRemove a member from a channel
teams messageMessage operations
teams message sendSend a message to a channel or chat
teams message listList messages in a channel or chat
teams message getGet a specific message
teams message attachmentsList or download message attachments and inline images
teams message attachments listList attachments and inline images in a message
teams message attachments downloadDownload attachments and inline images from a message
teams message replyReply to a channel message
teams message reactAdd a reaction to a channel or chat message
teams message unreactRemove a reaction from a channel or chat message
teams message pinPin a message in a channel
teams message unpinUnpin a message from a channel
teams message deleteDelete your own message (a soft delete; undo it with message undelete)
teams message undeleteRestore a message removed with message delete
teams message updateUpdate a message
teams chatChat operations
teams chat listList your chats
teams chat getGet a chat by ID
teams chat createCreate a new chat
teams chat updateUpdate a chat topic
teams chat hideHide a chat
teams chat unhideUnhide a chat
teams chat membersChat member operations
teams chat members listList chat members
teams chat members addAdd a member to a chat
teams chat members removeRemove a member from a chat
teams presencePresence status operations
teams presence getGet presence status (yours or another user's)
teams presence get-batchGet presence for multiple users
teams presence setSet your presence status
teams presence set-preferredSet your preferred presence, which overrides every session's status while one exists
teams presence statusSet your status message
teams presence clearClear your presence (revert to automatic)
teams presence clear-preferredClear your preferred presence, so the sessions' status shows again
teams searchSearch messages, users, and teams
teams search messagesSearch messages
teams search usersSearch users (people)
teams search teamsSearch your joined teams by display name
teams tagTag operations for teams
teams tag listList tags in a team
teams tag getGet a tag by ID
teams tag createCreate a tag
teams tag updateUpdate a tag
teams tag deleteDelete a tag
teams tag add-memberAdd a member to a tag
teams tag remove-memberRemove a member from a tag
teams meetingOnline meeting operations
teams meeting listList online meetings created by you
teams meeting getGet a meeting by ID
teams meeting createCreate an online meeting
teams meeting updateUpdate a meeting
teams meeting deleteDelete a meeting
teams meeting join-urlGet the join URL for a meeting
teams meeting attendanceList attendance reports for a meeting
teams notifySend activity notifications
teams notify sendSend activity notification to user(s)
teams notify send-to-teamSend activity notification to a team
teams notify send-to-chatSend activity notification to a chat
teams appInstalled app operations
teams app listList installed apps in a team
teams app installInstall an app in a team
teams app uninstallUninstall an app from a team
teams tabChannel tab operations
teams tab listList tabs in a channel
teams tab createCreate a tab in a channel
teams tab deleteDelete a tab from a channel
teams fileFile operations for channels
teams file listList files in a channel
teams file getGet file metadata
teams file uploadUpload a file to a channel
teams file downloadDownload a file from a channel
teams file deleteDelete a file from a channel
teams file shareCreate a sharing link for a file
teams subscribeSubscription operations for change notifications
teams subscribe createCreate a new subscription
teams subscribe listList active subscriptions
teams subscribe renewRenew a subscription
teams subscribe deleteDelete a subscription
teams listenStart a webhook listener for change notifications

Output Contract​

See JSON envelope and exit codes for the agent-facing contract.