Last active
November 8, 2023 12:44
-
-
Save M-ZubairAhmed/adb081d21f38c67e54554c725390115a to your computer and use it in GitHub Desktop.
Create multiple Mattermost channels without being in each of them
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run this bash file inside of mmctl directory or replace ./mmctl with the path to mmctl | |
for i in {1..100} | |
do | |
# First command creates a channel with user included in the channel | |
./mmctl channel create --team XXXTeamNameXXX --display-name "${i}-channel" --name "${i}-channel" | |
# Second command removes all the users from the created channel | |
./mmctl channel users remove "XXXTeamNameXXX:${i}-channel" --all-users | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment