Set Active Tenant
set-active-tenantSet or clear the Cumulocity tenant for the current CLI project session so later sessions in the same working directory reuse it; clearing disables live API calls until a tenant is set again.
Instructions
Set the Cumulocity tenant for this CLI session, or pass tenantUrl: null to clear the active tenant. The tenantUrl must match one returned by the status tool. The selection is persisted for the working directory this server was started in, so later sessions in the same project reuse it; sessions in other directories are never affected. Clearing falls back to bundled-only browsing — codemode discovery still works but live API calls are unavailable until a tenant is set again.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"tenantUrl": "<tenantUrl>"
},
"name": "set-active-tenant"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tenantUrl | Yes |