Commands

Every command, argument and option of bundeshaushalt 0.0.7, read from the CLI itself.

Global options

These options work with every command.

OptionDescriptionDefault
-V, --version output the version number
--base-url <url> API base URL https://bundeshaushalt.de
--timeout <ms> time limit per request in milliseconds, whole response included 30000
--user-agent <ua> User-Agent header value
--max-retries <n> retries for transient 429/503 responses 2
--max-response-bytes <n> cap response body size in bytes (0 = unlimited; 100 MiB) 104857600
--compact print JSON on a single line instead of pretty-printed

bundeshaushalt budget

Federal budget data (account: expenses | income)

bundeshaushalt budget [options] <year> <account>

Arguments

<year> required
<account> required

Options

OptionDescriptionDefault
--quota <quota> planned vs realised (default target) Choices: target, actual
--unit <unit> how elements are grouped (default single) Choices: single, function, group
--id <id> budget number id ("G-" prefix for groups, "F-" for functions)

bundeshaushalt expenses

Federal expenses for a year (shortcut)

bundeshaushalt expenses [options] <year>

Arguments

<year> required

Options

OptionDescriptionDefault
--quota <quota> planned vs realised (default target) Choices: target, actual
--unit <unit> how elements are grouped (default single) Choices: single, function, group
--id <id> budget number id ("G-" prefix for groups, "F-" for functions)

bundeshaushalt income

Federal income for a year (shortcut)

bundeshaushalt income [options] <year>

Arguments

<year> required

Options

OptionDescriptionDefault
--quota <quota> planned vs realised (default target) Choices: target, actual
--unit <unit> how elements are grouped (default single) Choices: single, function, group
--id <id> budget number id ("G-" prefix for groups, "F-" for functions)