Skip to content

teams channel add

Adds a channel to the specified Microsoft Teams team

Usage

m365 teams channel add [options]

Options

-i, --teamId [teamId]
The ID of the team to add the channel to. Specify either teamId or teamName but not both
--teamName [teamName]
The display name of the team to add the channel to. Specify either teamId or teamName but not both
-n, --name <name>
The name of the channel to add
-d, --description [description]
The description of the channel to add
-h, --help
output usage information
--query [query]
JMESPath query string. See http://jmespath.org/ for more information and examples
-o, --output [output]
Output type. json,text. Default text
--verbose
Runs command with verbose logging
--debug
Runs command with debug logging

Remarks

You can only add a channel to the Microsoft Teams team you are a member of.

Examples

Add channel to the specified Microsoft Teams team with id 6703ac8a-c49b-4fd4-8223-28f0ac3a6402

m365 teams channel add --teamId 6703ac8a-c49b-4fd4-8223-28f0ac3a6402 --name climicrosoft365 --description development

Add channel to the specified Microsoft Teams team with name Team Name

m365 teams channel add --teamName "Team Name" --name climicrosoft365 --description development