regstat hello
Connectivity check (helloworld/whoami) — needs no credentials
regstat hello [options]Alle Befehle, Argumente und Optionen von regstat 0.5.1, direkt aus der CLI gelesen.
Die Beschreibungen der Befehle, Argumente und Optionen stammen direkt aus der CLI und sind englisch.
Diese Optionen gelten für jeden Befehl.
| Option | Beschreibung | Standard |
|---|---|---|
-V, --version |
output the version number | |
--base-url <url> |
API base URL | https://www.regionalstatistik.de |
--token <token> |
GENESIS API token (env: REGIONALSTATISTIK_API_TOKEN) | |
--username <user> |
GENESIS account username (env: REGIONALSTATISTIK_USERNAME) | |
--password <pass> |
GENESIS account password (env: REGIONALSTATISTIK_PASSWORD) | |
--language <lang> |
response language (server default: de) Werte: de, en | |
--pagelength <n> |
max list results for find/catalogue (1..25000; ignored by data/metadata) | |
--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; each waits 200 ms × attempt or the server's longer Retry-After, up to 30 s) | |
--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 | |
-o, --output <file> |
write output (JSON, or a download) to this file; `-` means stdout | |
--force |
overwrite the --output file if it already exists |
regstat helloConnectivity check (helloworld/whoami) — needs no credentials
regstat hello [options]regstat logincheckValidate your credentials (helloworld/logincheck)
regstat logincheck [options]regstat findFull-text search across statistics, tables, cubes, variables and time series (e.g. `regstat find "bevölkerung kreise" --category tables`)
regstat find [options] <term>Argumente
<term>
erforderlichOptionen
| Option | Beschreibung | Standard |
|---|---|---|
--category <cat> |
restrict to an object type (server default: all) Werte: all, tables, statistics, cubes, variables, time-series |
regstat catalogueBrowse the catalogue: list objects by code selection (e.g. `12411*`)
regstat catalogue tablesList tables (Tabellen)
regstat catalogue tables [options] [selection]Argumente
[selection]
optionalOptionen
| Option | Beschreibung | Standard |
|---|---|---|
--area <area> |
data area (default server-side; try `all`) | |
--search-criterion <c> |
field `selection` matches Werte: Code, Content | |
--sort-criterion <c> |
result sort order Werte: Code, Content | |
--type <type> |
object subtype filter |
regstat catalogue statisticsList statistics (Statistiken)
regstat catalogue statistics [options] [selection]Argumente
[selection]
optionalOptionen
| Option | Beschreibung | Standard |
|---|---|---|
--area <area> |
data area (default server-side; try `all`) | |
--search-criterion <c> |
field `selection` matches Werte: Code, Content | |
--sort-criterion <c> |
result sort order Werte: Code, Content | |
--type <type> |
object subtype filter |
regstat catalogue cubesList data cubes (Datenquader)
regstat catalogue cubes [options] [selection]Argumente
[selection]
optionalOptionen
| Option | Beschreibung | Standard |
|---|---|---|
--area <area> |
data area (default server-side; try `all`) | |
--search-criterion <c> |
field `selection` matches Werte: Code, Content | |
--sort-criterion <c> |
result sort order Werte: Code, Content | |
--type <type> |
object subtype filter |
regstat catalogue timeseriesList time series (Zeitreihen)
regstat catalogue timeseries [options] [selection]Argumente
[selection]
optionalOptionen
| Option | Beschreibung | Standard |
|---|---|---|
--area <area> |
data area (default server-side; try `all`) | |
--search-criterion <c> |
field `selection` matches Werte: Code, Content | |
--sort-criterion <c> |
result sort order Werte: Code, Content | |
--type <type> |
object subtype filter |
regstat catalogue variablesList variables (Merkmale)
regstat catalogue variables [options] [selection]Argumente
[selection]
optionalOptionen
| Option | Beschreibung | Standard |
|---|---|---|
--area <area> |
data area (default server-side; try `all`) | |
--search-criterion <c> |
field `selection` matches Werte: Code, Content | |
--sort-criterion <c> |
result sort order Werte: Code, Content | |
--type <type> |
object subtype filter |
regstat catalogue valuesList variable values (Ausprägungen)
regstat catalogue values [options] [selection]Argumente
[selection]
optionalOptionen
| Option | Beschreibung | Standard |
|---|---|---|
--area <area> |
data area (default server-side; try `all`) | |
--search-criterion <c> |
field `selection` matches Werte: Code, Content | |
--sort-criterion <c> |
result sort order Werte: Code, Content | |
--type <type> |
object subtype filter |
regstat catalogue termsList search terms (Begriffe)
regstat catalogue terms [options] [selection]Argumente
[selection]
optionalOptionen
| Option | Beschreibung | Standard |
|---|---|---|
--area <area> |
data area (default server-side; try `all`) | |
--search-criterion <c> |
field `selection` matches Werte: Code, Content | |
--sort-criterion <c> |
result sort order Werte: Code, Content | |
--type <type> |
object subtype filter |
regstat catalogue jobsList background jobs (Aufträge)
regstat catalogue jobs [options] [selection]Argumente
[selection]
optionalOptionen
| Option | Beschreibung | Standard |
|---|---|---|
--area <area> |
data area (default server-side; try `all`) | |
--search-criterion <c> |
field `selection` matches Werte: Code, Content | |
--sort-criterion <c> |
result sort order Werte: Code, Content | |
--type <type> |
object subtype filter |
regstat catalogue modifiedList recently modified objects
regstat catalogue modified [options] [selection]Argumente
[selection]
optionalOptionen
| Option | Beschreibung | Standard |
|---|---|---|
--area <area> |
data area (default server-side; try `all`) | |
--search-criterion <c> |
field `selection` matches Werte: Code, Content | |
--sort-criterion <c> |
result sort order Werte: Code, Content | |
--type <type> |
object subtype filter |
regstat catalogue resultsList saved result tables (Ergebnistabellen)
regstat catalogue results [options] [selection]Argumente
[selection]
optionalOptionen
| Option | Beschreibung | Standard |
|---|---|---|
--area <area> |
data area (default server-side; try `all`) | |
--search-criterion <c> |
field `selection` matches Werte: Code, Content | |
--sort-criterion <c> |
result sort order Werte: Code, Content | |
--type <type> |
object subtype filter |
regstat catalogue qualitysignsList quality-sign symbols
regstat catalogue qualitysigns [options] [selection]Argumente
[selection]
optionalOptionen
| Option | Beschreibung | Standard |
|---|---|---|
--area <area> |
data area (default server-side; try `all`) | |
--search-criterion <c> |
field `selection` matches Werte: Code, Content | |
--sort-criterion <c> |
result sort order Werte: Code, Content | |
--type <type> |
object subtype filter |
regstat metadataDescribe an object's structure (metadata) by its code
regstat metadata tableDescribe a table (e.g. 12411-01-01-4)
regstat metadata table [options] <name>Argumente
<name>
erforderlichOptionen
| Option | Beschreibung | Standard |
|---|---|---|
--area <area> |
data area |
regstat metadata statisticDescribe a statistic (e.g. 12411)
regstat metadata statistic [options] <name>Argumente
<name>
erforderlichOptionen
| Option | Beschreibung | Standard |
|---|---|---|
--area <area> |
data area |
regstat metadata cubeDescribe a data cube
regstat metadata cube [options] <name>Argumente
<name>
erforderlichOptionen
| Option | Beschreibung | Standard |
|---|---|---|
--area <area> |
data area |
regstat metadata timeseriesDescribe a time series
regstat metadata timeseries [options] <name>Argumente
<name>
erforderlichOptionen
| Option | Beschreibung | Standard |
|---|---|---|
--area <area> |
data area |
regstat metadata variableDescribe a variable (e.g. KREISE)
regstat metadata variable [options] <name>Argumente
<name>
erforderlichOptionen
| Option | Beschreibung | Standard |
|---|---|---|
--area <area> |
data area |
regstat metadata valueDescribe a variable value
regstat metadata value [options] <name>Argumente
<name>
erforderlichOptionen
| Option | Beschreibung | Standard |
|---|---|---|
--area <area> |
data area |
regstat dataRetrieve statistical data (tables, cubes, time series, results)
regstat data tableFetch a table's data (data/table) — CSV in Object.Content
regstat data table [options] <name>Argumente
<name>
erforderlichOptionen
| Option | Beschreibung | Standard |
|---|---|---|
--area <area> |
data area | |
--start-year <year> |
earliest year (YYYY) | |
--end-year <year> |
latest year (YYYY) | |
--timeslices <n> |
number of time slices from the end | |
--region-var <code> |
regional level variable (e.g. KREISE, GEMEIN) | |
--region-key <key> |
regional key: AGS/ARS code(s), `*` wildcard ok (e.g. `08*`, `08221`) | |
--contents <labels> |
restrict to these value labels (comma-separated) | |
--stand <date> |
only data newer than this date (DD.MM.YYYY) | |
--structure |
include the dimension structure tree | |
--transpose |
transpose rows and columns | |
--compress |
compress repeated labels | |
--class-var1 <code> |
classifying variable 1 code | |
--class-key1 <key> |
classifying key 1 (value selection) | |
--class-var2 <code> |
classifying variable 2 code | |
--class-key2 <key> |
classifying key 2 (value selection) | |
--class-var3 <code> |
classifying variable 3 code | |
--class-key3 <key> |
classifying key 3 (value selection) | |
--class-var4 <code> |
classifying variable 4 code | |
--class-key4 <key> |
classifying key 4 (value selection) | |
--class-var5 <code> |
classifying variable 5 code | |
--class-key5 <key> |
classifying key 5 (value selection) |
regstat data cubeFetch a data cube (data/cube)
regstat data cube [options] <name>Argumente
<name>
erforderlichOptionen
| Option | Beschreibung | Standard |
|---|---|---|
--area <area> |
data area | |
--start-year <year> |
earliest year (YYYY) | |
--end-year <year> |
latest year (YYYY) | |
--timeslices <n> |
number of time slices from the end | |
--region-var <code> |
regional level variable (e.g. KREISE, GEMEIN) | |
--region-key <key> |
regional key: AGS/ARS code(s), `*` wildcard ok (e.g. `08*`, `08221`) | |
--contents <labels> |
restrict to these value labels (comma-separated) | |
--stand <date> |
only data newer than this date (DD.MM.YYYY) | |
--structure |
include the dimension structure tree | |
--transpose |
transpose rows and columns | |
--compress |
compress repeated labels | |
--class-var1 <code> |
classifying variable 1 code | |
--class-key1 <key> |
classifying key 1 (value selection) | |
--class-var2 <code> |
classifying variable 2 code | |
--class-key2 <key> |
classifying key 2 (value selection) | |
--class-var3 <code> |
classifying variable 3 code | |
--class-key3 <key> |
classifying key 3 (value selection) | |
--class-var4 <code> |
classifying variable 4 code | |
--class-key4 <key> |
classifying key 4 (value selection) | |
--class-var5 <code> |
classifying variable 5 code | |
--class-key5 <key> |
classifying key 5 (value selection) |
regstat data timeseriesFetch a time series (data/timeseries)
regstat data timeseries [options] <name>Argumente
<name>
erforderlichOptionen
| Option | Beschreibung | Standard |
|---|---|---|
--area <area> |
data area | |
--start-year <year> |
earliest year (YYYY) | |
--end-year <year> |
latest year (YYYY) | |
--timeslices <n> |
number of time slices from the end | |
--region-var <code> |
regional level variable (e.g. KREISE, GEMEIN) | |
--region-key <key> |
regional key: AGS/ARS code(s), `*` wildcard ok (e.g. `08*`, `08221`) | |
--contents <labels> |
restrict to these value labels (comma-separated) | |
--stand <date> |
only data newer than this date (DD.MM.YYYY) | |
--structure |
include the dimension structure tree | |
--transpose |
transpose rows and columns | |
--compress |
compress repeated labels | |
--class-var1 <code> |
classifying variable 1 code | |
--class-key1 <key> |
classifying key 1 (value selection) | |
--class-var2 <code> |
classifying variable 2 code | |
--class-key2 <key> |
classifying key 2 (value selection) | |
--class-var3 <code> |
classifying variable 3 code | |
--class-key3 <key> |
classifying key 3 (value selection) | |
--class-var4 <code> |
classifying variable 4 code | |
--class-key4 <key> |
classifying key 4 (value selection) | |
--class-var5 <code> |
classifying variable 5 code | |
--class-key5 <key> |
classifying key 5 (value selection) |
regstat data resultFetch a saved result table (data/result)
regstat data result [options] <name>Argumente
<name>
erforderlichOptionen
| Option | Beschreibung | Standard |
|---|---|---|
--area <area> |
data area | |
--start-year <year> |
earliest year (YYYY) | |
--end-year <year> |
latest year (YYYY) | |
--timeslices <n> |
number of time slices from the end | |
--region-var <code> |
regional level variable (e.g. KREISE, GEMEIN) | |
--region-key <key> |
regional key: AGS/ARS code(s), `*` wildcard ok (e.g. `08*`, `08221`) | |
--contents <labels> |
restrict to these value labels (comma-separated) | |
--stand <date> |
only data newer than this date (DD.MM.YYYY) | |
--structure |
include the dimension structure tree | |
--transpose |
transpose rows and columns | |
--compress |
compress repeated labels | |
--class-var1 <code> |
classifying variable 1 code | |
--class-key1 <key> |
classifying key 1 (value selection) | |
--class-var2 <code> |
classifying variable 2 code | |
--class-key2 <key> |
classifying key 2 (value selection) | |
--class-var3 <code> |
classifying variable 3 code | |
--class-key3 <key> |
classifying key 3 (value selection) | |
--class-var4 <code> |
classifying variable 4 code | |
--class-key4 <key> |
classifying key 4 (value selection) | |
--class-var5 <code> |
classifying variable 5 code | |
--class-key5 <key> |
classifying key 5 (value selection) |
regstat data tablefileDownload a table as a file (ZIP) — use -o <file>
regstat data tablefile [options] <name>Argumente
<name>
erforderlichOptionen
| Option | Beschreibung | Standard |
|---|---|---|
--format <fmt> |
download format Werte: datencsv, csv, ffcsv, xlsx, html, genml | |
--area <area> |
data area | |
--start-year <year> |
earliest year (YYYY) | |
--end-year <year> |
latest year (YYYY) | |
--timeslices <n> |
number of time slices from the end | |
--region-var <code> |
regional level variable (e.g. KREISE, GEMEIN) | |
--region-key <key> |
regional key: AGS/ARS code(s), `*` wildcard ok (e.g. `08*`, `08221`) | |
--contents <labels> |
restrict to these value labels (comma-separated) | |
--stand <date> |
only data newer than this date (DD.MM.YYYY) | |
--structure |
include the dimension structure tree | |
--transpose |
transpose rows and columns | |
--compress |
compress repeated labels | |
--class-var1 <code> |
classifying variable 1 code | |
--class-key1 <key> |
classifying key 1 (value selection) | |
--class-var2 <code> |
classifying variable 2 code | |
--class-key2 <key> |
classifying key 2 (value selection) | |
--class-var3 <code> |
classifying variable 3 code | |
--class-key3 <key> |
classifying key 3 (value selection) | |
--class-var4 <code> |
classifying variable 4 code | |
--class-key4 <key> |
classifying key 4 (value selection) | |
--class-var5 <code> |
classifying variable 5 code | |
--class-key5 <key> |
classifying key 5 (value selection) |
regstat data cubefileDownload a cube as a file (ZIP) — use -o <file>
regstat data cubefile [options] <name>Argumente
<name>
erforderlichOptionen
| Option | Beschreibung | Standard |
|---|---|---|
--format <fmt> |
download format Werte: datencsv, csv, ffcsv, xlsx, html, genml | |
--area <area> |
data area | |
--start-year <year> |
earliest year (YYYY) | |
--end-year <year> |
latest year (YYYY) | |
--timeslices <n> |
number of time slices from the end | |
--region-var <code> |
regional level variable (e.g. KREISE, GEMEIN) | |
--region-key <key> |
regional key: AGS/ARS code(s), `*` wildcard ok (e.g. `08*`, `08221`) | |
--contents <labels> |
restrict to these value labels (comma-separated) | |
--stand <date> |
only data newer than this date (DD.MM.YYYY) | |
--structure |
include the dimension structure tree | |
--transpose |
transpose rows and columns | |
--compress |
compress repeated labels | |
--class-var1 <code> |
classifying variable 1 code | |
--class-key1 <key> |
classifying key 1 (value selection) | |
--class-var2 <code> |
classifying variable 2 code | |
--class-key2 <key> |
classifying key 2 (value selection) | |
--class-var3 <code> |
classifying variable 3 code | |
--class-key3 <key> |
classifying key 3 (value selection) | |
--class-var4 <code> |
classifying variable 4 code | |
--class-key4 <key> |
classifying key 4 (value selection) | |
--class-var5 <code> |
classifying variable 5 code | |
--class-key5 <key> |
classifying key 5 (value selection) |
regstat data timeseriesfileDownload a time series as a file (ZIP) — use -o <file>
regstat data timeseriesfile [options] <name>Argumente
<name>
erforderlichOptionen
| Option | Beschreibung | Standard |
|---|---|---|
--format <fmt> |
download format Werte: datencsv, csv, ffcsv, xlsx, html, genml | |
--area <area> |
data area | |
--start-year <year> |
earliest year (YYYY) | |
--end-year <year> |
latest year (YYYY) | |
--timeslices <n> |
number of time slices from the end | |
--region-var <code> |
regional level variable (e.g. KREISE, GEMEIN) | |
--region-key <key> |
regional key: AGS/ARS code(s), `*` wildcard ok (e.g. `08*`, `08221`) | |
--contents <labels> |
restrict to these value labels (comma-separated) | |
--stand <date> |
only data newer than this date (DD.MM.YYYY) | |
--structure |
include the dimension structure tree | |
--transpose |
transpose rows and columns | |
--compress |
compress repeated labels | |
--class-var1 <code> |
classifying variable 1 code | |
--class-key1 <key> |
classifying key 1 (value selection) | |
--class-var2 <code> |
classifying variable 2 code | |
--class-key2 <key> |
classifying key 2 (value selection) | |
--class-var3 <code> |
classifying variable 3 code | |
--class-key3 <key> |
classifying key 3 (value selection) | |
--class-var4 <code> |
classifying variable 4 code | |
--class-key4 <key> |
classifying key 4 (value selection) | |
--class-var5 <code> |
classifying variable 5 code | |
--class-key5 <key> |
classifying key 5 (value selection) |
regstat data resultfileDownload a saved result as a file (ZIP) — use -o <file>
regstat data resultfile [options] <name>Argumente
<name>
erforderlichOptionen
| Option | Beschreibung | Standard |
|---|---|---|
--format <fmt> |
download format Werte: datencsv, csv, ffcsv, xlsx, html, genml | |
--area <area> |
data area | |
--start-year <year> |
earliest year (YYYY) | |
--end-year <year> |
latest year (YYYY) | |
--timeslices <n> |
number of time slices from the end | |
--region-var <code> |
regional level variable (e.g. KREISE, GEMEIN) | |
--region-key <key> |
regional key: AGS/ARS code(s), `*` wildcard ok (e.g. `08*`, `08221`) | |
--contents <labels> |
restrict to these value labels (comma-separated) | |
--stand <date> |
only data newer than this date (DD.MM.YYYY) | |
--structure |
include the dimension structure tree | |
--transpose |
transpose rows and columns | |
--compress |
compress repeated labels | |
--class-var1 <code> |
classifying variable 1 code | |
--class-key1 <key> |
classifying key 1 (value selection) | |
--class-var2 <code> |
classifying variable 2 code | |
--class-key2 <key> |
classifying key 2 (value selection) | |
--class-var3 <code> |
classifying variable 3 code | |
--class-key3 <key> |
classifying key 3 (value selection) | |
--class-var4 <code> |
classifying variable 4 code | |
--class-key4 <key> |
classifying key 4 (value selection) | |
--class-var5 <code> |
classifying variable 5 code | |
--class-key5 <key> |
classifying key 5 (value selection) |
regstat configthe GENESIS login, kept in a credentials file of its own: $XDG_CONFIG_HOME/regionalstatistik/credentials, else ~/.config/regionalstatistik/credentials (token, username, password); used when no flag or environment variable gives any credential
regstat config setstore a credential: typed at a prompt without echo, or piped in (printf %s "$TOKEN" | regstat config set token) — never given as an argument
regstat config set [options] <name>Argumente
<name>
erforderlichregstat config getshow a stored credential, masked (abcd…wxyz; **** for a password and below 20 characters) unless --reveal
regstat config get [options] <name>Argumente
<name>
erforderlichOptionen
| Option | Beschreibung | Standard |
|---|---|---|
--reveal |
print the whole value, for a script that passes it on — it then is on your screen or in its log |
regstat config unsetremove a stored credential
regstat config unset [options] <name>Argumente
<name>
erforderlichregstat config listevery stored credential, masked, and where the file is
regstat config list [options]