# Deploy Environment Variables

Applications can run in different configurations in various projects. For example, an application can work in two different projects with different default languages. For such requirements, the **Environment Parameters** feature of ACC is used. These parameters can be seen in the `ENV Variables` column when listing applications.

```bash
$ akinoncli projectapp add-env --deploy {project_id} {project_app_id} {ENV_KEY}={ENV_VALUE} {ANOTHER_ENV_KEY}={ANOTHER_ENV_VALUE}
```

**Environment Parameters**

Adds the environment parameter on the application.

<table><thead><tr><th width="169.86328125">Parameter</th><th width="498.0859375">Description</th><th>Required</th></tr></thead><tbody><tr><td><code>project_id</code></td><td>Project ID</td><td>Yes</td></tr><tr><td><code>project_app_id</code></td><td>Application ID</td><td>Yes</td></tr><tr><td><code>ENV_KEY</code></td><td>The key of relevant environment parameter</td><td>Yes</td></tr><tr><td><code>ENV_VALUE</code></td><td>The value of relevant environment parameter</td><td>Yes</td></tr><tr><td><code>--deploy</code></td><td>Deploys the current version to enable environment variables will be changed.</td><td>No</td></tr></tbody></table>

**Example 1**

`$ akinoncli projectapp add-env 1 32 DEFAULT_LANG=TR_TR --deploy`

***

It is also can be used with JSON

**Example 2**

```bash
$ akinoncli projectapp add-env 1 32 MIDDLEWARE='["my.custom.MiddlewareClass", "django.middleware.security.SecurityMiddleware", "whitenoise.middleware.WhiteNoiseMiddleware", "django.contrib.sessions.middleware.SessionMiddleware"]'
```

***

**Example 3**

```bash
$ akinoncli projectapp add-env 1 32 THUMBNAIL_OPTIONS='{"product-list": {"width": 273, "height": 210}, "product-detail__slider_zoom": {"quality": 90}}'
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.akinon.com/technical-guides/acc/deploy-environment-variables.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
