Install & switch versions

This recipe installs the jaiph CLI onto your PATH, verifies it, and switches between releases (stable, nightly, or a specific version).

The curl installer downloads a per-platform standalone binary from the current stable GitHub Release. Node and npm are not required to run that binary; it self-contains the runtime and the agent skill.

Prerequisites

1. Install the binary

Use the curl installer:

curl -fsSL https://jaiph.org/install | bash

This downloads jaiph-{darwin|linux}-{arm64|x64} and SHA256SUMS from the current stable Release, verifies the checksum, and installs the binary to ~/.local/bin/jaiph. Override the install location with JAIPH_BIN_DIR.

(Alternative) Install via npm when you already have Node on the host and want package-manager-tracked installs:

npm install -g jaiph

The npm package exposes dist/src/cli.js as the jaiph command (Node executes it) plus the compiled runtime tree under dist/src/.

2. Add jaiph to PATH (if needed)

If jaiph --version reports command not found, add the install directory to PATH:

export PATH="$HOME/.local/bin:$PATH"   # curl installer

or prepend npm’s global bin directory: export PATH="$(npm prefix -g)/bin:$PATH".

3. (Optional) Switch versions

jaiph use nightly      # rolling nightly prerelease
jaiph use 0.10.0       # reinstalls the v0.10.0 release binary

jaiph use re-invokes the step-1 installer (JAIPH_INSTALL_COMMAND, default curl -fsSL https://jaiph.org/install | bash) with JAIPH_REPO_REF set to nightly or v<version>, then replaces ~/.local/bin/jaiph (or JAIPH_BIN_DIR). Override JAIPH_INSTALL_COMMAND for forks, offline bundles, or local scripts.

Verification

jaiph --version

This prints jaiph <version> (sourced from the installed release at build time). After jaiph use <version>, re-run jaiph --version and confirm the printed version matches (for example jaiph 0.10.0 after jaiph use 0.10.0).