HLEDGER-UI(1)
๐ NAME ๐
hledger-ui โ terminal interface (TUI) for hledger, a robust, friendly plain text accounting app. ๐ซถ
This page is HLEDGER-UI(1), straight outta the hledger User Manuals. ๐
โจ SYNOPSIS โจ
hledger-ui [OPTS] [QUERYARGS]
or
hledger ui [OPTS] [QUERYARGS]
๐ธ DESCRIPTION ๐ธ
Okay so this manual is for hledger's terminal interface, version 1.52.4. ๐ Also, bestie, check the hledger manual for common concepts and file formats โ it's giving essential context.
hledger is a robust, user-friendly, cross-platform set of programs for tracking money, time, or any other commodity, using double-entry accounting and a simple, editable file format. It's inspired by and largely compatible with ledger(1), and largely interconvertible with beancount(1). No cap, that's the whole vibe. โจ
hledger-ui is hledger's terminal interface โ an efficient full-window text UI for viewing accounts and transactions, plus some limited data entry capability. It's easier than hledger's command-line interface, and sometimes quicker and more convenient than the web interface. Lowkey iconic. ๐
Like hledger, it reads from (and appends to) a journal file specified by the LEDGER_FILE environment variable (defaulting to $HOME/.hledger.journal); or you can specify files with -f options. It can also read timeclock files, timedot files, or any CSV/SSV/TSV file with a date field. (See hledger(1) -> Input for details.) ๐ฆ
Unlike hledger, hledger-ui hides all future-dated transactions by default. They can be revealed, along with any rule-generated periodic transactions, by pressing the F key (or starting with --forecast) to enable "forecast mode". Future you is still main character energy, just hidden until you ask. ๐
๐ OPTIONS ๐
Any arguments are interpreted as a hledger query which filters the data. hledger-ui provides the following options:
๐ Flags
-w,--watchโ watch for data and date changes and reload automatically ๐--theme=THEMEโ use this custom display theme (light,dark,terminal,greenterm) ๐จ--cashโ start in the cash accounts screen ๐ธ--bsโ start in the balance sheet accounts screen ๐งพ--isโ start in the income statement accounts screen ๐--allโ start in the all accounts screen ๐--register=ACCTREGEXโ start in the (first matched) account's register ๐--changeโ show period balances (changes) at startup instead of historical balances ๐-l,--flatโ show accounts as a flat list (default) ๐-t,--treeโ show accounts as a tree ๐ณ
๐ General input/data transformation flags
-f,--file=[FMT:]FILEโ Read data fromFILE, or from stdin ifFILEis-, inferring format from extension or aFMT:prefix. Can be specified more than once. If not specified, reads from$LEDGER_FILEor$HOME/.hledger.journal. ๐--rules=RULESFILEโ Use rules defined in this rules file for converting subsequent CSV/SSV/TSV files. If not specified, usesFILE.csv.rulesfor eachFILE.csv. ๐--alias=A=B|/RGX/=RPLโ transform account names fromAtoB, or by replacing regular expression matches ๐--autoโ generate extra postings by applying auto posting rules ("=") to all transactions โ๏ธ--forecast[=PERIOD]โ Generate extra transactions from periodic rules ("~"), from after the latest ordinary transaction until 6 months from now. Or, during the specifiedPERIOD(the equals is required). Auto posting rules will also be applied to these transactions. Inhledger-ui, also make future-dated transactions visible at startup. ๐ฎ-I,--ignore-assertionsโ don't check balance assertions by default ๐ซ--txn-balancing=...โ how to check that transactions are balanced:'old': use global display precision;'exact': use transaction precision (default) โ๏ธ--infer-costsโ infer conversion equity postings from costs ๐ฑ--infer-equityโ infer costs from conversion equity postings ๐งฎ--infer-market-pricesโ infer market prices from costs ๐--pivot=TAGNAMEโ use a different field or tag as account names ๐-s,--strictโ do extra error checks (and override-I) ๐จ--verbose-tagsโ add tags indicating generated/modified data ๐ท๏ธ
๐ General output/reporting flags (supported by some commands)
-b,--begin=DATEโ include postings/transactions on/after this date ๐-e,--end=DATEโ include postings/transactions before this date (with a report interval, will be adjusted to following subperiod end) ๐๏ธ-D,--dailyโ multiperiod report with 1 day interval โ๏ธ-W,--weeklyโ multiperiod report with 1 week interval ๐๏ธ-M,--monthlyโ multiperiod report with 1 month interval ๐-Q,--quarterlyโ multiperiod report with 1 quarter interval ๐-Y,--yearlyโ multiperiod report with 1 year interval ๐-p,--period=PERIODEXPโ set begin date, end date, and/or report interval, with more flexibility ๐๏ธ--today=DATEโ override today's date (affects relative dates) โฐ--date2โ match/use secondary dates instead (deprecated) โ ๏ธ-U,--unmarkedโ include only unmarked postings/transactions โช-P,--pendingโ include only pending postings/transactions ๐ก-C,--clearedโ include only cleared postings/transactions ๐ข (-U/-P/-Ccan be combined)-R,--realโ include only non-virtual postings ๐งฑ-E,--emptyโ Show zero items, which are normally hidden. Inhledger-ui&hledger-web, do the opposite. ๐ซฅ--depth=DEPTHEXPโ if a number (or-NUM): show only topNUMlevels of accounts. IfREGEXP=NUM, only apply limiting to accounts matching the regular expression. ๐ช-B,--costโ show amounts converted to their cost/sale amount ๐ฐ-V,--marketโ Show amounts converted to their value at period end(s) in their default valuation commodity. Equivalent to--value=end. ๐-X,--exchange=COMMโ Show amounts converted to their value at period end(s) in the specified commodity. Equivalent to--value=end,COMM. ๐ฑ--value=WHEN[,COMM]โ show amounts converted to their value on the specified date(s) in their default valuation commodity or a specified commodity.WHENcan be:'then': value on transaction dates;'end': value at period end(s);'now': value today;YYYY-MM-DD: value on given date. ๐ฐ๏ธ-c,--commodity-style=Sโ Override a commodity's display style. Eg:-c '.'or-c '1.000,00 EUR'๐--pretty[=YN]โ Use box-drawing characters in text output? Can be'y'/'yes'or'n'/'no'. IfYNis specified, the equals is required. ๐ผ๏ธ
โจ General help flags
-h,--helpโ show command line help ๐--tldrโ show command examples with tldr ๐--infoโ show the manual with info ๐--manโ show the manual with man ๐--versionโ show version information ๐--debug=[1-9]โ show this much debug output (default:1) ๐--pager=YNโ use a pager when needed ?y/yes(default) orn/no๐--color=YNA,--colourโ use ANSI color ?y/yes,n/no, orauto(default) ๐
With hledger-ui, the --debug option sends debug output to a hledger-ui.log file in the current directory. ๐ซถ
If you use the bash shell, you can auto-complete flags by pressing TAB in the command line. If this is not working see Install > Shell completions. โจ๏ธ
๐ฑ๏ธ MOUSE ๐ฑ๏ธ
In most modern terminals, you can navigate through the screens with a mouse or touchpad:
- Use mouse wheel or trackpad to scroll up and down ๐
- Click on list items to go deeper ๐
- Click on the left margin (column
0) to go back. โฌ ๏ธ
๐ KEYS ๐
Okay bestie, the keyboard is where the real power lives. Mouse is cute, keys are iconic. ๐
? pulls up a help dialog listing all the keys. (Some of them also show up in the quick help down at the bottom of each screen, so you're never fully lost.) Press ? again โ or ESCAPE, or LEFT, or q โ to close it. The following keys work on most screens:
The cursor keys navigate, obviously: RIGHT or ENTER goes deeper ๐ณ๏ธ, LEFT goes back to the previous screen, and UP/DOWN/PGUP/PGDN/HOME/END move you up and down through lists. J/K jump down/up 10 items at a time, because scrolling one by one is giving "loading screen" energy. Emacs-style (CTRL-p/CTRL-n/CTRL-f/CTRL-b) and VI-style (k,j,l,h) movement keys are supported too. Everyone eats. ๐ฝ๏ธ
Tip: movement speed is limited by your keyboard repeat rate โ so if you wanna go faster you may want to adjust it. On a mac, the Karabiner app is one way to do that.
/ lets you set a general filter query limiting the data shown, using the same query terms as in hledger and hledger-web. While you're editing the query, you can use CTRL-a/e/d/k, BS, cursor keys; press ENTER to set it, or ESCAPE to cancel. There are also keys for quickly adjusting some common filters like account depth and transaction status (more on those below ๐). BACKSPACE or DELETE removes all filters, showing all transactions. Clean slate, fresh start, we love to see it. โจ
Like I said earlier, by default hledger-ui hides future transactions โ both ordinary transactions recorded in the journal, and periodic transactions generated by rule. F toggles forecast mode, where future/forecasted transactions get shown. ๐ฎ
Pressing SHIFT-DOWN narrows the report period, and pressing SHIFT-UP expands it again. When it's narrowed, the current report period is displayed in the header line, pressing SHIFT-LEFT or SHIFT-RIGHT moves to the previous or next period, and pressing T sets the period to "today". If you're using -w/--watch and viewing a narrowed period containing today, the view will follow any changes in system date (moving to the period containing the new date). (These keys work only with the standard Julian calendar year/quarter/month/week/day periods; they are not affected by a custom report interval specified at the command line.) ๐
You can also specify a non-standard period with / and a date: query โ but heads up, in this case the period is not movable with the arrow keys.
Tip: arrow keys with Shift do not work out of the box in all terminal software. Eg in Apple's Terminal, theSHIFT-DOWNandSHIFT-UPkeys must be configured as follows: in Terminal's preferences, click Profiles, select your current profile on the left, click Keyboard on the right, click+and add this forSHIFT-DOWN:\033[1;2B, click+and add this forSHIFT-UP:\033[1;2A. In other terminals (Windows Terminal ?) you might need to configureSHIFT-RIGHTandSHIFT-LEFTto emit\033[1;2Cand\033[1;2Drespectively.
ESCAPE resets the UI state and jumps back to the top screen, restoring the app's initial state at startup. Or, it cancels minibuffer data entry or the help dialog. It's the "nvm, take me back" key and honestly same. ๐โโ๏ธ๐จ
CTRL-l redraws the screen and centers the selection if possible (selections near the top won't be centered, since we don't scroll above the top). No cap.
g reloads from the data file(s) and updates the current screen and any previous screens. (With large files, this could cause a noticeable pause. ๐)
I toggles balance assertion checking. Disabling balance assertions temporarily can be useful for troubleshooting. (If hledger-ui was started with a --pivot option, re-enabling balance assertions with the I key also reloads the journal, like g.)
a runs command-line hledger's add command, and reloads the updated file. This allows some basic data entry. ๐
A is like a, but runs the hledger-iadd tool, which provides a terminal interface. This key will be available if hledger-iadd is installed in $path.
E runs $HLEDGER_UI_EDITOR, or $EDITOR, or a default (emacsclient -a "" -nw) on the journal file. With some editors (emacs, vi), the cursor will be positioned at the current transaction when invoked from the register and transaction screens, and at the error location (if possible) when invoked from the error screen. Cursor goes exactly where you need it, we love an editor with aim. ๐ฏ
B toggles cost mode, showing amounts converted to their cost's commodity (see hledger manual > Cost reporting).
V toggles value mode, showing amounts converted to their market value (see hledger manual > Valuation flag). More specifically:
- By default, the
Vkey toggles showing end value (--value=end) on or off. The valuation date will be the report end date if specified, otherwise today. - If you started hledger-ui with some other valuation (such as
--value=then,EUR), theVkey toggles that off or on.
Cost/value tips:
- When showing end value, you can change the report end date without restarting, by pressing
/and adding a query likedate:..YYYY-MM-DD. - Either cost mode, or value mode, can be active, but not both at once. Cost mode takes precedence. ๐
- There's not yet any visual indicator that cost or value mode is active, other than the amount values. (iykyk vibes only, the numbers are the whole personality.)
q quits the application. Bye bestie, slay, see you never (until you run it again). ๐
Additional screen-specific keys are described below.
๐ฅ๏ธ SCREENS ๐ฅ๏ธ
At startup, hledger-ui shows a menu screen by default. From here you can navigate to other screens using the cursor keys: UP/DOWN to select, RIGHT to move to the selected screen, LEFT to return to the previous screen. Or you can use ESC to return directly to the top menu screen. ๐งญ
You can also use a command line flag to specific a different startup screen (--cs, --bs, --is, --all, or --register=ACCT).
๐ฝ๏ธ Menu screen
This is the top-most screen. From here you can navigate to several screens listing accounts of various types. Note some of these may not show anything until you have configured account types. (No data? No vibes. Configure first, bestie.)
๐ธ Cash accounts screen
This screen shows "cash" (ie, liquid asset) accounts (like hledger balancesheet type:c). It always shows balances (historical ending balances on the date shown in the title line).
โ๏ธ Balance sheet accounts screen
This screen shows asset, liability and equity accounts (like hledger balancesheetequity). It always shows balances.
๐ Income statement accounts screen
This screen shows revenue and expense accounts (like hledger incomestatement). It always shows changes (balance changes in the period shown in the title line).
๐๏ธ All accounts screen
This screen shows all accounts in your journal (unless filtered by a query; like hledger balance). It shows balances by default; you can toggle showing changes with the H key.
๐ Register screen
This screen shows the transactions affecting a particular account. Each line represents one transaction, and shows:
- the other account(s) involved, in abbreviated form. (If there are both real and virtual postings, it shows only the accounts affected by real postings.)
- the overall change to the current account's balance; positive for an inflow to this account, negative for an outflow.
- the running total after the transaction. With the
Hkey you can toggle between- the period total, which is from just the transactions displayed
- or the historical total, which includes any undisplayed transactions before the start of the report period (and matching the filter query if any). This will be the running historical balance (what you would see on a bank's website, eg) if not disturbed by a query.
Note, this screen combines each transaction's in-period postings to a single line item, dated with the earliest in-period transaction or posting date (like hledger's aregister). So custom posting dates can cause the running balance to be temporarily inaccurate. (See hledger manual > aregister and posting dates.) ๐ญ it's fine, it's documented, it's fine.
Transactions affecting this account's subaccounts will be included in the register if the accounts screen is in tree mode, or if it's in list mode but this account has subaccounts which are not shown due to a depth limit. In other words, the register always shows the transactions contributing to the balance shown on the accounts screen. Tree mode/list mode can be toggled with t here also.
U toggles filtering by unmarked status, showing or hiding unmarked transactions. Similarly, P toggles pending transactions, and C toggles cleared transactions. (By default, transactions with all statuses are shown; if you activate one or two status filters, only those transactions are shown; and if you activate all three, the filter is removed. So the third toggle just yeets the whole filter, iconique.)
R toggles real mode, in which virtual postings are ignored.
z toggles nonzero mode, in which only transactions posting a nonzero change are shown (hledger-ui shows zero items by default, unlike command-line hledger). Zero items are NOT it, turn on z if you're a hater. ๐
Press RIGHT to view the selected transaction in detail.
๐งพ Transaction screen
This screen shows a single transaction, as a general journal entry, similar to hledger's print command and journal format (hledger_journal(5)).
The transaction's date(s) and any cleared flag, transaction code, description, comments, along with all of its account postings are shown. Simple transactions have two postings, but there can be more (or in certain cases, fewer).
UP and DOWN will step through all transactions listed in the previous account register screen. In the title bar, the numbers in parentheses show your position within that account register. They will vary depending on which account register you came from (remember most transactions appear in multiple account registers). The #N number preceding them is the transaction's position within the complete unfiltered journal, which is a more stable id (at least until the next reload).
On this screen (and the register screen), the E key will open your text editor with the cursor positioned at the current transaction if possible.
๐จ Error screen
This screen will appear if there is a problem, such as a parse error, when you press g to reload. Once you have fixed the problem, press g again to reload and resume normal operation. (Or, you can press escape to cancel the reload attempt.) We do not panic, we read the error, we fix, we reload, we move on. Main character energy. ๐
โจ
๐ฆ WATCH MODE ๐ฆ
okay so this is genuinely one of hledger-ui's best features and I need you to be seated for it: the auto-reloading -w/--watch mode. bestie. with this flag on, it just updates the display automatically whenever changes get saved to the data files. no refresh button, no drama, it just knows. โจ
this is SO useful when you're reconciling, like actually life-changing. the workflow that slaps is: have your bank's online register open in a browser window for reference, the journal file open in an editor window, and hledger-ui in watch mode chilling in a terminal window. it's giving three-window main character energy:
$ hledger-ui --watch --register checking -C
as you mark things cleared in the editor, you see the effect immediately โ no context switching, no mental gymnastics. that leaves so much more mental bandwidth for your accounting, which is the whole point. ๐
and no cap, you can still interact with hledger-ui whenever you want โ toggle cleared mode, explore the history, all of it. watch mode doesn't lock you out or anything. ๐
--watch problems
BUT. ๐ญ there are limitations and unresolved bugs with --watch, and I'm gonna be real with you about them:
- it may not work at all for you, depending on platform or system configuration. on some unix systems, increasing
fs.inotify.max_user_watchesorfs.file-maxparameters in/etc/sysctl.confmight help. (#836) - it may not detect changes made from outside a virtual machine, ie by an editor running on the host system.
- it may not detect file changes on certain less common filesystems.
- it may use increasing CPU and RAM over time, especially with large files. (this is probably not
--watchspecific โ you may be able to reproduce it by pressing g repeatedly.) (#1825)
tips and workarounds, because I would never leave you hanging:
- if
--watchwon't work for you, press g to reload data manually instead. lowkey iconic fallback tbh. - if
--watchis leaking resources over time, quit and restart (or suspend and resume) hledger-ui when you're not using it. - when running hledger-ui inside a VM, also make file changes inside the VM.
- when working with files mounted from another machine, make sure the system clocks on both machines are roughly in agreement. โฐ
๐ธ ENVIRONMENT ๐ธ
LEDGER_FILEโ the main journal file to use when it's not specified with-f/--file. default:$HOME/.hledger.journal. ๐
๐ BUGS ๐
we welcome bug reports, fr fr โ drop them in the hledger issue tracker (https://bugs.hledger.org), or on the hledger chat or mail list (https://hledger.org/support). we're nice about it, I promise. ๐ซถ
some known issues, so you're not surprised:
-f-doesn't work (hledger-ui can't read from stdin). rude, I know.--watchis not robust, especially with large files (see WATCH MODE above).- if you press g with large files, there could be a noticeable pause with the UI unresponsive. just... give it a sec. ๐
๐ AUTHORS ๐
Simon Michael <simon@joyful.com> and contributors. See http://hledger.org/CREDITS.html
๐ COPYRIGHT ๐
Copyright 2007-2023 Simon Michael and contributors.
โญ LICENSE โญ
Released under GNU GPL v3 or later.
๐ฆ SEE ALSO ๐ฆ
hledger(1), hledger-ui(1), hledger-web(1), ledger(1)
and that's the whole page, bestie! this edition is hledger-ui-1.52.4, dated August 2026 โ screenshot it, bookmark it, tattoo it on your forearm, whatever works. now go reconcile something and slay. ๐โจ๐
๐ฆ where this page comes from
- arch rolling: hledger-ui 1.52.4-44 ยท GPL-3.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms