title: Installation description: Install rustledger on macOS, Linux, or Windows
Installation
Package Managers
macOS / Linux (Homebrew)
brew install rustledgerArch Linux
yay -S rustledger-binFedora / RHEL
sudo dnf copr enable robcohen/rustledger
sudo dnf install rustledgerWindows (Scoop)
scoop bucket add rustledger https://github.com/rustledger/scoop-rustledger
scoop install rustledgerCargo (Rust)
# Using cargo-binstall (recommended, downloads pre-built binary)
cargo binstall rustledger
# Or build from source
cargo install rustledgerNix
# Run without installing
nix run github:rustledger/rustledger
# Or add to your flake
{
inputs.rustledger.url = "github:rustledger/rustledger";
}Docker
docker run --rm -v "$PWD:/data" ghcr.io/rustledger/rustledger check /data/ledger.beancountPre-built Binaries
Download from GitHub Releases:
| Platform | Download |
|---|---|
| Linux x86_64 | rustledger-v<VERSION>-x86_64-unknown-linux-gnu.tar.gz |
| Linux ARM64 | rustledger-v<VERSION>-aarch64-unknown-linux-gnu.tar.gz |
| macOS x86_64 | rustledger-v<VERSION>-x86_64-apple-darwin.tar.gz |
| macOS ARM64 | rustledger-v<VERSION>-aarch64-apple-darwin.tar.gz |
| Windows x86_64 | rustledger-v<VERSION>-x86_64-pc-windows-msvc.zip |
Replace <VERSION> with the release version (e.g., 0.15.0).
Plugin Runtimes
The install routes above do not all give the same rledger. Release binaries are built without the WASM and Python plugin runtimes, on purpose (smaller, and no plugin sandbox to trust). They run every built-in native plugin, but not:
- Python plugins (
plugin "my_plugin.py",plugin "python:..."), - WASM plugins (
plugin "my_plugin.wasm",rledger check --plugin), - WASM importers (
rledger extract --wasm-importer,--wasm-importer-dir).
Asked for one of these, a release binary stops with an error saying the runtimes are missing and naming cargo install rustledger. A wasm_importer_dir in importers.toml is accepted (the same file may serve a full build), and its .wasm importers are not tried: when no importer matches a file, or nothing is extracted, the error names them, a file another importer reads instead gets a warning naming them, and rledger extract --list-importers lists them as not loaded.
| Route | Plugin runtimes |
|---|---|
GitHub Releases binaries, cargo binstall, Homebrew, Scoop, rustledger-bin (AUR) | No (release binaries) |
cargo install rustledger | Yes (the default python-plugin-wasm feature) |
Building from source (cargo build), rustledger (AUR), Fedora COPR, Docker, Nix | Yes (default features) |
To run Python or WASM plugins or WASM importers, install with:
cargo install rustledgerA source build with --no-default-features (for a platform the WASM runtime does not build on, such as Termux) leaves them out, as the release binaries do.
Verify Installation
rledger --versionYou should see output like:
rledger 0.15.0Shell Completions
Generate shell completions for your shell:
# Bash
rledger completions bash > ~/.local/share/bash-completion/completions/rledger
# Zsh
rledger completions zsh > ~/.zfunc/_rledger
# Fish
rledger completions fish > ~/.config/fish/completions/rledger.fish
# PowerShell
rledger completions powershell > $HOME\Documents\PowerShell\Modules\rledger.ps1Next Steps
- Quick Start - Run your first commands
- Configuration - Customize rustledger