Use the ably spaces create command to initialize a space without entering it.
Synopsis
ably spaces create <space-name> [options]Arguments
space-name Required
Required
The name of the space to create.
Options
--client-id
A client ID to use when creating the space.
--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
Create a space:
ably spaces create my-spaceCreate a space with a specific client ID:
ably spaces create my-space --client-id "user-123"Create a space and output the result in JSON format:
ably spaces create my-space --jsonSee also
- Spaces — Explore all
ably spacescommands. - CLI reference — Full list of available commands.