CLI commands
The cloudscode CLI wraps the control-plane API. It’s a thin client; everything it does is also reachable via plain HTTP.
Install
Section titled “Install”# macOSbrew install cloudscode/tap/cloudscode
# Linuxcurl -fsSL https://get.cloudscode.com | sh
# Verifycloudscode --versionConfigure
Section titled “Configure”cloudscode login # opens a browser for OAuthcloudscode config set api-url https://api.cloudscode.comcloudscode config set tenant ten_01H... # default tenant for subsequent callsConfiguration is written to ~/.cloudscode/config.toml.
Tenants
Section titled “Tenants”cloudscode tenant listcloudscode tenant create --name acme --plan hobbycloudscode tenant use ten_01H...cloudscode tenant invite alice@example.com --role memberRuntime instances
Section titled “Runtime instances”cloudscode instance listcloudscode instance start --runtime openclaw --image cloudscode/openclaw:latestcloudscode instance logs <instance_id> --followcloudscode instance stop <instance_id>cloudscode byok add anthropic --label prod --key sk-ant-...cloudscode byok listcloudscode byok rm <key_id>Conversations
Section titled “Conversations”cloudscode chat <instance_id> # interactive REPLcloudscode chat <instance_id> -m "ship the docs site"cloudscode runs replay <run_id>Webhooks
Section titled “Webhooks”cloudscode webhook add https://example.com/hook --events instance.started,conversation.completedcloudscode webhook listcloudscode webhook test <webhook_id> # sends a synthetic eventSelf-host helpers
Section titled “Self-host helpers”cloudscode self-host doctor # checks docker, ports, dns, certscloudscode self-host upgrade # pulls latest images, runs migrationsGlobal flags
Section titled “Global flags”| Flag | Effect |
|---|---|
--tenant <id> | Override the default tenant for one call. |
--json | Emit machine-readable JSON instead of tables. |
--api-url <u> | Override the configured API URL. |
-v, --verbose | Verbose logging (HTTP requests, retries). |