stack kb context-engine put-context-engine-ai-index-aiindexid cli command

Auth required Idempotent Scope: global
elastic stack kb context-engine put-context-engine-ai-index-aiindexid \
  --ai-index-id <ai-index-id> \
  --dest <dest> \
  [options]
		

Create or update an AI Index

Behaviour flags:

--dry-run — validate all inputs and exit without performing any action

--ai-index-id string required
The unique identifier of the AI Index.
--dest string required
The data stream or index that backs the AI Index.
--automations string[]

Automations associated with the AI Index. Defaults to an empty array when omitted.

Repeatable: pass --automations multiple times to supply more than one value

--description string
Human-readable description of the AI Index.
--feedback-analysis string
The recurring feedback analysis, which reads agent signals and proposes improvement actions for the AI Index.
--sources string[]

Additional sources that provide context for the AI Index. Defaults to an empty array when omitted.

Repeatable: pass --sources multiple times to supply more than one value

--traces string[]

Trace sources linked to this AI Index. A write replaces the whole array. Defaults to an empty array when omitted.

Repeatable: pass --traces multiple times to supply more than one value

--input-file string
path to a JSON file to use as command input
--dry-run
validate all inputs and exit without performing any action (preview changes without applying them)
--no-validate
skip input validation and send the request as-is
--output-fields string
comma-separated list of fields to include in output (dot-notation supported)
--output-template string
Mustache-like template for custom text output (e.g. "{{id}}: {{name}}")
--json

output as JSON