Skip to main content

Installing Bruno CLI

The Bruno CLI is distributed as an npm package (@usebruno/cli) and can be installed globally or as a project dependency.

Global Installation

Install Bruno CLI globally to use it across all your projects:
After installation, verify it’s working:

Project Installation

Install as a development dependency in your project:
Then add scripts to your package.json:
package.json
Run the tests:

Version Information

Check the installed version:
Get help and see available commands:

System Requirements

Node.js version: Bruno CLI requires Node.js 14 or higher.
  • Node.js: v14.0.0 or higher
  • npm: v6.0.0 or higher (or equivalent yarn/pnpm version)
  • Operating Systems: Linux, macOS, Windows

CI/CD Environment Installation

For CI/CD pipelines, install as part of your build process:

Docker Installation

Create a Dockerfile for running Bruno CLI tests:
Dockerfile
Build and run:

Updating Bruno CLI

Keep your CLI up to date with the latest features:

Troubleshooting

Command Not Found

If bru is not recognized after installation:
  1. Check npm global path:
  2. Add to PATH: Ensure the npm global bin directory is in your PATH:
  3. Use npx: As an alternative, run without installing globally:

Permission Errors

On Linux/macOS, if you get permission errors during global installation:
Or configure npm to use a different directory (recommended):

Next Steps

Running Tests

Learn how to run your API tests with the CLI

CLI Options

Explore all available command-line options