Document Operations
Working with documents using the Kodexa CLI
The Kodexa CLI provides powerful commands for working with documents in document stores. This page explains how to query, upload, and manage documents.
Querying Documents
The query
command allows you to search for and manipulate documents in a document store:
For example, to search for all documents in a store:
Filtering Results
You can filter results using specific queries:
Or use filters for more complex queries:
Pagination and Streaming
For large result sets, use pagination:
For continuous processing, use streaming:
Downloading Documents
To download documents matching a query:
To download the original native files:
Labeling Documents
Add labels to documents:
Remove labels:
Deleting Documents
Delete documents matching a query:
You’ll be prompted to confirm the deletion.
Uploading Documents
The upload
command allows you to upload files to a document store:
For example, to upload a single file:
To upload multiple files:
Upload With External Data
You can attach external data to uploaded documents:
This looks for a matching JSON file (e.g., document.json) and attaches its content as external data.
Multithreaded Uploads
For faster uploads of multiple files: