Use the ably spaces list command to list active spaces.
Synopsis
ably spaces list [options]Options
--limit
The maximum number of spaces to return. Defaults to 100.
--prefix | -p
A prefix to filter spaces by name.
--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 spaces:
ably spaces listList spaces with a prefix:
ably spaces list --prefix "project-"List spaces with a custom limit:
ably spaces list --limit 50List spaces in JSON format:
ably spaces list --jsonList spaces in formatted JSON output:
ably spaces list --pretty-jsonSee also
- Spaces — Explore all
ably spacescommands. - CLI reference — Full list of available commands.