Creating an Environment Variable
- Go to environments (top right) and press No environment.
- If there are no environments, you will be prompted to create one.

- Add your variable name, value, and an optional description for what the variable represents.
- Save your changes.

Using an Environment Variable
Just like other variables you can use the{{varName}} syntax to use an environment variable in a request. On the top-right, you can see which environment you are currently using and select a different one.

Searching environment variables
When working with a large number of environment variables, you can use the search feature to quickly find specific variables.- Open your environment settings.
- Click the search icon in the environment details panel.
- Type your query to filter variables by name or value.
The search feature is also available for global environment variables.
Using the ./environment directory
Environment variables are synced with the/environments directory inside your collection. You can also create and manage environments there.
Each environment is saved in a <environment-name>.bru file or a .yml file depending on the format in use.
BRU format (local.bru)
@description before a variable to document what it represents. Descriptions are optional, always go on the line immediately before the variable, and support multiline text using triple quotes (''').
YAML format (production.yml)
description field is optional. Use the block scalar |- for multiline descriptions to preserve line breaks. A variable with an empty name and value is treated as an orphaned description row in the UI.
For information on importing and exporting environment variables, see the Import/Export Environments guide.