Use the ably rooms list command to list active chat rooms.
Synopsis
ably rooms list [options]Options
--limit
The maximum number of rooms to return. Defaults to 100.
--prefix | -p
Filter rooms 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 chat rooms:
ably rooms listFilter rooms by prefix:
ably rooms list --prefix "game-"List rooms with a custom limit:
ably rooms list --limit 50List rooms in JSON format:
ably rooms list --jsonList rooms in formatted JSON output:
ably rooms list --pretty-jsonSee also
- Rooms — Explore all
ably roomscommands. - CLI reference — Full list of available commands.