---
title: env_var_update
url: /docs/ai-agents/mcp-tools/variables/env_var_update/
canonical_url: https://blossom88.com/docs/ai-agents/mcp-tools/variables/env_var_update/
markdown_url: https://blossom88.com/docs/ai-agents/mcp-tools/variables/env_var_update.md
summary: Change an Environment variable's value or build flag.
categories:
  - mcp
  - reference
---

# env_var_update

Change an Environment variable's value or build flag. It applies on the next deploy.

| | |
|---|---|
| Access | Consequential change; requires confirmation |
| Same as | [`blossom env_var:update`](/docs/reference/cli/env_var/update/) |

## Arguments

| Argument | Type | Description |
|---|---|---|
| `yes` | boolean | true once the person confirms. |
| `id` | string | Environment variable id. Required. |
| `data` | object | Only the variable fields to change. Required. |
| `data.key` | string | Variable name, such as RAILS_ENV. |
| `data.value` | string | Value. |
| `data.build` | boolean | Also available while building. |

## Example

```json
{"id":"env_var-100","data":{"build":true},"yes":true}
```
