Command

nylas slack channels list

List channels.

Written by Qasim Muhammad Staff SRE

What does nylas slack channels list do?

The nylas slack channels list command displays all Slack channels in your workspace — public, private (that you belong to), and archived. Filter and search channels from the terminal without opening the Slack app.

Usage

nylas slack channels list

Flags

FlagDescription
--jsonOutput as JSON
--no-colorDisable color output
--verbose(-v)Enable verbose output
--configCustom config file path
--help(-h)Show help for the command
--limitLimit results (most list commands)
--yes(-y)Skip confirmations
--allFetch all channels (paginate through all pages)
--all-workspaceList all workspace channels (slower, may hit rate limits)
--created-afterShow channels created after duration (e.g., 24h, 7d, 2w)
--exclude-archivedExclude archived channels
--idShow channel IDs
--teamTeam/workspace ID (auto-detected for Enterprise Grid)
--typeChannel types: public_channel, private_channel, mpim, im

Examples

The nylas slack channels list command displays all Slack channels in your workspace — public, private (that you belong to), and archived.

List channels

nylas slack channels list

JSON output

nylas slack channels list --json

Example output

NAME              TYPE             MEMBERS
#general          public_channel   42
#engineering      public_channel   18
#random           public_channel   37
Alice Chen        im               2

4 channels

Troubleshooting

No channels returned

Run `nylas slack auth set` first to configure your Slack token. The token needs `channels:read` scope.

Private channels missing

Your Slack token must have `groups:read` scope to see private channels you belong to.

Run nylas slack channels list --help for full help output.