Skip to content

title: Commands Reference description: Complete CLI reference for rustledger

Commands Reference

rustledger provides several commands for working with beancount ledgers.

Commands

CommandDescription
checkValidate ledger files
queryRun BQL queries
reportGenerate financial reports
formatAuto-format beancount files
extractImport from bank statements
priceFetch commodity prices
doctorDebugging and diagnostic tools

Global Options

These options work with all commands:

-h, --help       Print help information
-V, --version    Print version information

Specifying the Ledger File

Most commands require a beancount file:

bash
# Explicit file path
rledger check ledger.beancount

# Use RLEDGER_FILE environment variable
export RLEDGER_FILE="~/finances/main.beancount"
rledger check

# Use profile from config
rledger check -P personal

Exit Codes

CodeMeaning
0Success
1Error (validation errors, file not found, etc.)
2Invalid usage (bad arguments)

Bean-* Aliases

For compatibility with Python beancount, rustledger can install wrapper scripts:

bash
rledger compat install          # installs to same directory as rledger
rledger compat install --prefix ~/bin  # or a custom directory
rledger compat uninstall        # removes them
WrapperEquivalent
bean-checkrledger check
bean-queryrledger query
bean-formatrledger format
bean-doctorrledger doctor
bean-extractrledger extract
bean-pricerledger price