Commands

Every command, argument and option of autobahn 0.9.0, 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 (env AUTOBAHN_BASE_URL); a user:password@ in it is sent as HTTP Basic auth "https://verkehr.autobahn.de"
--timeout <ms> per-request timeout in milliseconds (default 30000; 0 disables; at most 2147483647; a timed-out request is not retried)
--user-agent <ua> User-Agent header value (default: "autobahn-cli/0.9.0 (+https://github.com/maschinenlesbar-org/autobahn-cli)")
--max-retries <n> retries for transient 429/502/503/504 responses and reset connections (default 2, 0..10; waits Retry-After, else backs off — up to 3–5 min in total at 10; details in README)
--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

autobahn roads

List all motorways the API knows about (e.g. A1, A2, ...)

autobahn roads [options]

autobahn roadworks

Roadworks along a motorway

autobahn roadworks list

List roadworks along a motorway (e.g. A1)

autobahn roadworks list [options] <roadId>

Arguments

<roadId> required
motorway id from `autobahn roads`, e.g. A1 (case-sensitive)

autobahn roadworks get

Fetch one item's details by its identifier

autobahn roadworks get [options] <identifier>

Arguments

<identifier> required
the "identifier" field of an item from `roadworks list`

autobahn webcams

Webcams along a motorway

autobahn webcams list

List webcams along a motorway (e.g. A1)

autobahn webcams list [options] <roadId>

Arguments

<roadId> required
motorway id from `autobahn roads`, e.g. A1 (case-sensitive)

autobahn webcams get

Fetch one item's details by its identifier

autobahn webcams get [options] <identifier>

Arguments

<identifier> required
the "identifier" field of an item from `webcams list`

autobahn parking

Lorry parking areas along a motorway

autobahn parking list

List lorry parking areas along a motorway (e.g. A1)

autobahn parking list [options] <roadId>

Arguments

<roadId> required
motorway id from `autobahn roads`, e.g. A1 (case-sensitive)

autobahn parking get

Fetch one item's details by its identifier

autobahn parking get [options] <identifier>

Arguments

<identifier> required
the "identifier" field of an item from `parking list`

autobahn warnings

Traffic warnings along a motorway

autobahn warnings list

List traffic warnings along a motorway (e.g. A1)

autobahn warnings list [options] <roadId>

Arguments

<roadId> required
motorway id from `autobahn roads`, e.g. A1 (case-sensitive)

autobahn warnings get

Fetch one item's details by its identifier

autobahn warnings get [options] <identifier>

Arguments

<identifier> required
the "identifier" field of an item from `warnings list`

autobahn closures

Closures along a motorway

autobahn closures list

List closures along a motorway (e.g. A1)

autobahn closures list [options] <roadId>

Arguments

<roadId> required
motorway id from `autobahn roads`, e.g. A1 (case-sensitive)

autobahn closures get

Fetch one item's details by its identifier

autobahn closures get [options] <identifier>

Arguments

<identifier> required
the "identifier" field of an item from `closures list`

autobahn charging

Electric charging stations along a motorway

autobahn charging list

List electric charging stations along a motorway (e.g. A1)

autobahn charging list [options] <roadId>

Arguments

<roadId> required
motorway id from `autobahn roads`, e.g. A1 (case-sensitive)

autobahn charging get

Fetch one item's details by its identifier

autobahn charging get [options] <identifier>

Arguments

<identifier> required
the "identifier" field of an item from `charging list`