Skip to main content
External data provides a flexible key-value store within KDDB documents for storing custom data, processing results, or extension-specific information.

Commands

List Keys

View all external data keys in a document:
Example:
If no external data exists:

Get Value

Retrieve the value for a specific key:
Example:

Set Value

Store or update a value for a key:
The value must be valid JSON. Strings must be quoted, objects use curly braces, etc.
Examples:
Output:

Delete Key

Remove an external data key:
Example:

Output Formats

Use the global -o flag for different output formats:
JSON output example:

JSON Value Examples

Since values must be valid JSON, here are common patterns:
Use single quotes around the JSON value in bash to prevent shell expansion of special characters.

Use Cases

Store Processing Results

Save extraction or analysis results:

Track Processing Status

Maintain workflow state:

Configuration Storage

Store document-specific configuration:

Scripting Integration

Use external data in automated workflows:

Notes

External data is stored as JSON in the KDDB database. Complex nested structures are fully supported.
Modifying external data changes the KDDB file. Make backups before making changes to important documents.

SDK: External Data

Work with external data programmatically

Document Overview

Back to document commands overview