10 - <https://hledger.org>
11 - <https://hledger.org/quickstart.html>
24 Queries are used on all commands (`bal`, `reg`, etc). [(docs)](http://hledger.org/manual.html#queries)
27 Assets # An account (regex)
29 ^Assets # Starting with Assets (eg, not 'Expenses:Assets')
31 acctonly:A # no subaccounts
33 amt:2000 # amount (in absolute value)
34 amt:<200 # amount comparison (in absolute value)
35 amt:<+200 # amount comparison
38 desc:REGEX # description
39 code:REGEX # transaction code (check number?)
44 real:0 # virtual posts
47 not:... # eg, not:status:!
50 ### Filter by status/type
53 real:1 # -R, --real, no virtuals
55 status:* # -C, --cleared
60 For dates and intervals (see above).
64 date:2015/01/01- # -b, --begin
65 date:-2015/01/01 # -e, --end
72 -p "2009/01/01 to 2009/12/31"
73 -p "2009/01/01to2009/12/31" # spaces optional
76 -p "weekly" # -W, --weekly
77 -p "weekly 2009/01/01 to 2009/12/31"
81 Used on all commands (`bal`, `reg`, etc). Displays in multi-column mode. In `ledger-cli`, only `reg` is supported. Can also specified via `-p` (period).
92 Used for `--period`, `--begin` and `--end` (`-p` `-b` `-e`).
121 --depth 2 # collapse those under this depth
122 --drop 1 # drop top-level accounts
123 -B, --cost # convert to default currency
124 -E, --empty # don't strip out $0 accounts
125 --date2 # use date2 when available
129 When used with intervals (like `--weekly`):
136 Also: (only in `bal`)
139 --cumulative # show ending balance per period
140 -I, --historical # like --cumulative but only for --begin
148 hledger accounts [--tree]
154 hledger balancesheet # bs
155 hledger incomestatement # is
156 hledger cashflow # cf
169 hledger balancesheet Assets [--cleared --cost --empty -e tomorrow]
170 # ...discard future stuff; convert foreign currencies
172 # Monthly changes in assets
173 hledger bal Assets Liabilities --monthly --tree --historical [--cleared --cost --empty -e tomorrow]
176 hledger bal Expenses --weekly --average --tree -b 'last month' [--cleared --cost --empty -e tomorrow]
181 * <http://hledger.org/manual.html>
182 * <http://ledger-cli.org/3.0/doc/ledger3.html>