stack kb dashboards upsert-dashboard cli command
Auth required
Idempotent
Scope: global
elastic stack kb dashboards upsert-dashboard --id <id> --title <title> [options]
Upsert a dashboard
Behaviour flags:
--dry-run — validate all inputs and exit without performing any action
--idstringrequired- The unique ID of the dashboard to be created or updated
--titlestringrequired- A human-readable title for the dashboard.
--access-controlstring--descriptionstring- A short description of the dashboard.
--esql-approximation- When
true, ES|QL visualizations that useSTATSrun with approximate execution for faster, estimated results. --filtersstring[]-
Filters applied across all panels, including pinned panels.
Repeatable: pass
--filtersmultiple times to supply more than one value --optionsstring--panelsstring[]-
Panels and sections in the dashboard. Each entry is either a panel (with a
typeandconfig) or a collapsible section (with atitle,collapsedstate, and nestedpanels).Repeatable: pass
--panelsmultiple times to supply more than one value --pinned-panelsstring[]-
An array of control panels and their state in the control group.
Repeatable: pass
--pinned-panelsmultiple times to supply more than one value --project-routingstring- Controls cross-project search behavior for this dashboard (Serverless only). Set to
_alias:_originto scope data to the current project, or_alias:*to search across all projects. When omitted, the space default applies. --querystring--refresh-intervalstring-
Tag IDs to associate with this dashboard.
Repeatable: pass
--tagsmultiple times to supply more than one value --time-rangestring--input-filestring- 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-fieldsstring- comma-separated list of fields to include in output (dot-notation supported)
--output-templatestring- Mustache-like template for custom text output (e.g. "{{id}}: {{name}}")
--json-
output as JSON