hledger est un outil multiplateforme de comptabilité en texte brut pour suivre l'argent, le temps et les investissements en partie double.
Commandes et rapports principaux
hledger balance # Balances summary report (alias: bal)
hledger register # Running transactions register (alias: reg)
hledger print # Pretty print parsed journal entries
hledger accounts # List all account names
hledger stats # Summary statistics of journal file
Requêtes et filtrage
Les filtres s'appliquent à l'ensemble des commandes (bal, reg, print) :
hledger bal assets liab # Filter by account name pattern
hledger reg 'desc:Amazon' # Match payee/description
hledger bal cur:USD # Filter by commodity currency
hledger bal 'tag:project=alpha' # Filter by transaction tag
Statut et écritures réelles
hledger bal status:! # Pending transactions
hledger bal status:* # Cleared transactions
hledger bal real: # Exclude virtual postings
Périodes et plages de dates
hledger bal -p "2026" # Specific calendar year
hledger bal -p "from 2026-01 to 2026-06"
hledger bal -p "this month"
hledger bal -p "last quarter"
hledger bal --begin 2026-01-01 --end 2026-04-01
Rapports d'intervalles multicolonnes
hledger bal expenses --monthly # Group by month
hledger bal assets --quarterly # Group by quarter
hledger bal revenue --yearly # Group by year
hledger bal --cumulative # Show running cumulative totals
hledger bal --historical # Ending historical balances
Formats d'affichage
hledger bal --depth 2 # Limit account hierarchy depth to 2
hledger bal --tree # Render account hierarchy as a visual tree
hledger bal --flat # Render account names in flat list
hledger bal --drop 1 # Strip outermost account prefix