# 使用 Homebrew, MacPorts 安装 chrome-cli

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install chrome-cli
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install chrome-cli
```

  证据: MacPorts ports tree: www/chrome-cli/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:chrome-cli
- **软件包管理器:** Homebrew
- **版本:** 1.11.0
- **来源摘要:** Control Google Chrome from the command-line
- **主页:** <https://github.com/prasmussen/chrome-cli>
- **仓库:** <https://github.com/prasmussen/chrome-cli>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- arc-cli (别名)
- brave-cli (别名)
- chrome-canary-cli (别名)
- chrome-cli (别名)
- chromium-cli (别名)
- edge-cli (别名)
- vivaldi-cli (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

chrome-cli is a macOS command-line utility for controlling Google Chrome-compatible browsers through Apple's Scripting Bridge.

### 项目历史

The GitHub repository was created in February 2014. The README describes chrome-cli as a native OS X/macOS binary for controlling Chrome-compatible browsers from the command line.

The early 1.1.0 tag dates to February 2014, with later releases continuing through 1.11.0 in September 2025.

### 采用历史

Homebrew packages chrome-cli and installs companion wrapper commands for Chrome Canary, Chromium, Brave, Vivaldi, Edge, and Arc. The supplied package-manager facts also list MacPorts.

Homebrew's formula API reports stable version 1.11.0 and ongoing installs, while the README documents Homebrew as the installation path.

### 使用方式

The tool lists windows, tabs, and links; opens URLs; activates, closes, reloads, resizes, and positions browser windows; prints tab information or source; executes JavaScript; and can emit JSON output with `OUTPUT_FORMAT=json`.

For JavaScript execution and source viewing, the README documents the Chrome setting needed for JavaScript from Apple Events. Browser selection can be changed with the `CHROME_BUNDLE_IDENTIFIER` environment variable or the installed wrapper scripts.

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

chrome-cli is significant as a small macOS automation package that exposes Apple Events/Scripting Bridge browser control as ordinary shell commands. It is especially useful in scripts, launchers, tests, and tab-management workflows where a full browser automation framework would be excessive.

### 时间线

- 2014: Repository created and early 1.1.0 tag appears.
- 2018: 1.6.0 release line reached.
- 2021: 1.7.x releases published.
- 2022: 1.8.0 release published.
- 2023: 1.9.x releases published.
- 2024: 1.10.0 release published.
- 2025: 1.11.0 release published; Homebrew stable version reports 1.11.0.

### Related projects

- Related browser targets include Chrome, Chrome Canary, Chromium, Brave, Vivaldi, Edge, and Arc. The README also points to Chromium's AppleScript documentation for enabling JavaScript execution through Apple Events.

### 来源

- <https://github.com/prasmussen/chrome-cli#readme>
- <https://github.com/prasmussen/chrome-cli/releases>
- <https://formulae.brew.sh/api/formula/chrome-cli.json>


## 安全说明

narrow executable package without higher-risk signals.

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

## 其他软件包管理器记录

- MacPorts - chrome-cli: normalized package name match | MacPorts ports tree: www/chrome-cli/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

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


## 来源

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