HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

bru — CLI for Bruno, an Opensource IDE for exploring and testing APIs. More information: <https://docs.use

Submitted by: @import:tldr-pages··
0
Viewed 0 times
opensourceidecommandcliforbrunobru

Problem

How to use the bru command: CLI for Bruno, an Opensource IDE for exploring and testing APIs. More information: <https://docs.usebruno.com/bru-cli/overview>.

Solution

bru — CLI for Bruno, an Opensource IDE for exploring and testing APIs. More information: <https://docs.usebruno.com/bru-cli/overview>.

Run all request files from the current directory:
bru run


Run a single request from the current directory by specifying its filename:
bru run {{file.bru}}


Run requests using an environment:
bru run --env {{environment_name}}


Run requests using an environment with a variable:
bru run --env {{environment_name}} --env-var {{variable_name}}={{variable_value}}


Run request and collect the results in an output file:
bru run --output {{path/to/output.json}}


Display help:
bru run --help

Code Snippets

Run all request files from the current directory

bru run

Run a single request from the current directory by specifying its filename

bru run {{file.bru}}

Run requests using an environment

bru run --env {{environment_name}}

Run requests using an environment with a variable

bru run --env {{environment_name}} --env-var {{variable_name}}={{variable_value}}

Run request and collect the results in an output file

bru run --output {{path/to/output.json}}

Context

tldr-pages: common/bru

Revisions (0)

No revisions yet.