Commands

Every command, argument and option of ausbildungssuche 0.5.1, 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://rest.arbeitsagentur.de
--api-key <key> X-API-Key header value (env: AUSBILDUNGSSUCHE_API_KEY)
--timeout <ms> time limit per request in milliseconds, whole response included (default 30000; 0 = no limit)
--user-agent <ua> User-Agent header value
--max-retries <n> retries for transient 429/503 responses (0..10; each waits the server's Retry-After, up to 30 s)
--max-response-bytes <n> cap response body size in bytes (0 = unlimited; default 100 MiB)
--log-format <format> how errors, warnings and notes are written to stderr: text (log4j style: time, level, [topic], message) or jsonl (one JSON object per line: ts, level, topic, msg); default text
--compact print JSON on a single line instead of pretty-printed

ausbildungssuche obtain-key

Obtain the public X-API-Key this API requires and print it. The key is the same for everyone and not a secret; it is documented by the community project bundesAPI (github.com/bundesAPI/ausbildungssuche-api), not by the Bundesagentur für Arbeit. None is bundled with this package, so it is read from that README at run time.

ausbildungssuche obtain-key [options]

Options

OptionDescriptionDefault
--export print "export AUSBILDUNGSSUCHE_API_KEY=<key>" for use with eval

ausbildungssuche config

the API key, kept in a credentials file of its own: $XDG_CONFIG_HOME/ausbildungssuche/credentials, else ~/.config/ausbildungssuche/credentials (api-key)

ausbildungssuche config set

store a credential: typed at a prompt without echo, or piped in (ausbildungssuche obtain-key | ausbildungssuche config set api-key) — never given as an argument

ausbildungssuche config set [options] <name>

Arguments

<name> required
api-key

ausbildungssuche config get

show a stored credential, masked (abcd…wxyz, or **** below 20 characters) unless --reveal

ausbildungssuche config get [options] <name>

Arguments

<name> required
api-key

Options

OptionDescriptionDefault
--reveal print the whole value, for a script that passes it on — it then is on your screen or in its log

ausbildungssuche details

Full details for one apprenticeship offer by id

ausbildungssuche details [options] <id>

Arguments

<id> required
numeric offer id