Files
team/server/cmd/mmctl/docs/mmctl_channel_list.rst
fd8c25db20 [MM-69600] Add --show-ids flag to mmctl channel list (#37313)
* Add --show-ids flag to mmctl channel list

Mirror post list --show-ids so the plain-text channel list output
includes channel IDs.

Co-authored-by: mattermost-code <[email protected]>

* Add unit tests for mmctl channel list --show-ids

Co-authored-by: mattermost-code <[email protected]>

* Assert show-ids flag registration in channel list test

Co-authored-by: mattermost-code <[email protected]>

* chore: re-trigger CodeRabbit review after rate limit

Co-authored-by: mattermost-code <[email protected]>

---------

Co-authored-by: mattermost-code <[email protected]>

Co-authored-by: Hanzo Dev <[email protected]>
2026-07-02 10:21:34 +02:00

55 lines
1.4 KiB
ReStructuredText

.. _mmctl_channel_list:
mmctl channel list
------------------
List all channels on specified teams.
Synopsis
~~~~~~~~
List all channels on specified teams.
Archived channels are appended with ' (archived)'.
Private channels the user is a member of or has access to are appended with ' (private)'.
::
mmctl channel list [teams] [flags]
Examples
~~~~~~~~
::
channel list myteam
Options
~~~~~~~
::
-h, --help help for list
-i, --show-ids Show channel IDs
Options inherited from parent commands
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
::
--config string path to the configuration file (default "$XDG_CONFIG_HOME/mmctl/config")
--disable-pager disables paged output
--insecure-sha1-intermediate allows to use insecure TLS protocols, such as SHA-1
--insecure-tls-version allows to use TLS versions 1.0 and 1.1
--json the output format will be in json format
--local allows communicating with the server through a unix socket
--quiet prevent mmctl to generate output for the commands
--strict will only run commands if the mmctl version matches the server one
--suppress-warnings disables printing warning messages
SEE ALSO
~~~~~~~~
* `mmctl channel <mmctl_channel.rst>`_ - Management of channels