Create Deployment
deployment_createTriggers a manual deployment of git_sha to one of an app's
environments, exactly like the Deploy button in the Meridian web app.
Takes the app_id returned by apps_list, the environment_id
returned by environments_list (production, or a development or
staging environment when the app has one), and the git_sha to
deploy (optional git_ref for display only).
IDEMPOTENT: calling this again with the same environment_id and
git_sha while that exact deployment is still in flight
(queued/building/deploying/verifying) returns the SAME deployment
(created: false) instead of creating a duplicate. Calling it with a
DIFFERENT git_sha while a deployment is active for that environment
is refused. Meridian allows only one active deployment per
environment. Use deployment_get to poll the resulting
deployment_id for status, and deployments_list/logs_tail for
history and live logs.
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_id": "<app_id>",
"environment_id": "<environment_id>",
"git_sha": "<git_sha>"
},
"name": "deployment_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app_id | Yes | The app uuid returned by `apps_list`. | |
| git_ref | No | Optional git ref (branch or tag) recorded alongside git_sha, for display only. | |
| git_sha | Yes | The exact commit SHA to build and deploy. | |
| environment_id | Yes | The uuid of the environment to deploy to, from `environments_list`. | |
| organization_id | No | An organisation uuid or slug. When supplied, `app_id` is resolved within that organisation and may be a slug instead of a uuid, mirroring the Meridian web app. |