Use the ably spaces occupancy get command to get current occupancy metrics for a space.
Synopsis
ably spaces occupancy get <space-name>Arguments
space-name Required
Required
The name of the space to get occupancy metrics for.
Options
--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
Get current occupancy metrics for a space:
ably spaces occupancy get my-spaceGet occupancy in JSON format:
ably spaces occupancy get my-space --jsonGet space occupancy in formatted JSON output:
ably spaces occupancy get my-space --pretty-jsonSee also
- Spaces — Explore all
ably spacescommands. - CLI reference — Full list of available commands.