Scroll to navigation

WEBOOB-CLI(1) General Commands Manual WEBOOB-CLI(1)

NAME

weboob-cli - call a method on backends

SYNOPSIS

weboob-cli [-dqv] [-b backends] [-cnfs] capability method [arguments..]
weboob-cli [--help] [--version]

DESCRIPTION

Weboob-Cli is a console application to call a specific method on backends which implement the given capability.

OPTIONS

show program's version number and exit
show this help message and exit
what backend(s) to enable (comma separated)
what backend(s) to exclude (comma separated)
do not validate SSL
Use NSS instead of OpenSSL

LOGGING OPTIONS

display debug messages. Set up it twice to more verbosity
display only error messages
display info messages
file to save logs
save every response
log browser session cookies after login

RESULTS OPTIONS

filter result items to display given a boolean expression. See CONDITION section for the syntax
limit number of results (from each backends)
select result item keys to display (comma separated)

FORMATTING OPTIONS

select output formatter (csv, htmltable, json, json_line, multiline, simple, table, webkit)
do not display header
do not display item keys
file to export result

CONDITION

The -c and --condition is a flexible way to filter and get only interesting results. It supports conditions on numerical values, dates, durations and strings. Dates are given in YYYY-MM-DD or YYYY-MM-DD HH:MM format. Durations look like XhYmZs where X, Y and Z are integers. Any of them may be omitted. For instance, YmZs, XhZs or Ym are accepted. The syntax of one expression is "field operator value". The field to test is always the left member of the expression.

The field is a member of the objects returned by the command. For example, a bank account has "balance", "coming" or "label" fields.

The following operators are supported:

=
Test if object.field is equal to the value.
!=
Test if object.field is not equal to the value.
>
Test if object.field is greater than the value. If object.field is date, return true if value is before that object.field.
<
Test if object.field is less than the value. If object.field is date, return true if value is after that object.field.
|
This operator is available only for string fields. It works like the Unix standard grep command, and returns True if the pattern specified in the value is in object.field.

Expression combination

You can make a expression combinations with the keywords " AND ", " OR " an " LIMIT ".

The LIMIT keyword can be used to limit the number of items upon which running the expression. LIMIT can only be placed at the end of the expression followed by the number of elements you want.

Examples:

boobank ls --condition 'label=Livret A'

Display only the "Livret A" account.

boobank ls --condition 'balance>10000'
Display accounts with a lot of money.

boobank history account@backend --condition 'label|rewe'
Get transactions containing "rewe".

boobank history account@backend --condition 'date>2013-12-01 AND date<2013-12-09'
Get transactions betweens the 2th December and 8th December 2013.

boobank history account@backend --condition 'date>2013-12-01 LIMIT 10'
Get transactions after the 2th December in the last 10 transactions

COPYRIGHT

Copyright(C) 2010-2017 Romain Bignon

For full copyright information see the COPYING file in the weboob package.

FILES

"~/.config/weboob/backends"

SEE ALSO

Home page: http://weboob.org/applications/weboob-cli

20 September 2017 weboob-cli 1.3