Prerequisite: having read how to use weboob command-line tools page.

Weboob sub-commands can be passed on the command-line of a weboob command. For example boobank ls will run the ls sub-command of boobank.

Using an appropriate formatter (-f is the equivalent of formatter) and selecting fields (-s is the equivalent of select) helps parsing the output. For example, to sum the balance of all accounts using boobank:

  • Using CSV format: boobank -f csv -s balance --no-header | awk '{sum += $1} END{print sum}'
  • Using JSON format: boobank -f json | pjy 'sum(acc.balance for acc in data)'

Choosing a subset of the backends can be done with the -b option.