Installation
To install the Bruno CLI, use the node package manager of your choice:
```bash
pnpm install -g @usebruno/cli
```
```bash
npm install -g @usebruno/cli
```
```bash
yarn global add @usebruno/cli
```
For more details, visit the official NPM Page for Bruno CLI ↗
Docker
If you prefer not to install Node.js on the host, official Docker images are published for the Bruno CLI:
docker pull usebruno/cli:latest
See Docker for variants, tags, and usage examples.
Testing nightly
The CLI nightly is published as an npm tarball (.tgz) on the bruno-nightly-builds ↗ repository. Install it in an isolated folder so it does not replace a globally installed @usebruno/cli.
1. Prepare a test folder
Download the .tgz file from the latest nightly release and keep the original filename unchanged. Then create a clean folder and move the file into it:
mkdir cli-portable-nightly
mv usebruno-cli-*.tgz cli-portable-nightly/
cd cli-portable-nightly
2. Install the bundle locally
npm init -y
npm install --offline ./usebruno-cli-<version>.tgz
3. Verify the installation
npx bru --version
# Expected output: the nightly version number, e.g. 3.5.0
4. Run your collection using the local CLI
The nightly bru binary lives inside the test folder, at cli-portable-nightly/node_modules/.bin/bru. The short form ./node_modules/.bin/bru only works while your shell is inside cli-portable-nightly.
Your collection is usually in another folder, so cd into the collection and call the nightly binary by its full absolute path.
# Step into your collection folder
cd /path/to/your-collection
# macOS / Linux — use the absolute path to the nightly binary
/path/to/cli-portable-nightly/node_modules/.bin/bru run --env <name>
# Windows
C:\path\to\cli-portable-nightly\node_modules\.bin\bru run --env <name>
If you are not sure of the path, run pwd while inside cli-portable-nightly:
cd /path/to/cli-portable-nightly
pwd
# e.g. /Users/yourname/Downloads/cli-portable-nightly
Then use that output as the prefix:
cd /path/to/your-collection
/Users/yourname/Downloads/cli-portable-nightly/node_modules/.bin/bru run --env <name>
export NIGHTLY_BRU=/Users/yourname/Downloads/cli-portable-nightly/node_modules/.bin/bru
cd /path/to/your-collection
$NIGHTLY_BRU run --env <name>
Desktop app nightly builds are documented separately under Download & Install.