Skip to main content

Knowledge Commands

The kdx knowledge command manages attachments on knowledge items. Attachments are useful when a knowledge item needs supporting files such as example documents, reference datasets, prompt examples, diagrams, Markdown assets, or evaluation material.

Available Commands

Attach a File

The knowledge item reference can be a UUID or slug. Examples:
When --id is omitted, the CLI creates an attachment ID from the filename. When --id is supplied, the output includes the Markdown attachment reference.

Attach a Folder

The CLI zips the folder contents before upload. Example:
Use folder attachments when the knowledge item needs a collection of files that should move together.

Download an Attachment

Examples:
If no output path is supplied, the CLI asks the platform for attachment metadata and uses the original filename when available.

Use Cases

Troubleshooting