Skip to main content

CLI Options Reference

Complete reference for all Bruno CLI commands, options, and flags.

Global Options

These options are available for all commands:
boolean
Show help information.Aliases: -h
boolean
Show version number.

Run Command

Execute API requests and tests from your collection.

Paths

string[]
One or more request files or folders to run. If omitted, runs all requests in the current directory recursively.

Execution Options

boolean
default:false
Run requests recursively in subdirectories.
boolean
default:false
Only run requests that have tests or active assertions.
boolean
default:false
Stop execution immediately after a failure of a request, test, or assertion.
number
Add delay between each request in milliseconds.
boolean
default:false
Enable verbose output for debugging purposes.

Environment Options

string
Specify environment to run with. Loads from environments/<name>.bru or environments/<name>.yml.
string
Path to environment file (.bru, .json, or .yml) - absolute or relative.
string
Override a single environment variable. Can be used multiple times.
string
Global environment name (requires collection to be in a workspace).
string
Path to workspace directory (auto-detected if not provided).

Output and Reporting

string
Path to write file results to. Use with --format to specify format.Aliases: -o
string
default:"json"
Format of the file results.Aliases: -fOptions: json, junit, html
string
Path to generate a JSON report.
string
Path to generate a JUnit XML report.
string
Path to generate an HTML report.

Reporter Customization

boolean
default:false
Omit all headers from the reporter output.
array
default:[]
Skip specific headers from the reporter output.
boolean
default:false
Omit request body from the reporter output.
boolean
default:false
Omit response body from the reporter output.
boolean
default:false
Omit both request and response bodies from the reporter output.

Security and Certificates

string
CA certificate to verify peer against. By default, uses system truststore + custom cert.
boolean
default:false
Use only the specified custom CA certificate (—cacert) and ignore the default truststore.
boolean
default:false
Allow insecure server connections (skip SSL certificate verification).
Only use in development/testing environments.
string
Path to client certificate configuration JSON file.
Config format:

Network Options

boolean
default:false
Disable all proxy settings (both collection-defined and system proxies).
boolean
default:false
Disable automatic cookie saving and sending with requests.

Advanced Options

string
default:"safe"
JavaScript sandbox runtime to use.Options:
  • safe - Uses QuickJS (secure, limited features)
  • developer - Uses Node.js VM (more features, less secure)
string
Comma-separated list of tags to include in the run.
string
Comma-separated list of tags to exclude from the run.

Import Command

Import collections from other formats.

Import Types

string
required
Type of collection to import.Options: openapi, wsdl

Import Options

string
required
Path to the source file or URL.Aliases: -s
string
Path to the output directory. Conflicts with --output-file.Aliases: -o
string
Path to the output JSON file. Conflicts with --output.Aliases: -f
string
Name for the imported collection.Aliases: -n
string
default:"opencollection"
Format of the imported collection.Options: bru, opencollection
boolean
default:false
Skip SSL certificate verification when fetching from URLs.
string
default:"tags"
How to group imported requests (OpenAPI only).Aliases: -gOptions: tags, path

Exit Codes

Bruno CLI returns specific exit codes for scripting and automation:

Using Exit Codes in Scripts

Environment Variables

Bruno CLI respects the following environment variables:
string
HTTP proxy server URL.
string
HTTPS proxy server URL.
string
Comma-separated list of hosts to exclude from proxying.

Complete Examples

Production Test Suite

Development Testing

CI/CD Integration

Import and Test

Next Steps

CLI Overview

Learn about Bruno CLI fundamentals

Running Tests

Practical guide to running API tests

Importing Collections

Import from OpenAPI and other formats

Installation

Install Bruno CLI in your environment