LEAF Install
Install or update the leaf CLI for the current OS, then verify the installed
version. This is the Codex-compatible install entry; Claude-style hosts may
also expose the same workflow as /leaf:install.
Procedure
Check the current version:
leaf --versionIf the version is
0.12.0or newer, report that version and stop. Ifleafis missing or older, continue.Determine the current OS. Do not use the current repo,
Cargo.toml, or source-checkout status to choose the installer.- On Unix shells, run
uname -s:Darwinmeans macOS,Linuxmeans Linux. - On Windows/PowerShell, treat the OS as Windows.
- If the OS cannot be determined, ask the user before installing.
- On Unix shells, run
Run the installer for that OS:
macOS: if Homebrew is available:
Missing
leaf:brew install hoetaek/tap/leafOlder Homebrew-managed
leaf:brew update && brew upgrade hoetaek/tap/leafIf Homebrew is unavailable or does not manage the current
leaf, run:curl --proto '=https' --tlsv1.2 -LsSf https://github.com/hoetaek/leaf/releases/latest/download/leaf-installer.sh | shLinux: run the shell installer:
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/hoetaek/leaf/releases/latest/download/leaf-installer.sh | shWindows: run the PowerShell installer:
powershell -ExecutionPolicy ByPass -c "irm https://github.com/hoetaek/leaf/releases/latest/download/leaf-installer.ps1 | iex"
Verify with:
leaf --versionReport the installed version. If installation failed, show the failing command and error summary, then suggest the next OS-appropriate fallback. Do not claim success without version output.