# Environment Variable

Sensitive data like passwords and API keys can be stored in Environment Variables for use in running Commands. Environment variables are divided into global environment variables and local environment variables.

* **Global Environment Variables**\
  Global environment variables can be used in all terminals and Commands. You can set global environment variables on the Container setting page. You can view the list of `Key-Value` pairs in the table of environment variables on the Container setting page.
* **Local Environment Variables**\
  Local environment variables can be used only in specific commands. You can set local environment variables on the Command settings tab within the Workspace. You can view the list of `Key-Value` pairs in the table of environment variables on the Command settings tab.

### Using Environment Variables <a href="#using-environment-variables" id="using-environment-variables"></a>

* **In the Container Settings page**

<figure><img src="/files/atmDbGAMC1L81odBASpf" alt=""><figcaption></figcaption></figure>

* **In the Workspace**\
  You can use environment variables in terminals with the following command:

<pre class="language-sh"><code class="lang-sh"><strong>$ export ${key}=${value}
</strong></code></pre>

### Command Variables <a href="#command-variables" id="command-variables"></a>

Command variables are default environment variables provided by Arkain, consisting of values that might be challenging for users to manage easily. You can check the list of command variables on the command settings tab. The usage of command variables is the same as using environment variables.


---

# 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.arkain.io/user-guide/dashboard/container/container-management/container-settings/environment-variable.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.
