stack kb saved-objects post-saved-objects-export cli command
Auth required
elastic stack kb saved-objects post-saved-objects-export [options]
Export saved objects
Behaviour flags:
--dry-run — validate all inputs and exit without performing any action
--[no-]exclude-export-details- Do not add export details entry at the end of the stream.
--has-referencestring-
Repeatable: pass
--has-referencemultiple times to supply more than one value --[no-]include-references-deep- Includes all of the referenced objects in the exported objects.
--objectsstring[]- A list of objects to export. NOTE: this optional parameter cannot be combined with the
typesoption --searchstring- Search for documents to export using the Elasticsearch Simple Query String syntax.
--typestring-
The saved object types to include in the export. Use
*to export all the types. Valid options depend on enabled plugins, but may includevisualization,dashboard,search,index-pattern,tag,config,config-global,lens,map,event-annotation-group,query,url,action,alert,alerting_rule_template,apm-indices,cases-user-actions,cases,cases-comments,infrastructure-monitoring-log-view,ml-trained-model,osquery-saved-query,osquery-pack,osquery-pack-asset.Repeatable: pass
--typemultiple times to supply more than one value --input-filestring- path to a JSON file to use as command input
--[no-]dry-run- validate all inputs and exit without performing any action (preview changes without applying them)
--[no-]json-
output as JSON