Documentation Index
Fetch the complete documentation index at: https://developer.kodexa.ai/llms.txt
Use this file to discover all available pages before exploring further.
CLI Use Cases
The KDX CLI is not just a wrapper around API calls. It gives platform builders a repeatable way to inspect, promote, test, and operate Kodexa resources without having to click through the UI. Use the CLI when you need a fast feedback loop, a scriptable workflow, or an auditable path from Git to a Kodexa environment.The Mental Model
| Area | What the CLI does | Typical commands |
|---|---|---|
| Resource inspection | Lists and describes platform resources discovered from OpenAPI | get, describe, api-resources |
| Resource authoring | Validates and applies YAML definitions | validate, apply, delete |
| GitOps | Pulls, pushes, and deploys metadata repositories | sync pull, sync push, sync deploy |
| Activity development | Moves Activity Plans, task templates, data forms, service bridges, and supporting resources through environments | sync, apply, validate, project create |
| Document operations | Uploads documents, waits for processing, exports data, and downloads KDDB content | store, document-family, document |
| Knowledge operations | Attaches and downloads files or folders for knowledge items | knowledge attach, knowledge download |
| Secure setup | Manages organization secrets without putting values in shell history | secret list, secret set, secret delete |
Build an Activity Plan Locally
When you are designing an Activity Plan, the CLI helps you keep the resource set together:Promote a Project Template
Project templates remain useful because they package repeatable project setup. With Activity Plans, a template should bind the project to current plans, task templates, data forms, labels, statuses, service bridges, and document stores.kdx get projects, kdx get activity-plans, and kdx get task-templates to confirm that the expected resources exist and are bound.
Test a Document Processing Path
A common development loop is upload, wait, export:Manage a Metadata Repository
Usekdx sync when resources should live in Git and be promoted through environments.
Inspect the Platform Contract
The CLI discovers resource types from the platform OpenAPI contract. Refresh the local cache after a platform upgrade or when a new resource type is added.kdx run when you need an operation that exists in the API but does not have a dedicated high-level command yet.
Secure Runtime Configuration
Use organization secrets for values that Activity steps and service bridges need at runtime.Attach Knowledge Assets
Knowledge items can carry supporting assets such as examples, reference files, evaluation data, or images used in Markdown content.--id, the CLI prints the attachment reference that can be used from Markdown content.
Choose the Right Command
| You need to⦠| Start with |
|---|---|
| See what resources exist | kdx get <resource-type> |
| Understand one resource | kdx describe <resource-type> <id-or-slug> |
| Create or update one YAML resource | kdx apply -f <file> |
| Validate one YAML resource | kdx validate -f <file> |
| Move many resources between environments | kdx sync pull, kdx sync push, kdx sync deploy |
| Create a project from a template | kdx project create |
| Upload and monitor documents | kdx store upload, kdx store watch |
| Export processed data | kdx document-family data |
| Debug local KDDB files | kdx document ... |
| Manage secrets | kdx secret ... |
| Attach knowledge assets | kdx knowledge ... |
