Commands

Every command, argument and option of ddb 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 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 (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
-o, --output <file> write output to this file instead of 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*)
--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]