# 使用 Homebrew, MacPorts 安装 wren-cli

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install wren-cli
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install wren-cli
```

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

## 软件包事实

- **软件包键:** brew:wren-cli
- **软件包管理器:** Homebrew
- **版本:** 0.4.0
- **来源摘要:** Simple REPL and CLI tool for running Wren scripts
- **主页:** <https://github.com/wren-lang/wren-cli>
- **仓库:** <https://github.com/wren-lang/wren-cli>
- **最后更新:** 2026-07-10T09:59:34-04:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- wren_cli (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Wren CLI is the standalone command-line companion to Wren, a small embeddable scripting language created by Bob Nystrom and later maintained in the wren-lang GitHub organization. The CLI exists because the core Wren VM is deliberately minimal: it gives users a REPL and script runner, plus operating-system-facing modules such as file I/O and networking that are intentionally not bundled into the language core.

In package-manager terms, wren-cli matters less as a large ecosystem tool and more as the practical executable that turns Wren from an embeddable VM into a shell-usable language runtime. It is the piece a developer installs when they want to run `.wren` scripts, experiment at a prompt, or study a small real-world embedding of the Wren VM.

### 项目历史

The Wren language repository dates to 2013, and the language site describes Wren as a small, fast, class-based concurrent scripting language with an intentionally tiny implementation and standard library. In November 2018 Bob Nystrom announced that Sven Bergstrom, known as ruby0x1, would become Wren's lead maintainer and that the project would move under the `wren-lang` organization, preserving issues, pull requests, and project infrastructure.

The Wren development blog announced the maintainer transition publicly on 4 February 2019 and emphasized continuity: Wren would evolve while staying small, simple, learnable, and hackable. The separate `wren-cli` repository was created later in 2019 as the standalone command-line tool for the language, and GitHub releases show tagged CLI releases such as 0.3.0 in June 2020 and 0.4.0 in November 2021.

### 采用历史

Wren's adoption has historically centered on embedding, games, language experimentation, and small tools rather than a large package ecosystem. The Wren homepage highlights the small VM and C API, while the CLI page frames wren-cli as both a practical tool and a real-world usage example for people learning how Wren can be embedded and extended.

The CLI also reflects Wren's post-2018 stewardship model: the language and supporting tools live in the shared `wren-lang` organization instead of only under the original author's account. That makes wren-cli part of the maintained Wren distribution story even though it is intentionally separate from the minimal core VM.

### 使用方式

Users install or build `wren_cli` to run Wren source files, start a REPL, and access the CLI-specific modules documented at `wren.io/cli`. The CLI depends on libuv for operating-system features, which lets scripts use facilities such as file I/O and networking while keeping the base Wren language small.

Typical package-nerd usage is exploratory: run examples, test snippets, wire small scripts, or compare Wren's embedding model with Lua-style scripting. The CLI page is explicit that it is a work in progress and a standalone project, so users should treat it as the general-purpose executable around the language rather than as the entire Wren runtime.

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

wren-cli is significant because it packages the otherwise embeddable-first Wren VM into a normal Unix-style executable. That makes it indexable by Homebrew and MacPorts, scriptable from a shell, and easy to include in language-runtime inventories alongside Lua, Janet, or other compact embeddable languages.

Its separation from the core language is also historically interesting: Wren's design keeps the VM and standard library small, while the CLI carries the pragmatic I/O surface that package users expect from a runnable scripting language.

### 时间线

- 2013: The Wren language repository is created on GitHub.
- 2018: Bob Nystrom announces a maintainer transition and move to the `wren-lang` organization.
- 2019-02-04: The Wren blog announces the new maintainer era and centralized project blog.
- 2019-09-18: The `wren-lang/wren-cli` repository is created.
- 2020-06-05: Wren CLI 0.3.0 is published on GitHub.
- 2021-11-20: Wren CLI 0.4.0 is published on GitHub.

### Related projects

- Wren is the core language and VM that wren-cli runs.
- libuv supplies the CLI's operating-system-facing functionality.
- The wren-lang organization hosts the language, CLI, and site repositories.

### 来源

- <https://api.github.com/repos/wren-lang/wren>
- <https://api.github.com/repos/wren-lang/wren-cli>
- <https://api.github.com/repos/wren-lang/wren-cli/releases>
- <https://groups.google.com/g/wren-lang/c/cMUwij-NIn0>
- <https://wren.io/>
- <https://wren.io/blog/0-hello-wren.html>
- <https://wren.io/cli/>


## 安全说明

generalized runtime or code generation signal.

- **Geiger 风险:** yellow / 中
- generalized runtime or code generation signal

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

- MacPorts - wren-cli: normalized package name match | MacPorts ports tree: lang/wren-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/wren-cli.yml](https://github.com/mxcl/pkgdb/blob/main/combined/wren-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
