Forrest logo
back to the hledger tool

hledger:tldr:66753

hledger: Show the account hierarchy, using a specific journal file.
$ hledger --file ${filename-journal} accounts --tree
try on your machine

This command is using the hledger tool to generate a tree-like representation of the accounts in a journal file.

  • hledger is a command-line accounting tool used to manage financial transactions and generate reports.
  • --file ${filename-journal} is an option used to specify the journal file to be used. ${filename-journal} is a placeholder that should be replaced with the actual filename (including its path) of the journal file you want to analyze.
  • accounts is a subcommand of hledger used to list all the accounts in the journal file.
  • --tree is an option used to display the accounts in a hierarchical tree format, with parent accounts and their child accounts indented underneath. This helps to visualize the account structure and hierarchy in a more organized way.
This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the hledger tool