Brux is a CLI tool written in Go for executing Bruno's Bru files.
Features
- Parse .bru file
- Run .bru file
- Support enviroments
- Support .env variables
- Support saving output
- Pretty print JSON
- Add ability to run against multiple environments and compare the results
$ go install github.com/ashishb/brux/src/brux/cmd/brux@latest
...
Or run it directly
$ go run github.com/ashishb/brux/src/brux/cmd/brux@latest --help
Usage:
brux [flags]
brux [command]
Available Commands:
completion Generate the autocompletion script for the specified shell
help Help about any command
run Run a Bru file
Flags:
-h, --help help for brux
Consider a sample example.bru
file
meta {
name: Send request to example.com
type: http
seq: 1
}
get {
url: http://example.com/
body: json
auth: none
}
headers {
Content-Type: application/json
}
You can run it as
$ go run github.com/ashishb/brux/src/brux/cmd/brux@latest run example.bru
...