commands.sh

hledger print

all

Show full journal entries, representing transactions.

More info →

Options (5)

-x, --explicitboolean

Show transactions, with any implied amounts or costs made explicit

Example: hledger print {{[-x|--explicit]}} --infer-costs
-f, --fileboolean

Show transactions from two specified files, with amounts converted to cost

Example: hledger print {{[-f|--file]}} {{path/to/2023.journal}} {{[-f|--file]}} {{path/to/2024.journal}} {{[-B|--cost]}}
-B, --costboolean

Show transactions from two specified files, with amounts converted to cost

Example: hledger print {{[-f|--file]}} {{path/to/2023.journal}} {{[-f|--file]}} {{path/to/2024.journal}} {{[-B|--cost]}}
-C, --clearedboolean

Show cleared transactions, with `EUR` amounts rounded and with decimal commas

Example: hledger print {{[-C|--cleared]}} --commodity '1000, EUR' --round hard
-o, --output-fileboolean

Write transactions from `foo.journal` as a CSV file

Example: hledger print {{[-f|--file]}} {{path/to/foo.journal}} {{[-o|--output-file]}} {{path/to/output_file.csv}}

Examples (7)

Show all transactions in the default journal file

Show transactions, with any implied amounts or costs made explicit

hledger print [-x|--explicit] --infer-costs

Show transactions from two specified files, with amounts converted to cost

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

Show `$` transactions this month in accounts whose name contains `food` but not `groceries`

hledger print cur:\\$ food not:groceries date:thismonth

Show transactions of amount 50 or more, with `whole foods` in their description

hledger print amt:'>50' desc:'whole foods'

Show cleared transactions, with `EUR` amounts rounded and with decimal commas

hledger print [-C|--cleared] --commodity '1000, EUR' --round hard

Write transactions from `foo.journal` as a CSV file

hledger print [-f|--file] path/to/foo.journal [-o|--output-file] path/to/output_file.csv
made by @shridhargupta | data from tldr-pages