Promote to production
tzcloud_promotePromote a version with production's settings and credentials. It re-mints production's platform credential. With no prior deploy, it creates production and starts its meters. It adds a database and owner role if the manifest declares one. On one environment, deploy to production or use tzcloud_roll_back. tzcloud_create_environment adds development. Deploy to development first. Halted production refuses promotes until resumed with tzcloud_halt_environment (resume: true). With no version passed and none serving there, it refuses nothing_to_promote. The account owner must have requested or agreed to this promote.
An answer not from this platform does not show whether the promote started. Examples are gateway error pages or closed connections. Call tzcloud_read_status with wait_seconds first. The promote started if environments.production.deploy shows kind promote with a started_at later than your call. Repeat tzcloud_promote only if that read shows it did not start.
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": {
"application": "<application>"
},
"name": "tzcloud_promote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| version | No | Optional: a deployed, unretired number from either environment in `tzcloud_list_versions`, marked `promotable`; omitted, development's serving version is promoted. | |
| application | Yes | Your account's application `id` from `tzcloud_list_applications`, not its name or label. | |
| wait_seconds | No | Optional: seconds to hold the answer until the promote ends; absent, it returns at once. Out of range is refused `invalid_request`. | |
| rotate_database_credential | No | Optional; absent, false. Where true and the manifest declares the database kind, the promote also re-mints the production database role's password under the same window as the platform credential, the production database's rotation act. The value is never returned. |