tldr/pages/common/hledger.md

38 lines
1.2 KiB
Markdown
Raw Normal View History

2022-10-10 16:17:43 +01:00
# hledger
> A robust, friendly plain text accounting app.
> See also: `hledger-ui` for TUI, `hledger-web` for web interface.
> More information: <https://hledger.org/hledger.html>.
2022-10-10 16:17:43 +01:00
- Record new transactions interactively, saving to the default journal file:
2022-10-10 16:17:43 +01:00
`hledger add`
- Import new transactions from `bank.csv`, using `bank.csv.rules` to convert:
2022-10-10 16:17:43 +01:00
`hledger import {{path/to/bank.csv}}`
2022-10-10 16:17:43 +01:00
- Print all transactions, reading from multiple specified journal files:
2022-10-10 16:17:43 +01:00
`hledger print --file {{path/to/prices-2024.journal}} --file {{path/to/prices-2023.journal}}`
2022-10-10 16:17:43 +01:00
- Show all accounts, as a hierarchy, and their types:
2022-10-10 16:17:43 +01:00
`hledger accounts --tree --types`
- Show asset and liability account balances, including zeros, hierarchically:
`hledger balancesheet --empty --tree --no-elide`
- Show monthly incomes/expenses/totals, largest first, summarised to 2 levels:
`hledger incomestatement --monthly --row-total --average --sort --depth 2`
- Show the `assets:bank:checking` account's transactions and running balance:
`hledger aregister assets:bank:checking`
- Show the amount spent on food from the `assets:cash` account:
`hledger print assets:cash | hledger -f- -I aregister expenses:food`