---
title: environment_deploy_hooks_update
url: "/docs/ai-agents/mcp-tools/environments/environment_deploy_hooks_update/"
canonical_url: https://docs.blossom88.com/docs/ai-agents/mcp-tools/environments/environment_deploy_hooks_update/
markdown_url: https://docs.blossom88.com/docs/ai-agents/mcp-tools/environments/environment_deploy_hooks_update.md
summary: Set an Environment's release phase (such as migrations) or post-deploy command.
categories:
- mcp
- reference
---

# environment_deploy_hooks_update

Set an Environment's release phase (such as migrations) or post-deploy command. Applies on the next deploy.

| | |
|---|---|
| Access | Changes Blossom |
| Same as | [`blossom environment:deploy_hooks:update`](/docs/reference/cli/environment/deploy_hooks/update/) |

## Arguments

| Argument | Type | Description |
|---|---|---|
| `id` | string | Environment id. Required. |
| `data` | object | Commands around a deploy, as in deploy_hooks.yml. Required. |
| `data.release_phase` | object | Runs before new Containers start, such as migrations. |
| `data.post_deploy` | object | Runs after the deploy. |

## Example

```json
{"id":"environment-100","data":{"clone_url":"https://github.com/acme/shop","services":[{"name":"web","command":"web","port":3000,"publicly_exposed":true}]}}
```
