# 使用 Homebrew 安装 tengo

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

## 安装

```sh
sudo av install brew:tengo
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install tengo
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:tengo
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/tengo>
- **版本:** 3.0.0
- **来源摘要:** Fast script language for Go
- **主页:** <https://tengolang.com>
- **仓库:** <https://github.com/d5/tengo>
- **上游文档:** <https://tengolang.com>
- **许可证:** MIT
- **源码归档:** <https://github.com/d5/tengo/archive/refs/tags/v3.0.0.tar.gz>
- **最后更新:** 2026-07-26T00:50:34+02:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- tengo (cli)
- tengo (别名)

## 构建依赖

- go

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 3.0.0
- 管理器更新时间: 2026-07-26
- 本地数据: OK
- 上游仓库: https://github.com/d5/tengo
- 检测到的最新版本: v3.0.0 (当前)
## 项目历史与用法

Tengo is a small, dynamic scripting language for Go, implemented as bytecode executed on a stack-based virtual machine. The project positions it as fast, secure, embeddable, extensible, and usable either through Go APIs or as a standalone CLI and REPL.

### 项目历史

The GitHub repository was created in January 2019 and the first listed GitHub release, v0.9.1, followed later that month. The project grew around the need for a lightweight scripting layer that Go programs could embed without cgo or external runtime dependencies.

### 采用历史

Tengo's adoption is mostly in the Go ecosystem: the README demonstrates embedding scripts through `github.com/d5/tengo/v2`, points to Go package documentation, and links language docs for syntax, object types, runtime types, interoperability, CLI use, and the standard library. Homebrew packaging adds a package-manager path for users who want the `tengo` executable.

### 使用方式

Developers use Tengo to evaluate expressions, run user-provided scripts with controlled inputs, or ship rule engines, state machines, data pipelines, and transpiler workflows inside Go applications. The CLI also exposes Tengo as a standalone language for scripting and REPL-style use.

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

Tengo matters to package nerds because it is both a library and a command-line language runtime: it packages a tiny VM, standard library, CLI, and docs as a Go-native tool. Its benchmark table compares it with embedded Lua, JavaScript, Starlark, Python, Yaegi, and other interpreters, which is exactly the sort of tradeoff package curators track when choosing embeddable runtimes.

### 时间线

- 2019-01-09: GitHub repository created.
- 2019-01-30: v0.9.1 release published.
- 2022-09-26: v2.13.0 release published.
- 2024-02-29: v2.17.0 release published.
- 2025-05-24: v3.0.0 release published.

### Related projects

- The README compares Tengo benchmark results with go-lua, GopherLua, goja, starlark-go, gpython, Yaegi, otto, and Anko, and links related projects such as go-fsm and tengo2lua.

### 来源

- <https://api.github.com/repos/d5/tengo>
- <https://api.github.com/repos/d5/tengo/releases>
- <https://github.com/d5/tengo#readme>
- <https://tengolang.com>
- source_facts.package-manager


## 安全说明

narrow executable package without higher-risk signals.

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

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** tengo
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Language runtime packages](https://pkg.so/zh-hans/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [fzf](https://pkg.so/zh-hans/brew/fzf/) - Shares pkgdb curated category or tags: cli, developer-tools, go.
- [hugo](https://pkg.so/zh-hans/brew/hugo/) - Shares pkgdb curated category or tags: cli, developer-tools, go.
- [golangci-lint](https://pkg.so/zh-hans/brew/golangci-lint/) - Shares pkgdb curated category or tags: cli, developer-tools, go.
- [powershell](https://pkg.so/zh-hans/brew/powershell/) - Shares pkgdb curated category or tags: cli, developer-tools, scripting-language.
- [k6](https://pkg.so/zh-hans/brew/k6/) - Shares pkgdb curated category or tags: cli, developer-tools, go.
- [shfmt](https://pkg.so/zh-hans/brew/shfmt/) - Shares pkgdb curated category or tags: cli, developer-tools, go.
- [overmind](https://pkg.so/zh-hans/brew/overmind/) - Shares pkgdb curated category or tags: cli, developer-tools, go.
- [grpcurl](https://pkg.so/zh-hans/brew/grpcurl/) - Shares pkgdb curated category or tags: cli, developer-tools, go.
- [d2](https://pkg.so/zh-hans/brew/d2/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, language, scripting.
- [libslax](https://pkg.so/zh-hans/brew/libslax/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, language, scripting.

## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
