commands.sh

hledger

all

A robust, friendly plain text accounting app. See also: `hledger-ui`, `hledger-web`.

More info →

Options (11)

-f, --fileboolean

Print all transactions, reading from multiple specified journal files

Example: hledger print {{[-f|--file]}} {{path/to/prices-2024.journal}} {{[-f|--file]}} {{path/to/prices-2023.journal}}
-t, --treeboolean

Show all accounts, as a hierarchy, and their types

Example: hledger accounts {{[-t|--tree]}} --types
boolean

Show asset and liability account balances, including zeros, hierarchically

Example: hledger {{[bs|balancesheet]}} {{[-E|--empty]}} {{[-t|--tree]}} --no-elide
-E, --emptyboolean

Show asset and liability account balances, including zeros, hierarchically

Example: hledger {{[bs|balancesheet]}} {{[-E|--empty]}} {{[-t|--tree]}} --no-elide
boolean

Show monthly incomes/expenses/totals, largest first, summarised to 2 levels

Example: hledger {{[is|incomestatement]}} {{[-M|--monthly]}} {{[-T|--row-total]}} {{[-A|--average]}} --sort {{[-2|--depth 2]}}
-M, --monthlyboolean

Show monthly incomes/expenses/totals, largest first, summarised to 2 levels

Example: hledger {{[is|incomestatement]}} {{[-M|--monthly]}} {{[-T|--row-total]}} {{[-A|--average]}} --sort {{[-2|--depth 2]}}
-T, --row-totalboolean

Show monthly incomes/expenses/totals, largest first, summarised to 2 levels

Example: hledger {{[is|incomestatement]}} {{[-M|--monthly]}} {{[-T|--row-total]}} {{[-A|--average]}} --sort {{[-2|--depth 2]}}
-A, --averageboolean

Show monthly incomes/expenses/totals, largest first, summarised to 2 levels

Example: hledger {{[is|incomestatement]}} {{[-M|--monthly]}} {{[-T|--row-total]}} {{[-A|--average]}} --sort {{[-2|--depth 2]}}
-2boolean

Show monthly incomes/expenses/totals, largest first, summarised to 2 levels

Example: hledger {{[is|incomestatement]}} {{[-M|--monthly]}} {{[-T|--row-total]}} {{[-A|--average]}} --sort {{[-2|--depth 2]}}
boolean

Show the `assets:bank:checking` account's transactions and running balance

Example: hledger {{[areg|aregister]}} assets:bank:checking
-I, --ignore-assertionsboolean

Show the amount spent on food from the `assets:cash` account

Example: hledger print assets:cash | hledger {{[-f|--file]}} - {{[-I|--ignore-assertions]}} aregister expenses:food

Examples (8)

Record new transactions interactively, saving to the default journal file

Import new transactions from `bank.csv`, using `bank.csv.rules` to convert

hledger import path/to/bank.csv

Print all transactions, reading from multiple specified journal files

hledger print [-f|--file] path/to/prices-2024.journal [-f|--file] path/to/prices-2023.journal

Show all accounts, as a hierarchy, and their types

hledger accounts [-t|--tree] --types

Show asset and liability account balances, including zeros, hierarchically

hledger [bs|balancesheet] [-E|--empty] [-t|--tree] --no-elide

Show monthly incomes/expenses/totals, largest first, summarised to 2 levels

hledger [is|incomestatement] [-M|--monthly] [-T|--row-total] [-A|--average] --sort [-2|--depth 2]

Show the `assets:bank:checking` account's transactions and running balance

hledger [areg|aregister] assets:bank:checking

Show the amount spent on food from the `assets:cash` account

hledger print assets:cash | hledger [-f|--file] - [-I|--ignore-assertions] aregister expenses:food
made by @shridhargupta | data from tldr-pages