# cpi を Homebrew, MacPorts でインストール

cpi のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:cpi
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install cpi
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install cpi
```

  証拠: MacPorts ports tree: lang/cpi/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

## パッケージ情報

- **パッケージキー:** brew:cpi
- **パッケージマネージャ:** Homebrew
- **バージョン:** 2.2.4
- **ソース概要:** Tiny c++ interpreter
- **ホームページ:** <https://treefrogframework.github.io/cpi/>
- **リポジトリ:** <https://github.com/treefrogframework/cpi>
- **最終更新:** 2026-06-21T15:37:37Z
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- cpi (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 2.2.4
## プロジェクトの歴史と使われ方

cpi is a small C++ interpreter-style command-line tool from the TreeFrog Framework organization. Its upstream description and README present it as a tiny interpreter for C++20 or C++23 rather than as a separate language implementation.

### プロジェクトの歴史

The public GitHub repository was created in December 2012. The README documents a design that uses an installed C++ compiler internally, with Qt 6 and a C++ compiler as build/runtime requirements, so the package sits between a REPL, a script runner, and a thin compile-and-run wrapper.

### 採用の歴史

Package-manager adoption appears niche: the supplied package facts list Homebrew and MacPorts. That is consistent with cpi's role as a developer convenience tool rather than a core language runtime.

### 使われ方

The README shows interactive mode, execution of saved C++ source files, per-file compile options, pkg-config integration, and Qt examples. For package users, the important behavior is that cpi depends on the host compiler toolchain rather than shipping an independent C++ execution engine.

### パッケージ好きにとっての重要性

cpi is interesting to packagers because it exposes C++ as something close to a scripting workflow while still needing normal C++ and Qt build dependencies. Its documented per-user INI file also means an otherwise small CLI has a real configuration surface.

### タイムライン

- 2012: Public GitHub repository created.
- 2025: README examples document cpi 2.2.0 and C++20/C++23 usage.
- 2026: Upstream tags include 2.2.x releases and test-release tags.

### Related projects

- TreeFrog Framework is the upstream GitHub organization for cpi.
- Qt and GCC, LLVM, or MSVC are documented build/runtime requirements.

### ソース

- <https://api.github.com/repos/treefrogframework/cpi>
- <https://github.com/treefrogframework/cpi#readme>
- <https://raw.githubusercontent.com/treefrogframework/cpi/master/README.md>


## セキュリティノート

generalized runtime or code generation signal.

- **Geiger リスク:** yellow / 中
- generalized runtime or code generation signal

## 他のパッケージマネージャ記録

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