Use the ably channels list command to list active channels using the channel enumeration API.
Synopsis
ably channels list [options]Options
--limit
The maximum number of channels to return. Defaults to 100.
--prefix | -p
Filter channels by a name prefix.
--json
Output results as compact JSON. Mutually exclusive with --pretty-json.
--pretty-json
Output results in formatted JSON. Mutually exclusive with --json.
--verbose | -v
Enable verbose logging. Can be combined with --json or --pretty-json.
Examples
List all active channels:
ably channels listList channels with a specific prefix:
ably channels list --prefix "chat:"List channels with a limit:
ably channels list --limit 10List active channels in JSON format:
ably channels list --jsonList active channels in formatted JSON output:
ably channels list --pretty-jsonSee also
- Channels — Explore all
ably channelscommands. - CLI reference — Full list of available commands.