Commands

Every command, argument and option of ddb 0.6.1, 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 https://api.deutsche-digitale-bibliothek.de/2
--timeout <ms> per-request timeout in milliseconds
--user-agent <ua> User-Agent header value
--max-retries <n> retries for transient 429/503 responses and reset connections (0..10; each waits the server's 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 to this file instead of stdout (- = stdout)
--force overwrite the --output file if it already exists

ddb item

Fetch one item component by its 32-character id (GET /2/items/{id})

ddb item [options] <id>

Arguments

<id> required
the 32-character DDB item id (from a search result's `id`)

Options

OptionDescriptionDefault
--part <component> component to fetch: view | aip | edm | binaries | children | parents | source | source-description | source-record | iiif | citation (default view) view
--lang <code> preferred language for labels (view/aip/edm/binaries/source/source-description)
--rows <n> page size for --part children
--offset <n> offset for --part children

ddb version

Print the DDB backend version — a quick connectivity check (no key needed)

ddb version [options]