Befehle

Alle Befehle, Argumente und Optionen von mastr 0.0.5, 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 (http/https only) https://www.marktstammdatenregister.de/MaStR
--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
--iso-dates rewrite MaStR /Date(ms)/ timestamps to ISO-8601

mastr stromerzeugung

Electricity-generation units (Stromerzeugung)

mastr stromerzeugung [options]

Optionen

OptionBeschreibungStandard
--page <n> 1-based page number 1
--page-size <n> rows per page (1..5000) 25
--sort <spec> sort: FieldKey-asc | FieldKey-desc, where FieldKey is a record field name, not a FilterName (e.g. Bruttoleistung-desc)
--filter <spec> filter: FilterName~op~'value'~[and|or]~… (see `filters`; ops eq|neq|sw|ct|nct|ew|null|nn|gt|lt, gt/lt strict; an unknown op returns 0 rows)
--total print only the total match count, not the rows

mastr stromverbrauch

Electricity-consumption units (Stromverbrauch)

mastr stromverbrauch [options]

Optionen

OptionBeschreibungStandard
--page <n> 1-based page number 1
--page-size <n> rows per page (1..5000) 25
--sort <spec> sort: FieldKey-asc | FieldKey-desc, where FieldKey is a record field name, not a FilterName (e.g. Bruttoleistung-desc)
--filter <spec> filter: FilterName~op~'value'~[and|or]~… (see `filters`; ops eq|neq|sw|ct|nct|ew|null|nn|gt|lt, gt/lt strict; an unknown op returns 0 rows)
--total print only the total match count, not the rows

mastr gaserzeugung

Gas-generation units (Gaserzeugung)

mastr gaserzeugung [options]

Optionen

OptionBeschreibungStandard
--page <n> 1-based page number 1
--page-size <n> rows per page (1..5000) 25
--sort <spec> sort: FieldKey-asc | FieldKey-desc, where FieldKey is a record field name, not a FilterName (e.g. Bruttoleistung-desc)
--filter <spec> filter: FilterName~op~'value'~[and|or]~… (see `filters`; ops eq|neq|sw|ct|nct|ew|null|nn|gt|lt, gt/lt strict; an unknown op returns 0 rows)
--total print only the total match count, not the rows

mastr gasverbrauch

Gas-consumption units (Gasverbrauch)

mastr gasverbrauch [options]

Optionen

OptionBeschreibungStandard
--page <n> 1-based page number 1
--page-size <n> rows per page (1..5000) 25
--sort <spec> sort: FieldKey-asc | FieldKey-desc, where FieldKey is a record field name, not a FilterName (e.g. Bruttoleistung-desc)
--filter <spec> filter: FilterName~op~'value'~[and|or]~… (see `filters`; ops eq|neq|sw|ct|nct|ew|null|nn|gt|lt, gt/lt strict; an unknown op returns 0 rows)
--total print only the total match count, not the rows

mastr filters

List the filterable columns (names, types, dropdown codes) for a category

mastr filters [options] <category>

Argumente

<category> erforderlich
unit category