16 Queries are used on all commands (`bal`, `reg`, etc). [(docs)](http://hledger.org/manual.html#queries)
19 Assets # An account (regex)
21 ^Assets # Starting with Assets (eg, not 'Expenses:Assets')
23 acctonly:A # no subaccounts
25 amt:2000 # amount (in absolute value)
26 amt:<200 # amount comparison (in absolute value)
27 amt:<+200 # amount comparison
30 desc:REGEX # description
31 code:REGEX # transaction code (check number?)
36 real:0 # virtual posts
39 not:... # eg, not:status:!
42 ### Filter by status/type
45 real:1 # -R, --real, no virtuals
47 status:* # -C, --cleared
52 For dates and intervals (see above).
56 date:2015/01/01- # -b, --begin
57 date:-2015/01/01 # -e, --end
64 -p "2009/01/01 to 2009/12/31"
65 -p "2009/01/01to2009/12/31" # spaces optional
68 -p "weekly" # -W, --weekly
69 -p "weekly 2009/01/01 to 2009/12/31"
73 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).
84 Used for `--period`, `--begin` and `--end` (`-p` `-b` `-e`).
113 --depth 2 # collapse those under this depth
114 --drop 1 # drop top-level accounts
115 -B, --cost # convert to default currency
116 -E, --empty # don't strip out $0 accounts
117 --date2 # use date2 when available
121 When used with intervals (like `--weekly`):
128 Also: (only in `bal`)
131 --cumulative # show ending balance per period
132 -I, --historical # like --cumulative but only for --begin
140 hledger accounts [--tree]
146 hledger balancesheet # bs
147 hledger incomestatement # is
148 hledger cashflow # cf
161 hledger balancesheet Assets [--cleared --cost --empty -e tomorrow]
162 # ...discard future stuff; convert foreign currencies
164 # Monthly changes in assets
165 hledger bal Assets Liabilities --monthly --tree --historical [--cleared --cost --empty -e tomorrow]
168 hledger bal Expenses --weekly --average --tree -b 'last month' [--cleared --cost --empty -e tomorrow]
173 * <http://hledger.org/manual.html>
174 * <http://ledger-cli.org/3.0/doc/ledger3.html>