Getting Started
Installation
Section titled “Installation”# Linux / macOScurl -fsSL https://raw.githubusercontent.com/standardbeagle/lci-cpp/main/install.sh | sh# Windows (PowerShell)irm https://raw.githubusercontent.com/standardbeagle/lci-cpp/main/install.ps1 | iexBoth detect your OS/arch, download the matching release binary, and
install it (/usr/local/bin or ~/.local/bin on Unix;
%LOCALAPPDATA%\Programs\lci on Windows). Override with LCI_PREFIX;
pin a version with LCI_VERSION=0.7.0.
npm install -g @standardbeagle/lcilci --versionDownloads the prebuilt binary for your platform — no compiler required.
uv tool install lci-cli # or: pipx install lci-clilci --versionDownloads the prebuilt binary for your platform — no compiler required.
# Linux: tarball or Debian packagecurl -fLO https://github.com/standardbeagle/lci-cpp/releases/download/v0.7.0/lci-0.7.0-Linux.tar.gztar -xzf lci-0.7.0-Linux.tar.gzsudo install lci-0.7.0-Linux/bin/lci /usr/local/bin/
# orsudo dpkg -i lci-0.7.0-Linux.deb
lci --version # 0.7.0lci search "myFunction"Updating
Section titled “Updating”lci update # self-update to the latest releaselci update --check # report current vs latest without installinglci update --version 0.6.0 # install a specific releaselci update works regardless of how lci was installed. Package-manager
users can also run npm update -g @standardbeagle/lci or uv tool upgrade lci-cli.
Building from source
Section titled “Building from source”Toolchain: GCC 13+ or Clang 17+, CMake 3.25+, vcpkg, Ninja.
cmake --preset release \ -DCMAKE_TOOLCHAIN_FILE=$VCPKG_ROOT/scripts/buildsystems/vcpkg.cmakecmake --build build/release --parallel./build/release/src/lci --versionInstall and package the build:
cd build/releasesudo cmake --install .cpack -G TGZ # produces lci-0.7.0-Linux.tar.gzcpack -G DEB # produces lci-0.7.0-Linux.debThe CPack output contains only bin/lci (~30 MB). Tree-sitter grammars,
RE2, and TLS are statically linked; the only shared runtime dependencies are
libc, libstdc++, libgcc_s, and libm (all standard on modern Linux).
Running the test suite
Section titled “Running the test suite”cmake --build build/release --parallelctest --preset release --parallel $(nproc)The preset excludes the separately gated benchmark target. Run
./build/release/tests/lci_benchmarks explicitly for performance checks.
Your first search
Section titled “Your first search”lci search "myFunction"Full CLI reference: lci --help or lci <command> --help, or see
CLI Usage.