# veryfront__create_environment_variable

Create an environment variable; a key that exists already is a conflict. Requires project.env\_vars.write.

Risk: mutating.

## Arguments

| Name                | Type   | Required | Description                                                                                        |
| ------------------- | ------ | -------- | -------------------------------------------------------------------------------------------------- |
| `project_reference` | string |          | Project ID or slug                                                                                 |
| `environment_id`    | string | Yes      | Environment ID to create the variable in.                                                          |
| `key`               | string | Yes      | Variable name (e.g., API\_KEY, DATABASE\_URL). A key that exists already is refused as a conflict. |
| `value`             | string | Yes      | Variable value. It is never returned.                                                              |

## Call it

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "veryfront__create_environment_variable",
    "arguments": {
      "environment_id": "<environment_id>",
      "key": "<key>",
      "value": "<value>"
    }
  }
}
```
