Befehle

Alle Befehle, Argumente und Optionen von reisewarnungen 0.0.8, direkt aus der CLI gelesen.

Die Beschreibungen der Befehle, Argumente und Optionen stammen direkt aus der CLI und sind englisch.

Globale Optionen

Diese Optionen gelten für jeden Befehl.

OptionBeschreibungStandard
-V, --version output the version number
--base-url <url> API base URL https://www.auswaertiges-amt.de
--timeout <ms> time limit per request in milliseconds, whole response included
--user-agent <ua> User-Agent header value
--max-retries <n> retries for transient 429/503 responses
--max-redirects <n> HTTP redirects to follow (0 = none; default 5)
--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
--force overwrite the --output file if it already exists

reisewarnungen list

All travel warnings, keyed by content id (raw response)

reisewarnungen list [options]

reisewarnungen countries

Flattened country overview (id, country, warning flags)

reisewarnungen countries [options]

Optionen

OptionBeschreibungStandard
--warned-only only countries with a warning of any kind in force

reisewarnungen get

One country's full travel warning (with HTML content)

reisewarnungen get [options] <contentId>

Argumente

<contentId> erforderlich