Skip to main content

Command Reference

This page covers the current KDX command surface. It focuses on Activity-centered resource work, GitOps metadata promotion, document operations, knowledge attachments, and secure operational setup.

Global Flags

Global flags can be used with most commands.

Authentication and Profiles

Use profiles for local and interactive work. Use sync-config.yaml environment entries for GitOps deployment jobs.

Discovery

kdx api-resources

Lists resource types discovered from the platform OpenAPI contract.
Use --refresh after a platform upgrade or when docs mention a resource type your local CLI cache does not know yet.

Resource Inspection

kdx get

Displays one or many resources.
Examples:

kdx describe

Shows schema-aware detail for one resource.
Examples:

Resource Authoring

kdx validate

Validates a YAML resource file against the OpenAPI schema without sending it to the server.

kdx apply

Creates or updates a resource from YAML.
There is no general kdx create command. Use kdx apply -f <file> for declarative create-or-update.

kdx delete

Deletes a resource using the delete operation discovered for that resource type.
Examples:

Dynamic API Operations

kdx run

Lists and executes resource-specific operations discovered from OpenAPI. Use it when an operation exists in the API but does not have a dedicated high-level CLI command.
Examples:

Metadata Sync

kdx sync pull

Downloads metadata resources from an environment into a metadata repository.
Common flags:

kdx sync push

Uploads local metadata files to a Kodexa environment.
Common flags:

kdx sync deploy

Deploys targets based on branch mappings, tag mappings, or explicit flags.
Common flags: The sync command also supports global sync flags --metadata-dir <path> and --config <path>.

Project Templates

kdx project create

Creates a project from a project template.

Document Store Operations

See Store Commands for details.

Document Family Operations

See Document Family Commands for details.

Knowledge Attachments

See Knowledge Commands for details.

Organization Secrets

See Secret Commands for details.

Local Document Commands

The kdx document command works with local .kddb files. It is the main CLI surface for local document inspection and debugging. See the Document Commands overview for the full local document command set.

Version

Prints the CLI version, Git commit, and build date.