caplo workspace
List, show, create, and select workspaces.
caplo workspaceCommands act on the workspace that –workspace or CAPLO_WORKSPACE names, by ID or exact name, else on the one selected with caplo workspace use. With an API key the workspace must be named by ID, since a key cannot list workspaces.
Examples
caplo workspace listcaplo workspace use "Shop staging"Commands
caplo workspace api-clientcaplo workspace createcaplo workspace getcaplo workspace listcaplo workspace use
caplo workspace api-client
Section titled “caplo workspace api-client”Manage API clients and their keys for CI and automation.
caplo workspace api-clientAn API client authenticates CI and automation without a person’s login. Set CAPLO_API_KEY to one of its keys and CAPLO_WORKSPACE (or –workspace, or a project environment’s workspace) to its workspace ID, and caplo commands act as the client with its scopes, at CAPLO_API_URL, else the configured API, else production. caplo auth status shows the client and its scopes. A key cannot list workspaces, so a workspace named by name is refused.
Scopes: agents:read, agents:write, agents:publish tools:read, tools:write, tools:publish channels:read, channels:write conversations:read, usage:read endpoints:read, endpoints:write
A write or publish scope includes its read scope, and a member can grant only the actions their own role holds. A CI publish needs agents:write and agents:publish, and tools:write and tools:publish when the project has packages. An environment that deploys channels needs channels:write, which a publish checks before it starts. Channel commands also read agents, and knowledge commands use the agent scopes.
A project environment can name its own key variable with apiKeyEnv; see caplo publish.
Examples
caplo workspace api-client create ci --scope agents:write,agents:publish,tools:write,tools:publishCAPLO_API_KEY=... CAPLO_WORKSPACE=5b1e9c2a-... caplo publish --yesCommands
caplo workspace api-client createcaplo workspace api-client listcaplo workspace api-client revokecaplo workspace api-client rotate
caplo workspace api-client create
Section titled “caplo workspace api-client create”Create an API client and print its first key.
caplo workspace api-client create <name> --scope <scope>... [flags]Creates an API client with the scopes and prints its first key on standard output, once; store it at once, for example as the CI secret CAPLO_API_KEY.
Scopes: agents:read, agents:write, agents:publish tools:read, tools:write, tools:publish channels:read, channels:write conversations:read, usage:read endpoints:read, endpoints:write
Examples
caplo workspace api-client create ci --scope agents:write --scope agents:publishcaplo workspace api-client create reports --scope conversations:read,usage:readFlags
| Flag | Value | Default | Description |
|---|---|---|---|
--output, -o |
string | table |
output format: table, json, or yaml |
--scope |
stringSlice | scope to grant; repeat or separate with commas |
caplo workspace api-client list
Section titled “caplo workspace api-client list”List the workspace’s API clients and their keys.
caplo workspace api-client list [flags]Examples
caplo workspace api-client listFlags
| Flag | Value | Default | Description |
|---|---|---|---|
--output, -o |
string | table |
output format: table, json, or yaml |
caplo workspace api-client revoke
Section titled “caplo workspace api-client revoke”Revoke an API client’s active keys, or only the ones –key names.
caplo workspace api-client revoke <client> [flags]Revokes the API client’s active keys: every one, the ones –key names, or all but the one –except names. Keys are named by ID or prefix. Anything using a revoked key stops working. It asks first; –yes skips the question.
Examples
caplo workspace api-client revoke ci --except 9d3e1f20-4b5a-4c6d-8e7f-0a1b2c3d4e5fcaplo workspace api-client revoke ci --key caplo_sk_3f9a6b1c --yesFlags
| Flag | Value | Default | Description |
|---|---|---|---|
--except |
string | revoke every active key but this one (ID or prefix), after a rotation | |
--key |
stringSlice | key ID or prefix to revoke (default: every active key) | |
--yes, -y |
revoke without asking |
caplo workspace api-client rotate
Section titled “caplo workspace api-client rotate”Add a new key to an API client and print it; its other keys stay active until revoked.
caplo workspace api-client rotate <client> [flags]Adds a key to the API client and prints it on standard output, once. The client’s other keys stay active, so CI keeps working while you replace the key; then revoke the old ones with caplo workspace api-client revoke <client> –except <new key>.
Examples
caplo workspace api-client rotate ciFlags
| Flag | Value | Default | Description |
|---|---|---|---|
--output, -o |
string | table |
output format: table, json, or yaml |
caplo workspace create
Section titled “caplo workspace create”Create a workspace you own and select it.
caplo workspace create <name>Examples
caplo workspace create "Shop staging"caplo workspace get
Section titled “caplo workspace get”Show a workspace, by default the selected one.
caplo workspace get [name or ID] [flags]Examples
caplo workspace getcaplo workspace get "Shop staging" -o jsonFlags
| Flag | Value | Default | Description |
|---|---|---|---|
--output, -o |
string | table |
output format: table, json, or yaml |
caplo workspace list
Section titled “caplo workspace list”List your workspaces.
caplo workspace list [flags]Lists the workspaces you belong to with your role; * marks the selected one.
Examples
caplo workspace listFlags
| Flag | Value | Default | Description |
|---|---|---|---|
--output, -o |
string | table |
output format: table, json, or yaml |
caplo workspace use
Section titled “caplo workspace use”Select the workspace for later commands.
caplo workspace use <name or ID>Saves the workspace, by ID or exact name, as the one later commands act on. –workspace or CAPLO_WORKSPACE overrides it for one command.
Examples
caplo workspace use "Shop staging"