← 返回命令列表

Linux command

hledger-incomestatement 命令

文本

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

常用示例

Show income statement

hledger incomestatement

Show from specific file

hledger incomestatement -f [journal.ledger]

Show for specific period

hledger incomestatement -p "[this month]"

Show monthly breakdown

hledger incomestatement --monthly

Limit account depth

hledger incomestatement --depth [2]

说明

hledger incomestatement (alias is) displays an income statement (profit & loss report) showing revenues and expenses for the report period, and their difference as net income. Part of hledger's standard financial reports alongside balance sheet and cash flow.

参数

-f, --file _file_
Use specified journal file.
-p, --period _expr_
Report period (e.g., "this month", "2024").
--monthly
Show monthly columns.
--quarterly
Show quarterly columns.
--yearly
Show yearly columns.
--depth _n_
Limit account depth.
--tree
Show accounts as tree.
--flat
Show accounts as flat list (default).
--average
Show a row average column.
--row-total
Show a row total column.
--no-total
Omit the final total row.
--sort-amount
Sort by amount instead of account name.
--output-format _fmt_
Output format (txt, html, csv, tsv, json).

FAQ

What is the hledger-incomestatement command used for?

hledger incomestatement (alias is) displays an income statement (profit & loss report) showing revenues and expenses for the report period, and their difference as net income. Part of hledger's standard financial reports alongside balance sheet and cash flow.

How do I run a basic hledger-incomestatement example?

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

What does -f, --file _file_ do in hledger-incomestatement?

Use specified journal file.