Store Commands
Thekdx store command provides operational commands for document stores. Use it when you need to upload source documents, watch processing progress, inspect store health, or rebuild store indexes.
Document stores are where document families enter a project. The CLI is useful for scripted test uploads, smoke tests after an Activity Plan change, and operational checks in non-production environments.
Available Commands
| Command | Description |
|---|---|
upload | Upload a file to a document store |
watch | Monitor a document family until it reaches a target label |
stats | Show store statistics |
reindex | Trigger store reindexing |
Upload Documents
Upload a PDF, image, or document to a document store. The platform creates a document family and queues it for the store’s configured processing.Parameters
| Parameter | Description |
|---|---|
store-ref | Store reference in the form org/store-slug or org/store-slug:version |
file-path | Path to the file to upload |
Examples
Output
kdx store watch or kdx document-family data.
Watch Processing Progress
Monitor a document family until it reaches a label such asPREPARED, LABELED, or PROCESSED. This is useful in local smoke tests and CI jobs that upload a document and need to wait for processing to finish before exporting data.
Flags
| Flag | Default | Description |
|---|---|---|
--label | PROCESSED | Target label to wait for |
--timeout | 600 | Timeout in seconds |
--poll-interval | 3 | Poll interval in seconds |
Processing Labels
Labels depend on the store and processing design. Common labels include:| Label | Description |
|---|---|
PREPARED | Document parsed and prepared |
FIRST-PASS | Initial extraction or classification complete |
LABELED | Data labeling complete |
PROCESSED | Final transformation complete |
Examples
Output
Store Statistics
View statistics for a document store. This command is useful for operational checks and dashboards where you want a quick CLI view of document count, storage size, index status, and any performance metrics the server returns.Example
Output
Reindex Store
Trigger a reindexing operation for a store. Reindexing is an administrative operation used when store search or derived indexes need to be rebuilt.Flags
| Flag | Description |
|---|---|
--force | Force reindex even if already in progress |
