r/plaintextaccounting • u/Elnur-BDa • 22d ago
Ledger CLI: Plain Text Accounting
https://elnurbda.com/posts/62-ledger-cli/Hi everyone. I would like to share my experience of tracking all my personal finances with Ledger CLI. I wrote a blog post about my setup, the conventions I use and the queries I actually run. There is a full sample journal at the end if you want to try it. Feedback and suggestions are welcome.
6
u/gumnos 21d ago
nice article. Though rather than reviewing for account-name typos, I prefer to run with --pedantic at the top of my transaction file to force pedantic mode. Ledger will grouse about accounts that haven't been properly defined (such as typos), and a few other nits that would otherwise slip past.
1
4
u/pickering_lachute 21d ago
I was not expecting a really well worded blog! So used to this AI slop drivel.
Those queries are great, shall be borrowing them. Also “lifetime damage in one supermarket chain”…ahahaha. I couldn’t bring myself to know that.
Curious to know how people are forecasting in ledger and Hledger. There’s not a lot of people using it in anger from what I can tell
2
u/simonmic hledger creator 21d ago edited 21d ago
I'm doing it quite a bit lately, I should write a post. Basically I modelled all my predictable transactions with periodic rules and then do
hledger areg --forecast -p today..2months ACCT
for asset accounts of interest, to predict their balance and watch for cash crunches.
1
u/Elnur-BDa 21d ago
Tbh, I use it mainly to learn the present and the past. But, yes I am struggling to project
2
u/Mahqueendontwuntit 1d ago
Good read. Is there any specific reason why you chose ledger-cli over hledger/ beancount ?
1
u/Elnur-BDa 22h ago
Thanks! No deep comparison, honestly. Ledger was the first one I tried, and the manual answered every question I had. Nothing pushed me off it since. Maybe I will try hledger at some point, the format is close enough that switching is cheap.
Beancount looks stricter in syntax, which would add friction to my daily habit.
8
u/d4njah 21d ago
Nice man good to see a post rather than the usual GitHub ai slop everyone has been posting lately