TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ledger, a command-line accounting system

305 pointsby nodivbyzeroover 9 years ago

23 comments

zrailover 9 years ago
I&#x27;ve been using Ledger for almost nine years, both for my personal accounts and now my business accounts. I wrote some introductory articles about it, and further articles about how I use it day-to-day:<p><a href="https:&#x2F;&#x2F;www.petekeen.net&#x2F;finance" rel="nofollow">https:&#x2F;&#x2F;www.petekeen.net&#x2F;finance</a>
评论 #10511755 未加载
评论 #10513084 未加载
tectonicover 9 years ago
I use and love ledger, and wrote a Ruby wrapper a few years ago called reckon that applies Naive Bayes to your bank CSV (kind of link Mint.com) and outputs a ledger input file.<p><a href="http:&#x2F;&#x2F;blog.andrewcantino.com&#x2F;blog&#x2F;2013&#x2F;02&#x2F;16&#x2F;command-line-accounting-with-ledger-and-reckon&#x2F;" rel="nofollow">http:&#x2F;&#x2F;blog.andrewcantino.com&#x2F;blog&#x2F;2013&#x2F;02&#x2F;16&#x2F;command-line-a...</a>
评论 #10512688 未加载
评论 #10511915 未加载
评论 #10511484 未加载
评论 #10511768 未加载
roel_vover 9 years ago
I&#x27;ve used ledger for years, but it&#x27;s not a &#x27;real&#x27; double entry system, despite what the manual says. It&#x27;s more halfway between cash and double entry. The &#x27;auto balancing&#x27; for example, which is sold as its big feature, doesn&#x27;t make sense from a double accounting perspective - the whole <i>point</i> is to not have it be &#x27;auto&#x27;. Other basic things are missing - the difference balance and profit&#x2F;loss accounts, for example. It&#x27;s fine for personal and small business accounting, but if you&#x27;ve had training in real accounting some things will be confusing (because of terms meaning something else) and don&#x27;t expect your accountant to be able to work with your reports if you haven&#x27;t set up your system in cooperation with him&#x2F;her.
评论 #10513355 未加载
评论 #10515941 未加载
danpatover 9 years ago
I wrote a small, single-script clone in Python:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;danpat&#x2F;uledger" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;danpat&#x2F;uledger</a><p>I wanted to be able to group all my assertions together. This means the assertion needs to be able to retroactively calculate the balance on a given date. ledger-cli&#x27;s assert doesn&#x27;t support this. hledger does, but, well, I&#x27;m not a Haskell guy and the whole Haskell ecosystem seemed...cumbersome...to install.<p>uledger supports a useful-to-me subset of ledger-cli, primarily nested accounts, multiple currencies and out-of-order assertions and transaction entry. It has a bunch of tests and a very simple web balance interface. My favourite feature is the accounting-equation balance feature:<p><pre><code> 2015-01-01 Opening Balance Equity:Owners Contributions $-100 Assets:Bank $100 2015-01-01 Buying widgets Liabilities:Credit Card $-50 Expenses:Parts 2015-01-03 Some Income Income:Consulting $-200 Assets:Bank $200 assert balance 2015-01-02 Expenses $50 assert equation 2015-01-04 Assets - Liabilities = Equity + Income - Expenses </code></pre> Feedback&#x2F;patches welcome.
sasvariover 9 years ago
as a side note: both ledger [0] and hledger [1] support time tracking&#x2F;keeping. of all the various tools I tried to use for personal stuff it has been the most convenient one for me (it helps that I also use it for accounting) and I&#x27;m using it consequently from day 1 on! you can apply the same reporting&#x2F;balancing to your time keeping as you do to your accounting.<p>[0] <a href="http:&#x2F;&#x2F;www.ledger-cli.org&#x2F;3.0&#x2F;doc&#x2F;ledger3.html#Time-Keeping" rel="nofollow">http:&#x2F;&#x2F;www.ledger-cli.org&#x2F;3.0&#x2F;doc&#x2F;ledger3.html#Time-Keeping</a><p>[1] <a href="http:&#x2F;&#x2F;hledger.org&#x2F;manual.html#timelog" rel="nofollow">http:&#x2F;&#x2F;hledger.org&#x2F;manual.html#timelog</a>
评论 #10511214 未加载
评论 #10512284 未加载
toomimover 9 years ago
And the author&#x2F;maintainer of Ledger just became the maintainer of Emacs, just today!!
评论 #10512420 未加载
clordover 9 years ago
Been using ledger for 9 years as well (hledger lately.) Never have a hitch. The only complaint I have is that I can&#x27;t (easily) keep AR in sync with online invoicing software. minor though. Would love to have some git-style integration with my bank and other accounts. `ledger pull savings` or `ledger pull invoices`
评论 #10511283 未加载
grhmcover 9 years ago
Previous discussion: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=7707262" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=7707262</a><p>Unaffiliated with, but an extremely pleased user of <a href="http:&#x2F;&#x2F;www.youneedabudget.com" rel="nofollow">http:&#x2F;&#x2F;www.youneedabudget.com</a>.
评论 #10510656 未加载
Dowwieover 9 years ago
There&#x27;s another open source project worth checking out called BeanCount. The author, Martin Blais, originally wrote it in Python to serve similar double entry bookkeeping needs as those from the ledger-cli community. He seems to be continuing development of it, or at least porting portions of it (plugins?) to a variety of languages.<p>homepage: <a href="http:&#x2F;&#x2F;furius.ca&#x2F;beancount&#x2F;" rel="nofollow">http:&#x2F;&#x2F;furius.ca&#x2F;beancount&#x2F;</a> source: <a href="https:&#x2F;&#x2F;bitbucket.org&#x2F;blais&#x2F;beancount&#x2F;overview" rel="nofollow">https:&#x2F;&#x2F;bitbucket.org&#x2F;blais&#x2F;beancount&#x2F;overview</a>
cpayneover 9 years ago
(Coming from a Windows background) I often wonder what the appeal is to something like this.<p>(Seriously!) Why would you use something like this over say a spreadsheet? Is it really much easier than opening a browser and running Google Docs???
评论 #10510639 未加载
评论 #10510570 未加载
评论 #10512279 未加载
评论 #10511129 未加载
评论 #10510542 未加载
评论 #10510716 未加载
评论 #10510654 未加载
评论 #10510589 未加载
评论 #10511159 未加载
评论 #10511039 未加载
ausjkeover 9 years ago
Heard about it and never really used it, should I start with ledger or hledger these days? any suggestions?
评论 #10511723 未加载
robotmachineover 9 years ago
I have been using Ledger for a long time and it has really been a wonderful tool. The reports are great. I even made a little Python script so I can easily make entries from terminal on my phone!
评论 #10512653 未加载
flatMover 9 years ago
Is it possible to attach a receipt (say scanned PDFs) to a Ledger entry? I am interested in ledger, would like it to be the accounting system for my side business, a bit more bookkeeping feature such as the receipt attachment would be great for tax filing purpose.<p>Edit: I know that Ledger uses plain text for each entry. Though I kind of wonder how do you guys keep those receipts.
评论 #10511742 未加载
评论 #10510869 未加载
评论 #10510872 未加载
colindeanover 9 years ago
I&#x27;ve used Ledger extensively for a side business as well as for timekeeping for work. It&#x27;s incredibly powerful and incredibly unforgiving.<p>If you want to keep PDF, JPG, etc. receipts with it, just put them in the same directory and note them in a comment. Additionally, use a VCS that does binaries well. Git does not.
评论 #10511546 未加载
评论 #10511455 未加载
评论 #10511027 未加载
评论 #10511764 未加载
javiercrover 9 years ago
This is very interesting. I&#x27;m involved in an open source project to create a Ruby gem to extract bank data from multiple banks and offer it via a CLI and a Ruby API. We fetch the data either from bank APIs (which often we discover through reverse engineering of mobile apps) or simple web scrapping.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;bankscrap&#x2F;bankscrap" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;bankscrap&#x2F;bankscrap</a><p>The project is still under heavy development but we already have support for 3 main banks in Spain. We also have managed to integrate it with Slack and other apps.<p>I am sure we can learn a lot from the Ledger CLI.
Fiahilover 9 years ago
I have been very interested by ledger lately, is there a wrapper, somewhere, that would ease interactions with my bank account and&#x2F;or allow me to plot reports graphically across time?
评论 #10510870 未加载
评论 #10511553 未加载
a3nover 9 years ago
A number of people here say use a VCS with ledger.<p>When do you commit? After every entry?<p>And do you have branches?
评论 #10511234 未加载
评论 #10511632 未加载
评论 #10512281 未加载
avodonosovover 9 years ago
I used ledger-cli, but as I constantly deal with several currencies, I can&#x27;t rely on it. Unfortunately, none of the open source accounting system I know support multi-currency accounting well.
评论 #10512239 未加载
评论 #10512947 未加载
rushabhover 9 years ago
There is also a nice php based simple accounting app for those looking for a slightly modern user interface.<p><a href="http:&#x2F;&#x2F;webzash.org&#x2F;" rel="nofollow">http:&#x2F;&#x2F;webzash.org&#x2F;</a> <a href="https:&#x2F;&#x2F;github.com&#x2F;prashants&#x2F;webzash" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;prashants&#x2F;webzash</a>
t0mkover 9 years ago
the tool looks great, thanks for the tip.<p>To whomever is using it, do you also capture VAT in ledger? VAT reporting is something I would also need.
nodesocketover 9 years ago
I like the idea of using ledger-cli for automation, but honestly, this needs a web-ui.
评论 #10510581 未加载
评论 #10510568 未加载
评论 #10510684 未加载
lancewiggsover 9 years ago
It&#x27;s got a high hack and giggle factor, but obviously horrible usability for anyone off the command line - which includes your accountant&#x2F;tax advisor.<p>Here in New Zealand essentially every start-up uses Xero - a SaaS accounting system that works extremely well and now has over 600k paying customers. It means one set of data, permanently in the cloud, and a host of integrations to other players.<p>Founders open up access at different levels - we can give read-only to directors and some investors, advisor-level access to accountants and bookkeepers and so forth.<p>Frankly it&#x27;s part of the NZ advantage right now (120000 or so of those customers are here) - we seem to be spawning a large series of smart, low cost B2SMB SaaS businesses, who are not just following Xero&#x27;s own path, but also using the tool to improve the way they do business.
评论 #10511076 未加载
Havocover 9 years ago
WHY?<p>There are a bunch of legit accounting packages out there. No need to re-invent the wheel or (in this case) clean the parade ground with a toothbrush. Off the shelf SME accounting package or if you really need it a proper ERP. Anything else is likely to end in tears.<p>Unless its for your one man show...in which case go wild with the CLI &#x2F; Excel custom rolled solutions &amp; sundry DIYs.<p>Source: Accountant
评论 #10510675 未加载
评论 #10510662 未加载
评论 #10510627 未加载
评论 #10510658 未加载
评论 #10510619 未加载