DEV Community

Cover image for Easy Ledger CLI: a management tool for ledger-cli ledgers
Mikael
Mikael

Posted on

Easy Ledger CLI: a management tool for ledger-cli ledgers

Hey all!

I recently started using ledger-cli, a Fat-free Accounting tool.
In their own words:

What it does offer is a double-entry accounting journal with all the flexibility and muscle of its modern day cousins, without any of the fat.
Enter fullscreen mode Exit fullscreen mode

Check their github for more details. It's really a great concept and lovely to use for reporting and tracking your accounting.

The only caveat for me is the commands you type to append transactions to your ledger can get quite long and tedious. One of the main "issues" from the command line interface is that you have to write your ledger file path every time you enter a transaction (yes, the DB is a simple text file 😊). The author of ledger did add a ledger-mode allowing you to use shortcuts and syntax highlighting in order to ease the management of the ledger file, but I do not want to work from a file and would much rather add my transactions via cli in an easy, clean and straight forward way. I also do not want to know about my actual ledger file, why should I manage it myself?

In order to fix this, I wrote a very basic cli (for now) that allows you to:

  • manage multiple ledgers (think one for your company, one for yourself)
  • seamlessly switch between those
  • add stocks and transactions in an interactive way

In the near future I plan to support all supported transaction types and details as well as adding a few basic reports and maybe the ability to pre-configure your own ledger commands.

Give it a try, let me know what you think, contribute!
Link to the npm package

Top comments (0)