# Installer cpi avec Homebrew, MacPorts

Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de cpi pour les workflows d'agents IA.

## installation

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

Commandes d'installation supplémentaires:

### macOS

- Homebrew (100%):

```sh
brew install cpi
```

  Preuve: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install cpi
```

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

## Faits du paquet

- **Clé du paquet:** brew:cpi
- **Gestionnaire de paquets:** Homebrew
- **Page du gestionnaire de paquets:** <https://formulae.brew.sh/formula/cpi>
- **Version:** 2.2.4
- **Résumé source:** Tiny c++ interpreter
- **Page d'accueil:** <https://treefrogframework.github.io/cpi/>
- **Dépôt:** <https://github.com/treefrogframework/cpi>
- **Docs amont:** <https://treefrogframework.github.io/cpi/>
- **Licence:** MIT
- **Archive source:** <https://github.com/treefrogframework/cpi/archive/refs/tags/v2.2.4.tar.gz>
- **Dernière mise à jour:** 2026-06-21T15:37:37Z
- **Généré:** 2026-08-04T22:13:35+00:00

## exécutables

- cpi (cli)
- cpi (alias)

## Dépendances

- qtbase

## Bibliothèques fournies par macOS

- llvm

## Comportement d'installation

- hook post-installation: non défini
- Bouteille: disponible sur arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Version et fraîcheur

- page générée: 2026-08-04
- version du gestionnaire: 2.2.4
- gestionnaire mis à jour: 2026-06-21
- données locales: OK
- dépôt amont: https://github.com/treefrogframework/cpi
- dernière version détectée: v2.2.4 (à jour)
## Historique du projet et usages

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.

### Historique du projet

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.

### Historique d'adoption

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.

### Modes d'utilisation

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.

### Pourquoi les passionnés de paquets s'y intéressent

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.

### Chronologie

- 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.

### Sources

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


## Notes de sécurité

generalized runtime or code generation signal.

- **Risque Geiger:** yellow / moyen
- generalized runtime or code generation signal

## Détails de la base source

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

## Autres enregistrements de gestionnaires de paquets

- 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


## Liens liés

- [Source-control packages](https://pkg.so/fr/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://pkg.so/fr/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/fr/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Language runtime packages](https://pkg.so/fr/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [qtbase](https://pkg.so/fr/brew/qtbase/) - Runtime dependency declared by Homebrew.
- [regina-rexx](https://pkg.so/fr/brew/regina-rexx/) - Shares pkgdb curated category or tags: cli, interpreter, interpreters, language-runtime, scripting.
- [woxi](https://pkg.so/fr/brew/woxi/) - Shares pkgdb curated category or tags: cli, interpreter, interpreters, language-runtime, repl.
- [yaegi](https://pkg.so/fr/brew/yaegi/) - Shares pkgdb curated category or tags: cli, interpreter, language-runtime, repl, scripting.
- [ruby](https://pkg.so/fr/brew/ruby/) - Shares pkgdb curated category or tags: cli, interpreter, language-runtime, scripting.
- [lua](https://pkg.so/fr/brew/lua/) - Shares pkgdb curated category or tags: cli, interpreter, language-runtime, scripting.
- [gauche](https://pkg.so/fr/brew/gauche/) - Shares pkgdb curated category or tags: cli, interpreter, language-runtime, scripting.
- [lua@5.4](https://pkg.so/fr/brew/lua-5-4/) - Shares pkgdb curated category or tags: cli, interpreter, language-runtime, scripting.
- [mawk](https://pkg.so/fr/brew/mawk/) - Shares pkgdb curated category or tags: cli, interpreter, language-runtime, scripting.
- [cling](https://pkg.so/fr/brew/cling/) - Local package facts share a topical domain. Shared terms: cli, cpp, interpreter, language, language-runtime.

## Combined YAML source

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


## Sources

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