getshrike; it installs two equivalent commands, shrike and getshrike.
You do not need a Rust toolchain to use the published npm package. A native engine binary is installed for your platform as an optional dependency.
Prerequisites
- Node.js 22 or newer. Check it with
node --version. - A package manager that installs optional dependencies normally.
Install
shrike and getshrike bins to the project. Each run resolves a native engine in this order:
SHRIKE_ENGINE— an explicit path to an engine binary.- A repository build at
target/release/shrike-engineortarget/debug/shrike-engine(source checkouts only). - The installed platform package for your OS and CPU.
- A
shrike-enginebinary onPATH.
getshrike-linux-x64, getshrike-linux-arm64, getshrike-darwin-x64, getshrike-darwin-arm64, and getshrike-windows-x64. Packaged binaries are verified against a SHA-256 sidecar before every run, not only at install time; a missing or mismatched sidecar fails closed with exit 4 and tells you to reinstall. The launcher does not silently fall back to PATH in that case.
Verify the installation
shrike 1.0.1 (protocol 1.0). Add --json to get the name, version, protocol version, and engine as JSON.
If the engine is missing or incompatible
If a command exits4 with shrike-engine was not found or an unsupported-platform message:
- Reinstall with optional dependencies enabled — for example,
npm install -D getshrikerather than an install with--omit=optional. - Confirm your OS and CPU are one of the five platform targets listed above.
- If you are working from a source checkout, run
cargo build -p shrike-engineand let the CLI findtarget/debug/shrike-engine, or pointSHRIKE_ENGINEat the binary explicitly. - Re-run
npx shrike version.