Spaces list

Open in

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 list

List spaces with a prefix:

ably spaces list --prefix "project-"

List spaces with a custom limit:

ably spaces list --limit 50

List spaces in JSON format:

ably spaces list --json

List spaces in formatted JSON output:

ably spaces list --pretty-json

See also

  • Spaces — Explore all ably spaces commands.
  • CLI reference — Full list of available commands.