Installation
- curl
- wget
- crates.io
- npm
- pnpm
- bun
- yarn
- from source
No Rust or Node. The script detects OS/arch, downloads the matching archive, checks SHA256SUMS, and puts stackrun in ~/.local/bin.
curl -fsSL https://jasenmichael.github.io/stackrun/install.sh | sh
Pin a version or install directory:
curl -fsSL https://jasenmichael.github.io/stackrun/install.sh | STACKRUN_VERSION=1.0.1 sh
curl -fsSL https://jasenmichael.github.io/stackrun/install.sh | STACKRUN_INSTALL=/usr/local/bin sh
Manual install: pick an archive from GitHub Releases. Names are stackrun-v<version>-<target>.tar.gz (Unix) or .zip (Windows).
Targets: Linux x64/arm64 (*-unknown-linux-gnu), macOS Intel/Apple Silicon (*-apple-darwin), Windows x64/arm64 (*-pc-windows-msvc).
tar -xzf stackrun-v1.0.1-x86_64-unknown-linux-gnu.tar.gz
sudo mv stackrun-v1.0.1-x86_64-unknown-linux-gnu/stackrun /usr/local/bin/
sha256sum -c SHA256SUMS
No Rust or Node. Same script as curl. wget fetches it; sh runs it.
wget -qO- https://jasenmichael.github.io/stackrun/install.sh | sh
Pin a version or install directory:
wget -qO- https://jasenmichael.github.io/stackrun/install.sh | STACKRUN_VERSION=1.0.1 sh
wget -qO- https://jasenmichael.github.io/stackrun/install.sh | STACKRUN_INSTALL=/usr/local/bin sh
Manual install: pick an archive from GitHub Releases. Names are stackrun-v<version>-<target>.tar.gz (Unix) or .zip (Windows).
Targets: Linux x64/arm64 (*-unknown-linux-gnu), macOS Intel/Apple Silicon (*-apple-darwin), Windows x64/arm64 (*-pc-windows-msvc).
tar -xzf stackrun-v1.0.1-x86_64-unknown-linux-gnu.tar.gz
sudo mv stackrun-v1.0.1-x86_64-unknown-linux-gnu/stackrun /usr/local/bin/
sha256sum -c SHA256SUMS
Needs cargo because cargo builds the crate.
cargo install stackrun
Needs Node. One npm package (stackrun). Install downloads the matching GitHub Release binary for this OS/arch.
npx stackrun
npm i -g stackrun
npm i -D stackrun
npm install stackrun
Needs Node. Same npm package (stackrun); install downloads the matching GitHub Release binary.
pnpm add stackrun
pnpm dlx stackrun
Needs Node (or Bun). Same npm package (stackrun); install downloads the matching GitHub Release binary.
bun install stackrun
bunx stackrun
Needs Node. Same npm package (stackrun); install downloads the matching GitHub Release binary.
yarn add stackrun
Needs a Rust stable toolchain (rust-toolchain.toml pins stable). Builds this repo, not crates.io.
git clone https://github.com/jasenmichael/stackrun
cd stackrun
cargo install --path .
Run from the repo without installing:
cargo run -- --help
cargo build --release