cliDeterministic
List workspaces
pipeline list-workspaces
List every workspace the authenticated account can currently access, including each workspace ID, slug, ownership state, and live permissions. Use this before a workspace-scoped operation when the target workspace is not explicit. Never choose a workspace based on recency or list order.
Parameters
This operation has no parameters.
Example
CLI commandbash
pipeline list-workspaces
Response
Success response schemajson schema
{"type": "object","properties": {"workspaces": {"type": "array","items": {"type": "object","properties": {"id": {"type": "string"},"name": {"type": "string"},"slug": {"type": "string"},"isOwner": {"type": "boolean"},"permissions": {"type": "object"}},"required": ["id","name","slug","isOwner","permissions"]}}},"required": ["workspaces"]}
Exit codes
- 1
- Invalid input or local configuration.
- 2
- The API or tool returned an error.
- 3
- Authentication failed.
- 4
- A network request failed.