# 使用 Homebrew, Nix 安装 bruno-cli

查看 bruno-cli 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:bruno-cli
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install bruno-cli
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#bruno-cli
```

  证据: nixpkgs package indexes: pkgs/by-name/br/bruno-cli/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:bruno-cli
- **软件包管理器:** Homebrew
- **版本:** 4.0.0
- **来源摘要:** CLI of the open-source IDE For exploring and testing APIs
- **主页:** <https://www.usebruno.com/>
- **最后更新:** 2026-07-24T20:50:44Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- bru (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 4.0.0
## 项目历史与用法

Bruno CLI is the command-line runner for Bruno, an open-source API client whose collections live as local files rather than in a hosted workspace. In package-manager terms it gives the Bruno collection format a scriptable interface: the GUI remains useful for authoring, while the `bru` executable runs requests, collections, and tests from terminals and CI systems.

### 项目历史

The CLI tracks the main Bruno project in the usebruno/bruno monorepo. Its changelog shows an early 0.x period adding operational features such as custom CA support, insecure TLS mode, environment-variable loading, output capture, proxy support, and authentication fixes before the 1.0.0 stable CLI release.

On 6 Feb 2024 the project changed release practice so that a new CLI version would be released with every Bruno application release. That tied the package-manager-facing `bruno-cli` artifact more closely to Bruno's desktop/API-client release cadence.

### 采用历史

Bruno CLI's adoption follows Bruno's larger appeal to developers who want API collections in git and local files instead of a cloud-synced service. The provided package facts show Homebrew and Nix packaging, which is enough to make `bru` convenient on macOS/Linux developer machines and in reproducible environments.

The official docs position the CLI for automated API testing, report generation, and CI/CD integration, making it the part of Bruno most likely to appear in build logs and package manifests.

### 使用方式

Common usage is to run Bruno requests or collections from a project checkout, select environments, pass environment variables, and emit machine-readable reports such as JSON, JUnit, or HTML for test pipelines.

The CLI became more security-conscious over time: the official docs note that Bruno CLI v3.0.0 changed the default runtime from Developer Mode to Safe Mode, requiring an explicit sandbox flag for filesystem or external-package behavior.

### 为什么软件包爱好者会关心

For package nerds, `bruno-cli` is interesting because it packages an API-client workflow as a normal Unix command. It is part of the broader shift from GUI-only API tools toward repository-native collections that can be reviewed, diffed, and executed in CI.

Its significance is not that it invented HTTP scripting, but that it makes Bruno's local collection format viable outside the desktop app, giving package managers a clean hook into API regression testing.

### 时间线

- 2023: Early 0.x CLI releases add TLS, environment, output, proxy, and authentication features.
- 2023: Bruno CLI 1.0.0 is marked as the stable release in the CLI changelog.
- 2024-02-06: The project announces that each Bruno app release will also have a matching CLI release.
- 2026: Official CLI documentation describes collection execution, report generation, CI/CD integration, and the v3.0.0 Safe Mode default.

### Related projects

- Bruno desktop app is the authoring environment and main upstream project for the CLI.
- Postman and Insomnia are adjacent API-client ecosystems; Bruno CLI occupies the package-manager-friendly lane for Bruno collections.
- Newman is a useful comparison point as the command-line runner for Postman collections.

### 来源

- <https://docs.usebruno.com/bru-cli/overview>
- <https://github.com/usebruno/bruno>
- <https://raw.githubusercontent.com/usebruno/bruno/main/packages/bruno-cli/changelog.md>
- source_facts.package-manager


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: <collection>/bruno.json, <collection>/opencollection.yml
## 其他软件包管理器记录

- Nix - bruno-cli: normalized package name match | nixpkgs package indexes: pkgs/by-name/br/bruno-cli/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/bruno-cli.yml](https://github.com/mxcl/pkgdb/blob/main/combined/bruno-cli.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
