rvx

March 11, 2026 · View on GitHub

Check Release

Like uvx but for Rust — download and run pre-built crate binaries without a Rust toolchain.

Usage

rvx ripgrep -- --version
rvx bat@0.24.0 -- README.md
rvx --bin parry parry-ai    # when binary name differs from crate

Cache Management

rvx --list              # show cached binaries
rvx --clean             # clear cache
rvx --update ripgrep    # force re-download

Options

FlagDescription
--bin <name>Binary name if it differs from the crate name
--updateRe-download even if cached
--listList cached binaries
--cleanRemove all cached binaries
--quiet, -qSuppress download output

How It Works

  1. Check local cache (~/.rvx)
  2. Query crates.io for version and binstall metadata
  3. Resolve binary from binstall template or GitHub releases
  4. Download, verify SHA256 checksum, extract
  5. Cache and exec (Unix exec() replaces current process)

Supports .tar.gz, .tar.xz, .tar.zst, and .zip archives.

Install

Linux / macOS:

curl -fsSL https://raw.githubusercontent.com/vaporif/rvx/main/install.sh | sh

Windows (PowerShell) (untested):

irm https://raw.githubusercontent.com/vaporif/rvx/main/install.ps1 | iex

Nix:

nix profile install github:vaporif/rvx

Or run without installing:

nix run github:vaporif/rvx -- ripgrep --version

From source:

cargo install --git https://github.com/vaporif/rvx

Configuration

Environment VariableDefaultDescription
GITHUB_TOKENGitHub API token (avoids rate limits)
RVX_HOME~/.rvxOverride cache directory

Development

cargo build
cargo test
cargo clippy -- -D warnings
cargo fmt

License

MIT