← 返回命令列表

Linux command

hledger-balance 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Show all balances

hledger balance

Show assets only

hledger balance assets

Show with hierarchy

hledger balance --tree

Show flat list

hledger balance --flat

Monthly breakdown

hledger balance -M

Show percentages

hledger balance --percent

说明

hledger balance shows account balances from the journal. It summarizes debits and credits across all matching accounts. The command supports filtering by account pattern, time period, and display format. It's the primary tool for checking financial status.

参数

--tree
Hierarchical display.
--flat
Flat account list.
-M, --monthly
Monthly breakdown.
-Q, --quarterly
Quarterly breakdown.
-Y, --yearly
Yearly breakdown.
--percent
Show percentages.
--depth _N_
Limit account depth.
--help
Display help information.

FAQ

What is the hledger-balance command used for?

hledger balance shows account balances from the journal. It summarizes debits and credits across all matching accounts. The command supports filtering by account pattern, time period, and display format. It's the primary tool for checking financial status.

How do I run a basic hledger-balance example?

Run `hledger balance` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --tree do in hledger-balance?

Hierarchical display.