A simple double entry bookkeeping command line application.
To build from source make sure you have JDK 17 or higher available.
./gradlew distTar
Running tests
./gradlew test
Once you have built the distribution, you can "install" the application using ./gradlew install
,
which will set the application at build/install/pf/bin
. From here you can run using ./pf
.
# Create account
$ ./pf add-account Expense:Groceries -c USD -t EXPENSE -d 'all groceries go here'
# List accounts
$ ./pf list-accounts
# Mapping allows loader to categories the transactions automatically
# This example allows you to categorise all transactions described as 'food mart'
# to Expense:Groceries
$ ./pf add-mapping -d 'food mart' -t Expense:Groceries
# List all the mappings
$ ./pf list-mappings
# importing/loading transactions from a csv file
$ ./pf load -a Income:Salary --date-field 1 --desc-field 2 --amount-field 3 -f input.csv