LinuxCommandLibrary

hledger-accounts

List account names.

TLDR

Show all accounts used or declared in the default journal file

$ hledger accounts
copy


Show accounts used by transactions
$ hledger accounts --used
copy


Show accounts declared with account directives
$ hledger accounts --declared
copy


Add new account directives, for accounts used but not declared, to the journal
$ hledger accounts --undeclared --directives >> [2024-accounts.journal]
copy


Show accounts with asset in their name, and their declared/inferred types
$ hledger accounts asset --types
copy


Show accounts of the Asset type
$ hledger accounts type:A
copy


Show the first two levels of the accounts hierarchy
$ hledger accounts --tree --depth 2
copy


Short form of the above
$ hledger acc -t -2
copy

Copied to clipboard