rdb history <file>List version IDs, timestamps, sizes
rdb version <file> <id>Print a specific historical version
rdb diff <file> <id-a>Diff version vs current
rdb diff <file> <id-a> <id-b>Diff two historical versions
rdb diff … -C 55 lines of context (default 3)
rdb restore <file> <id>Make a historical version current
Global flags
--jsonRaw JSON output on any command
--helpShow help for any command
--versionPrint rdb version
Scripting
Every command supports --json for machine-readable output.
# list files as JSON, parse with jq
$ rdb ls --json | jq '.[].name'
# write tool output directly into a file
$ some-tool --output | rdb write output.md
# check quota in CI
$ FILES=$(rdb whoami --json | jq '.fileCount')
# back up all files locally
$ rdb ls --json | jq -r '.[].name' | while read name; do
rdb cat "$name" > "backup/$name"
done
Environment variables
READMEDB_API_KEYAPI key — takes priority over config file
READMEDB_URLBase URL override for self-hosted instances