> ## Documentation Index
> Fetch the complete documentation index at: https://bruno-a6972042-mintlify-keybindings-docs-1775036576.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Process Environment Variables

## Overview

Process environment variables are used to store sensitive information, such as API keys, passwords, and other secret values. These values are typically stored in a .env file. For more details on secret management, refer to the [secret management](/secrets-management/dotenv-file) section.

<Warning>
  You must create the `.env` file in your local project directory (e.g., using VS Code) to store your process environment variables. Bruno cannot create or manage the `.env` file for you.
</Warning>

### Creating a Process Environment Variables

To create process environment variables, you can add a .env file to the root of your Bruno collection. This file will store your secrets, which can then be accessed throughout the collection.

#### Example

In your Bruno collection, the structure might look like this:

```
bruno-collection/
├── api-folder/
│   ├── customer-api/
│   ├── emp-api/
│   │   └── details.bru
│   └── lib.js
├── .gitignore
├── bruno.json
├── package.json
└── .env
```

In the `.env` file, you would store a key-value pair, like this:

```bash .env theme={null}
key = bruno
```

### Using the Process Environment Variables

To access the values stored in the `.env` file, you can use the `process.env` global object. For example, if you want to retrieve the key value from your `.env` file, you would use:

<img src="https://mintcdn.com/bruno-a6972042-mintlify-keybindings-docs-1775036576/atyfkDUfRnb-hAsA/v2/images/screenshots/variables/creating-process-env-variables.webp?fit=max&auto=format&n=atyfkDUfRnb-hAsA&q=85&s=2e88031a021af6ec13b2bcdf71f4105a" alt="image" width="2760" height="1130" data-path="v2/images/screenshots/variables/creating-process-env-variables.webp" />

You can use `process.env.<secret-name>` throughout your Bruno collection to securely manage and access your environment variables.

<img src="https://mintcdn.com/bruno-a6972042-mintlify-keybindings-docs-1775036576/atyfkDUfRnb-hAsA/v2/images/screenshots/variables/using-process-env-variables.webp?fit=max&auto=format&n=atyfkDUfRnb-hAsA&q=85&s=ab133b9959a11e5c2d150ffd497e8fb7" alt="image" width="2760" height="1130" data-path="v2/images/screenshots/variables/using-process-env-variables.webp" />
