digital garden of reflections, hopes and fears

home

default

ledger

Ledger is a double-entry accounting system for the command-line. Ledger written by John Wiegley. It has also inspired several ports to other languages.

To get started with Ledger, add your financial transactions to a text file in Ledger’s own textual format. Here’s what a single transaction might look like:

2015/10/12 Exxon
    Expenses:Auto:Gas         $10.00
    Liabilities:MasterCard   $-10.00

You use the ledger command line program to see the balance of your accounts:

$ ledger -f your-file.dat balance
              $10.00  Expenses:Auto:Gas
             $-10.00  Liabilities:MasterCard
--------------------
                   0

or the history of a particular account:

$ ledger -f your-file.dat register Expenses
15-Oct-12 Exxon               Expenses:Auto:Gas          $10.00      $10.00

Read more about Ledger’s features.