Skip to main content
You can import and export environment variables (collection and global) to share them across teams or back them up for later use.
Bruno allows you to configure and export default environment for your collection. You can find more information about default environment in the Default Environment page.

Accessing Import/Export Options

  1. Go to the Environments section (top right corner).
  1. Click on Configure to access the environment settings.
  2. You will see the Import and Export options in the left sidebar.

Importing Environment Variables

The import feature accepts environment files in both Bruno and Postman formats. You can import multiple files at once.

Steps to Import

  1. Click on the Import button in the environment configuration screen.
  1. Drag and drop one or more JSON environment files, or click to browse and select them.
  2. The environments will be added (global or collection, depending on which you’re configuring). If none of the names conflict with existing environments and all files are valid, Bruno imports them immediately.

Resolving name conflicts

If an imported environment has the same name as an existing one, Bruno shows a review screen before importing. The screen groups environments into Duplicates and New, and lets you search the list and select which environments to import. For each duplicate, choose one of two resolutions:
  • Import as copy (default): Bruno creates the environment under a new name and keeps the existing environment untouched.
  • Replace existing: Bruno overwrites the existing environment’s variables with the imported ones.
You can also apply a resolution to all duplicates at once using the dropdown in the Duplicates group header. Click Import to finish.
If a file has an invalid or unsupported format, Bruno reports the error and continues importing the remaining valid files.

Exporting Environment Variables

Steps to Export

  1. Go to the Environments section.
  2. Click on Configure.
  3. Click the Export button.
  1. If you have multiple environments, select which environments you want to export.
  2. Choose the location where you want to save the exported JSON file.
  1. The environment variables will be saved as a JSON file that can be shared or backed up.
The export procedure is the same for both collection and global environment variables.
Secret variables (variables marked as secret) will not be included in the exported JSON file for security reasons.