Deploy application
tzcloud_deployDeploy a stored ZIP or start a prepared upload.
artifact deploys a storage ZIP. upload only retries a prepared start. A tool with no shell uses tzcloud_deploy_files. With a shell and the app's whole folder, use tzcloud_deploy_command where it works. A script passes artifact to deploy a stored zip.
A gateway error, closed connection or non-platform response leaves the outcome unknown. A tzcloud_read_status row of kind deploy, started after your call, confirms a start. A retry is allowed only when status shows no start, using pending_upload.retry where supplied.
Details: read_documentation /cloud/getting-started/ways-to-deploy/.
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_deploy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| commit | No | Build commit from `git rev-parse HEAD`, on a self-made start only. Malformed or supplied during preparation gives `invalid_request`. Omitted records no commit. | |
| upload | No | Prepared upload id from the command's `prepared:` line, only for retrying its start. No file gives `upload_not_found`. Changed SHA-256 gives `upload_hash_mismatch`, which retries cannot start. | |
| artifact | No | Stored ZIP. Missing file, hash mismatch or the platform deploy area is refused by name. Excludes `upload`, else `invalid_request`. | |
| application | Yes | Your account's application `id` from `tzcloud_list_applications`, not its name or label. | |
| environment | No | With one environment, default production. Development needs `tzcloud_create_environment`, else `environment_not_created`. With two, default development, and production is refused `environment_unavailable`; production changes use `tzcloud_promote`. | |
| wait_seconds | No | Seconds to wait for the deploy to end. Out of range gives `invalid_request`. | |
| rotate_database_credential | No | True also changes the production database-role password. Other values, or development, give `invalid_request`. |