Basic Collection Execution
To run an entire collection, navigate to your collection directory and use therun command:
copy
Running a Folder within a Collection
You can run all the requests within a specific folder by specifying the folder name:copy
copy
Running a Collection with a CSV File
This feature requires Bruno CLI ↗ version 1.35.0 or higher.
--csv-file-path option:
copy
Running a Collection with a JSON File
To run a collection using data from a JSON file, provide the file path using the--json-file-path option:
copy
Running a Collection Multiple Times
You can run a collection multiple times in a single command using the--iteration-count flag:
copy
Running a Collection with Environments
You can run a collection using environment variables from either a.bru file or a .json file. This allows you to attach environments via the CLI from anywhere in the filesystem.
Using Environment Files
To run a collection with an environment file, use the--env-file option:
copy
copy
The environment file should be in Bruno’s
.bru format. Make sure the file contains valid environment variables and their values.Using JSON Environment Files
This feature requires Bruno CLI ↗ version 2.13.0 or higher.
copy
JSON Environment File Format
The JSON environment file should follow Bruno’s environment schema:copy
Using Environments Names
If you need to use a specific environment, you can pass it with the--env option:
copy
Passing Environment Variables
Variables marked as secrets in Bruno app are not accessible via the CLI. Pass them directly as command-line arguments.
copy
Multiple Environment Variables
You can override multiple environment variables by using additional--env-var flags:
copy
--env-var flag adds or overrides a single environment variable, and you can chain as many as needed.
Filtering Requests with Tags
Bruno CLI supports filtering requests by tags, allowing you to run only specific subsets of your collection based on tag criteria.This feature requires Bruno CLI ↗ version 2.8.0 or higher.
Include Tags
Run only requests that have at least one matching tag.copy
Exclude Tags
Skip requests that have ANY of the specified tags:copy
Combined Filtering
You can combine include and exclude filters:copy
Parallel Execution and Progress Tracking
Bruno CLI supports running requests in parallel and displaying real-time progress during collection execution.Parallel Execution
By default, Bruno CLI runs requests sequentially. You can enable parallel execution using the--parallel flag:
copy