LinuxCommandLibrary

hledger-accounts

lists account names from the journal

TLDR

List all accounts

$ hledger accounts
copy
List accounts from specific file
$ hledger accounts -f [journal.ledger]
copy
List accounts matching pattern
$ hledger accounts [expenses]
copy
List with depth limit
$ hledger accounts --depth [2]
copy
Show account tree
$ hledger accounts --tree
copy
List used accounts only
$ hledger accounts --used
copy

SYNOPSIS

hledger accounts [options] [query]

DESCRIPTION

hledger accounts lists account names from the journal. Part of the hledger plain text accounting tool. Accounts can be filtered by query pattern, limited by depth, and displayed as a flat list or tree. Use with --used to see only accounts that have transactions.

PARAMETERS

-f, --file file

Use specified journal file.
--depth n
Limit account depth shown.
--tree
Show accounts as tree structure.
--used
Show only accounts with transactions.
--declared
Show only declared accounts.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community