Commands

Every command, argument and option of mastr 0.0.5, 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 (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]

Options

OptionDescriptionDefault
--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]

Options

OptionDescriptionDefault
--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]

Options

OptionDescriptionDefault
--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]

Options

OptionDescriptionDefault
--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>

Arguments

<category> required
unit category