Skip to content

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 provides aliased commands:

AliasEquivalent
bean-checkrledger check
bean-queryrledger query
bean-formatrledger format
bean-doctorrledger doctor
bean-extractrledger extract
bean-pricerledger price

These aliases are included in the standard installation.