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.
sh (the runtime uses sh -c for inline shell lines inside workflows; emitted script steps follow their own shebang).curl and either shasum or sha256sum on PATH.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/.
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".
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.
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).