Commands

Every command, argument and option of lebensmittel 0.0.4, 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 (0..10)
--max-response-bytes <n> cap response body size in bytes (0 = unlimited; default 100 MiB)
--compact print JSON on a single line instead of pretty-printed
-o, --output <file> write output to this file instead of stdout

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 published on or after this date (German time, Europe/Berlin)
--search <term> only warnings whose product title contains this text (case-insensitive)

lebensmittel types

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

lebensmittel types [options]