kdx document command provides a comprehensive set of tools for inspecting and manipulating local Kodexa documents (KDDB files) directly from your terminal. These commands work offline without requiring a connection to the Kodexa platform.
What are KDDB Files?
KDDB (Kodexa Document Database) files are SQLite-based document containers that store:- Document structure - Hierarchical content nodes with types and content
- Metadata - Document properties like UUID, version, and custom fields
- Native files - Embedded binary files (PDFs, images, etc.)
- External data - Custom key-value data for extensions
- Features - Node-level attributes like bounding boxes and tags
Available Commands
Info
Display document summary with metadata and statistics
Pretty print document structure as an ASCII tree
Select
Query nodes by type using selectors
Natives
List and extract embedded files
External
Manage external data key-value store
Metadata
View and modify document metadata
Quick Start
View Document Info
Get a summary of document contents:Print Document Structure
Visualize the document tree:Query Nodes by Type
Find all nodes of a specific type:Command Reference
Info
Display document summary including UUID, version, metadata, and statistics.- Document UUID and version
- Source metadata (connector, path)
- Statistics (node count, page count)
- Labels and custom metadata
| Flag | Description |
|---|---|
--page N | Print only page N (1-indexed) |
--depth N | Limit tree depth (0 = unlimited) |
--features | Show node features (bounding boxes, etc.) |
Select
Run a selector query to find matching nodes.//type- Select all nodes of a type
Output Formats
All document commands support the global-o flag for output format:
