# 使用 Homebrew 安装 metashell

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install metashell
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:metashell
- **软件包管理器:** Homebrew
- **版本:** 5.0.0
- **来源摘要:** Metaprogramming shell for C++ templates
- **主页:** <http://metashell.org>
- **仓库:** <https://github.com/metashell/metashell>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

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

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

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


## 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
- curated package history
- pkgdb category and tag curation
- cross-ecosystem install command graph
