Set app variables and secrets
set_app_variablesAdd, change, or remove an app's environment variables and secrets while preserving unmentioned keys; the app restarts to apply changes and secret values stay hidden.
Instructions
Adds, changes or removes an app's environment variables and secrets. Existing keys that are not mentioned stay as they are. The app restarts to pick up the change. Secret values are never returned.
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": {
"app": "<app>"
},
"name": "set_app_variables"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | Yes | App (deployment) name or ID. | |
| env | No | Variables to add or change, KEY → value. | |
| unset | No | Keys to remove (from variables and secrets). | |
| project | No | Project name or ID. Defaults to NIMBUZ_PROJECT, the `nimbuz use` context, or the only project. | |
| secrets | No | Secrets to add or change, KEY → value. | |
| environment | No | Environment name (e.g. production) or ID (env-…). Defaults to NIMBUZ_ENV, the `nimbuz use` context, or the only environment. | |
| waitSeconds | No | Wait up to this many seconds for the rollout to finish (default 0 = return immediately). Builds usually take 1-5 minutes; check later with get_app_status. |