chainabit workspace use
Save a default workspace choice locally
Synopsis
chainabit workspace use <id-or-slug> [options]Arguments
| Argument | Description | Default |
|---|---|---|
<id-or-slug> | Required. | — |
Options shared by every command are described in Global options and shared behavior.
Behavior
Accepts a workspace ID or its slug. The CLI looks the value up among the workspaces you belong to and saves the workspace ID as your local default; the slug itself is never saved. If the value is not one of your workspaces, the command exits with a non-zero code and the saved default stays unchanged. If the same slug exists in more than one of your workspaces (for example, under different accounts), the command asks for the workspace ID instead.
Before saving, the command makes the workspace active on the server. If the server refuses, the command fails and the saved default stays unchanged.
Output
The confirmation shows both the slug and the ID of the selected workspace. With --json, the output contains workspaceId and slug.
Authentication and permissions
You must be signed in, because the value is checked against the workspaces your account belongs to. Server activation is subject to membership checks.
Examples
chainabit workspace use 00000000-0000-4000-8000-000000000001
chainabit workspace use reference-team