Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@ export default withNextra({
{ source: '/testing/javascript-reference', destination: '/testing/script/javascript-reference', permanent: true },
{ source: '/testing/assertions.html', destination: '/testing/tests/assertions', permanent: true },
{ source: '/testing/javascript-reference.html', destination: '/testing/script/javascript-reference', permanent: true },

// Breadcrumb fix redirects - Issue #474
{ source: '/testing', destination: '/testing/tests/introduction', permanent: true },
{ source: '/testing/script', destination: '/testing/script/getting-started', permanent: true },
{ source: '/testing/automate-test', destination: '/testing/automate-test/overview', permanent: true },
{ source: '/testing/tests', destination: '/testing/tests/introduction', permanent: true },

// - /license-management redirects (old structure to new structure)
{ source: '/license-management/license-management', destination: '/license-overview', permanent: true },
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/pages/get-started/import-export-data/_meta.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
export default {
"import-collections": "Import Collections",
"export-collections": "Export Collections",
"import-export-environments": "Import/Export Environments",
"postman-migration": "Postman Migration",
"script-translator": "Script Translator"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
import { Callout } from "nextra/components";

# Import Export Environment Variables

<Callout type="info">
Make sure you have Bruno version 2.14 or later installed to use this feature.
</Callout>

You can import and export environment variables (collection and global) to share them across teams or back them up for later use.

## Accessing Import/Export Options

1. Go to the **Environments** section (top right corner).

![Environment Variables location](/screenshots/variables/env-action.webp)

2. Click on **Configure** to access the environment settings.

3. You will see the **Import** and **Export** options in the bottom left corner.

![Export Option](/screenshots/variables/click-export-option.webp)

## Importing Environment Variables

The import feature accepts environment files in both **Bruno** and **Postman** formats.

### Steps to Import

1. Click on the **Import** button in the environment configuration screen.

2. Select the environment file you want to import.
3. The variables will be added to your environment (global or collection, depending on which you're configuring).

![Import Environment](/screenshots/get-started/import-export/import_collection/import-env.webp)

## Exporting Environment Variables

### Steps to Export

1. Go to the **Environments** section.
2. Click on **Configure**.
3. Click the **Export** button.
4. If you have multiple environments, select which environments you want to export.
5. Choose the location where you want to save the exported JSON file.

![Export Collection Environment Location](/screenshots/variables/export-collection-env-location.webp)

6. 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.

<Callout type="warning">
Secret variables (variables marked as secret) will not be included in the exported JSON file for security reasons.
</Callout>

1 change: 1 addition & 0 deletions src/pages/testing/script/javascript-reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,7 @@ Bruno provides a comprehensive variable system that allows you to manage and acc
let data = res.getBody();
let token = bru.setEnvVar("access_token", data.token, { persist: true });
}
onResponse(res);
```

- **`hasEnvVar(key)`** - Check if the environment variable exists.
Expand Down
36 changes: 2 additions & 34 deletions src/pages/variables/collection-variables.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -26,38 +26,6 @@ let namespace = bru.getCollectionVar("namespace");

## Import/Export Collection Variables

You can import and export collection variables to share them across teams or back them up for later use.

### Accessing Import/Export Options

1. Go to the **Environments** section (top right corner).

![No-Environment](/screenshots/variables/no-environment.webp)

2. Click on **Configure** to access the environment settings.

3. You will see the **Import** and **Export** options in the bottom left corner.

![Export Option](/screenshots/variables/click-export-option.webp)

### Importing Environment Variables

The import feature accepts environment files in both **Bruno** and **Postman** formats:

1. Click on the **Import** button.
2. Select the environment file you want to import
3. The variables will be added to your collection.

### Exporting Environment Variables

1. Click on the **Export** button.
2. If you have multiple environments, select which environments you want to export.
3. Choose the location where you want to save the exported JSON file.

![Export Collection Environment Location](/screenshots/variables/export-collection-env-location.webp)

4. The environment variables will be saved as a JSON file that can be shared or backed up.

<Callout type="warning">
Secret variables (variables marked as secret) will not be included in the exported JSON file for security reasons.
<Callout type="info">
For detailed instructions on importing and exporting collection environment variables, see the [Import/Export Environments](/get-started/import-export-data/import-export-environments) guide.
</Callout>
2 changes: 1 addition & 1 deletion src/pages/variables/environment-variables.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ vars {
```

<Callout type="info">
Check out the [Collection Variables](/variables/collection-variables#import-export-collection-variables) and [Global Environment Variables](/variables/global-environment-variables#import-export-global-environment-variables) documentation for import and export options.
For information on importing and exporting environment variables, see the [Import/Export Environments](/get-started/import-export-data/import-export-environments) guide.
</Callout>
36 changes: 2 additions & 34 deletions src/pages/variables/global-environment-variables.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -48,38 +48,6 @@ To use a global environment variable, reference it using the format `{{var_name}

## Import/Export Global Environment Variables

You can import and export global environment variables to share them across teams or back them up for later use.

### Accessing Import/Export Options

1. Go to the **Environments** section (top right corner).

![No-Environment](/screenshots/variables/no-environment.webp)

2. Click on **Configure** to access the environment settings.

3. You will see the **Import** and **Export** options in the bottom left corner.

![Export Option](/screenshots/variables/click-export-option.webp)

### Importing Environment Variables

The import feature accepts environment files in both **Bruno** and **Postman** formats:

1. Click on the **Import** button.
2. Select the environment file you want to import
3. The variables will be added to your global environment.

### Exporting Environment Variables

1. Click on the **Export** button.
2. If you have multiple environments, select which environments you want to export.
3. Choose the location where you want to save the exported JSON file.

![Export Global Environment Location](/screenshots/variables/export-global-env-location.webp)

4. The environment variables will be saved as a JSON file that can be shared or backed up.

<Callout type="warning">
Secret variables (variables marked as secret) will not be included in the exported JSON file for security reasons.
<Callout type="info">
For detailed instructions on importing and exporting global environment variables, see the [Import/Export Environments](/get-started/import-export-data/import-export-environments) guide.
</Callout>