Automic VaultAutomic Vault

brew

Install cpi with Homebrew, MacPorts

Tiny c++ interpreter. Version 2.2.4 via Homebrew; verified 2026-06-21.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install cpi

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install cpi

MacPorts ports tree · lang/cpi/Portfile · source: api.github.com

overview

Package summary

Tiny c++ interpreter

Commands and aliases

  • cpi

history

Project history and usage

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.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

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

security posture

Risk level: yellow

generalized runtime or code generation signal.

Risk classifier

yellow risk · medium confidence · runtime

Why

  • generalized runtime or code generation signal

Signals

  • text:interpreter

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Installs with 1 runtime dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
cpicliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-07-08
manager version2.2.4
manager updated2026-06-21
local dataok
upstreamcurrent
latest detectedv2.2.4

https://github.com/treefrogframework/cpi

  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:cpi
Version2.2.4
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/cpi
Homepagehttps://treefrogframework.github.io/cpi/
Repositoryhttps://github.com/treefrogframework/cpi
Upstream docshttps://github.com/treefrogframework/cpi#readme
LicenseMIT
Source archivehttps://github.com/treefrogframework/cpi/archive/refs/tags/v2.2.4.tar.gz
Last updated2026-06-21T15:37:37Z
Pulseupdated
Dependenciesqtbase
Uses from macOSllvm
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namecpi
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

MacPorts95%

cpi

sudo port install cpi
  • normalized package name match
  • Matched by: Cpi
MacPorts ports tree · api.github.com · MacPorts ports tree: lang/cpi/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment