# Spaces locations get Use the `ably spaces locations get` command to get all current locations in a space. ## Synopsis ### Shell ``` ably spaces locations get ``` ## Arguments ### `space-name` **(Required)** The name of the space to get locations 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 all current locations in a space: ### Shell ``` ably spaces locations get my-space ``` Get locations in JSON format: ### Shell ``` ably spaces locations get my-space --json ``` Get locations in formatted JSON output: ### Shell ``` ably spaces locations get my-space --pretty-json ``` ## See also * [Spaces](https://ably.com/docs/cli/spaces.md) — Explore all `ably spaces` commands. * [CLI reference](https://ably.com/docs/cli.md) — Full list of available commands. ## Related Topics - [set](https://ably.com/docs/cli/spaces/locations/set.md): Set location in an Ably Space using the CLI. - [subscribe](https://ably.com/docs/cli/spaces/locations/subscribe.md): Subscribe to location updates for members in an Ably Space using the CLI. ## Documentation Index To discover additional Ably documentation: 1. Fetch [llms.txt](https://ably.com/llms.txt) for the canonical list of available pages. 2. Identify relevant URLs from that index. 3. Fetch target pages as needed. Avoid using assumed or outdated documentation paths.