Commands

Every command, argument and option of lebensmittel 0.6.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://www.lebensmittelwarnung.de
--timeout <ms> time limit per request in ms, whole response included (0 = no timeout)
--user-agent <ua> User-Agent header value
--max-retries <n> retries for transient 429/503 responses and reset connections (0..10; a 429/503 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
-o, --output <file> write output to this file instead of stdout (- = stdout)
--force overwrite the --output file if it already exists

lebensmittel warnings

List current product warnings (Rückrufe), optionally narrowed by federal state and/or product type

lebensmittel warnings [options]

Options

OptionDescriptionDefault
--state <state> only warnings for this Bundesland Choices: badenwuerttemberg, bayern, berlin, brandenburg, bremen, hamburg, hessen, mecklenburgvorpommern, niedersachsen, nordrheinwestfalen, rheinlandpfalz, saarland, sachsen, sachsenanhalt, schleswigholstein, thueringen
--type <type> only warnings for this product type Choices: lebensmittel, kosmetischemittel, bedarfsgegenstaende, mittelzumtaetowieren, babyundkinderprodukte
--limit <n> return at most this many warnings (in feed order — most recent first)
--since <YYYY-MM-DD> only warnings whose pubDate (publication or last update) is on or after this date (German time, Europe/Berlin)
--search <term> only warnings whose product name (title or Produktbezeichnung) contains this text; case, umlaut spelling (Käse/Kaese), ß/ss and accents don't matter

lebensmittel types

Print the valid --type product-type slugs (offline)

lebensmittel types [options]