diff --git a/cmd/mattermost/commands/channel.go b/cmd/mattermost/commands/channel.go index ff3e18af31..3da8ecc799 100644 --- a/cmd/mattermost/commands/channel.go +++ b/cmd/mattermost/commands/channel.go @@ -196,10 +196,14 @@ func createChannelCmdF(command *cobra.Command, args []string) error { CreatorId: "", } - if _, err := a.CreateChannel(channel, false); err != nil { - return err + createdChannel, errCreatedChannel := a.CreateChannel(channel, false) + if errCreatedChannel != nil { + return errCreatedChannel } + CommandPrettyPrintln("Id: " + createdChannel.Id) + CommandPrettyPrintln("Name: " + createdChannel.Name) + CommandPrettyPrintln("Display Name: " + createdChannel.DisplayName) return nil }