Linux command
hledger-balancesheet 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Show balance sheet
hledger balancesheet
Monthly comparison
hledger balancesheet -M
Yearly comparison
hledger balancesheet -Y
Show as percentages
hledger balancesheet --percent
Tree view
hledger balancesheet --tree
说明
hledger balancesheet shows a standard balance sheet report. It displays assets, liabilities, and calculates net worth. The report follows accounting conventions with assets on one side and liabilities on the other. Net worth is assets minus liabilities.
参数
- -M, --monthly
- Monthly breakdown.
- -Q, --quarterly
- Quarterly breakdown.
- -Y, --yearly
- Yearly breakdown.
- --tree
- Hierarchical view.
- --flat
- Flat list view.
- --percent
- Show percentages.
- -H, --historical
- Show period-ending balances (accumulating). The default is period-change balances.
- --cumulative
- Show cumulative balances from the report start, ignoring any opening balances.
- -T, --row-total
- Add a per-row Total column.
- -A, --average
- Add a per-row Average column.
- --no-total
- Omit the final Total row.
- -d, --depth _N_
- Aggregate beyond depth _N_ of the account tree.
- --pretty
- Use Unicode box-drawing characters.
- --transpose
- Swap rows and columns.
- --invert
- Flip the sign on all amounts.
- -b _DATE_
- Begin date.
- -e _DATE_
- End date.
- -o, --output-file _FILE_
- Write output to _FILE_ (format inferred from extension).
- -O, --output-format _FMT_
- Force output format: `txt`, `csv`, `tsv`, `html`, `json`, `fods`, `sql`.
- --help
- Display help information.
FAQ
What is the hledger-balancesheet command used for?
hledger balancesheet shows a standard balance sheet report. It displays assets, liabilities, and calculates net worth. The report follows accounting conventions with assets on one side and liabilities on the other. Net worth is assets minus liabilities.
How do I run a basic hledger-balancesheet example?
Run `hledger balancesheet` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -M, --monthly do in hledger-balancesheet?
Monthly breakdown.