# 使用 Homebrew 安装 metashell

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

## 安装

```sh
sudo av install brew:metashell
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install metashell
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:metashell
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/metashell>
- **版本:** 5.0.0
- **来源摘要:** Metaprogramming shell for C++ templates
- **主页:** <http://metashell.org>
- **仓库:** <https://github.com/metashell/metashell>
- **上游文档:** <http://metashell.org>
- **许可证:** GPL-3.0-or-later
- **源码归档:** <https://github.com/metashell/metashell/archive/refs/tags/v5.0.0.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- metashell (cli)
- templight_metashell (cli)
- metashell (别名)
- templight_metashell (别名)

## 依赖

- zstd

## 构建依赖

- cmake

## macOS 提供的库

- libedit
- libxml2

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 5.0.0
- 本地数据: OK
- 上游仓库: https://github.com/metashell/metashell
- 检测到的最新版本: v5.0.0 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

Metashell is a C++ template metaprogramming REPL: its project README describes the goal as providing an interactive shell for template metaprogramming, and the project documentation frames it as the C++ template analogue of Python, Haskell, or Erlang interactive shells. Its core niche is making compile-time C++ template evaluation inspectable without forcing developers to encode every experiment as compiler diagnostics.

### 项目历史

The tool is tied to the mid-2010s wave of C++ metaprogramming tooling around Clang and Templight. Public Templight material names Abel Sinkovics and Andras Kucsma in connection with Metashell, and a Meeting C++ 2014 talk presented an interactive metaprogramming shell based on Clang. Metashell's own documentation says it uses Clang to evaluate metaprograms, while later discussion of Metashell 2.0.0 highlighted a GDB-like template metaprogram debugger.

### 使用方式

In practice, Metashell is used by C++ library authors and template-heavy codebases to experiment with types, evaluate metaprograms, and debug template instantiation flows. Boost.Metaparse documentation explicitly assumes Metashell can be used while building compile-time parsers, which places it in the same ecosystem as Boost.MPL, Metaparse, Clang, and Templight rather than in general-purpose C++ build tooling. The Homebrew package exposes both metashell and templight_metashell, matching that role as a specialist command-line tool for template metaprogramming work.

### 来源

- <https://formulae.brew.sh/formula/metashell>
- <https://github.com/metashell/metashell>
- <https://lists.boost.org/archives/list/boost%40lists.boost.org/thread/HCSZTS5QAA5UK3JPUYACBMKDDSTGMSY6/>
- <https://llvm.org/devmtg/2015-04/slides/EuroLLVM2015Templight.pdf>
- <https://plc.inf.elte.hu/templight/>
- <https://raw.githubusercontent.com/metashell/metashell/master/docs/index.md>
- <https://www.boost.org/doc/libs/latest/doc/html/metaparse/getting_started_with_boost_metap.html>


## 安全说明

generalized runtime or code generation signal.

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

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** metashell
- **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


## 相关链接

- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [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.
- [zstd](https://pkg.so/zh-hans/brew/zstd/) - Runtime dependency declared by Homebrew.
- [cmake](https://pkg.so/zh-hans/brew/cmake/) - Build dependency declared by Homebrew.
- [conan](https://pkg.so/zh-hans/brew/conan/) - Shares pkgdb curated category or tags: cli, cpp, developer-tools.
- [etl](https://pkg.so/zh-hans/brew/etl/) - Shares pkgdb curated category or tags: cli, cpp, developer-tools.
- [doublecpp](https://pkg.so/zh-hans/brew/doublecpp/) - Shares pkgdb curated category or tags: cli, cpp, developer-tools, programming-languages.
- [mongosh](https://pkg.so/zh-hans/brew/mongosh/) - Shares pkgdb curated category or tags: cli, developer-tools, repl, shell.
- [sourcery](https://pkg.so/zh-hans/brew/sourcery/) - Shares pkgdb curated category or tags: cli, developer-tools, metaprogramming, templates.
- [cabin](https://pkg.so/zh-hans/brew/cabin/) - Shares pkgdb curated category or tags: cli, cpp, developer-tools.
- [cryptol](https://pkg.so/zh-hans/brew/cryptol/) - Shares pkgdb curated category or tags: cli, developer-tools, programming-languages.
- [kickstart](https://pkg.so/zh-hans/brew/kickstart/) - Shares pkgdb curated category or tags: cli, developer-tools, templates.
- [tracy](https://pkg.so/zh-hans/brew/tracy/) - Local package facts share a topical domain. Shared terms: cli, cpp, developer, developer-tools, zstd.

## Combined YAML source

View the package source record on GitHub. [combined/metashell.yml](https://github.com/mxcl/pkgdb/blob/main/combined/metashell.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
