Create
Create channels from file
Synopsis
Create multiple Teams channels with members from a data file (YAML/JSON/TOML/CSV).
The data file should contain channel definitions with channel_ref, role, and user_refs.
Data file format
YAML example:
general:
owners:
- user.one@example.com
members:
- user.two@example.com
announcements:
owners:
- user.three@example.com
members: []
JSON example:
{
"general": {
"owners": ["user.one@example.com"],
"members": ["user.two@example.com"]
},
"announcements": {
"owners": ["user.three@example.com"],
"members": []
}
}
TOML example:
[general]
owners = ["user.one@example.com"]
members = ["user.two@example.com"]
[announcements]
owners = ["user.three@example.com"]
members = []
Usage
Options
--data string Path to channels data file (YAML/JSON/TOML/CSV)
--dry-run Preview only
--ensure-in-channels Ensure members are in channels
--ensure-in-team Ensure members are in team
-h, --help help for create
--team string Name of the team
Examples
Create channels from YAML file
Create channels from JSON file
Dry run to preview
Ensure members are added to channels if they already exist
Ensure members are members of the team
TUI Preview
