Bruno
Fast, Git-friendly API client for testing and debugging. Store API collections as files and version control them.
43 commands
Browse by Topic
Install Bruno (macOS)
Install Bruno API client using Homebrew on macOS
Install Bruno CLI (npm)
Install the Bruno CLI globally using npm
Check Bruno CLI version
Verify Bruno CLI is installed and display the current version
Run collection
Run all requests in collection.
Run specific folder
Run requests in specific folder.
Run with environment
Run with specific environment.
Run specific request
Run a specific request by name.
Output format
Output results as JSON.
Run with custom CA cert
Use custom CA certificate for TLS.
Skip TLS verification
Disable SSL certificate verification.
Stop on first failure
Abort collection run on first error.
Set request timeout
Set timeout in milliseconds per request.
HTML test report
Generate HTML report of test results.
JUnit test report
Generate JUnit XML report for CI.
List environments
List available environments.
Show environment
Show environment variables.
Run with env file
Use dotenv file for secrets.
Environment file structure
Example environment.bru file format.
Secret variables
Declare secret vars excluded from Git.
Override env variable
Override a single variable at runtime.
Initialize collection
Create new Bruno collection.
Bru file structure
Example .bru request file.
Import from Postman
Import Postman collection.
POST with JSON body
POST request with JSON body payload.
Form data upload
Upload file using multipart form data.
GraphQL request
Send a GraphQL query request.
Set request headers
Add custom headers to a request.
Query parameters
Set URL query parameters on a request.
Collection folder structure
Standard collection directory layout.
Pre-request script
Script that runs before request.
Post-response script
Script that runs after response.
Test assertions
Write test assertions.
Set variable
Store value for later requests.
Get variable
Retrieve a previously stored variable.
Get environment variable
Read an environment variable in script.
Set next request
Control request execution order.
Multiple test blocks
Multiple Chai assertions in tests block.
Assert status code
Built-in assert for response status.
Assert response body
Assert response body field types and values.
Assert response headers
Assert values in response headers.
Assert contains and matches
Use contains, matches, and length assertions.
Auth token chaining
Extract and chain auth tokens between requests.
Dynamic request body
Generate dynamic values before request.
Discussion
Loading comments...