stack kb security-detections-api export-rules cli command
Auth required
elastic stack kb security-detections-api export-rules [options]
Export detection rules
Behaviour flags:
--dry-run — validate all inputs and exit without performing any action
--exclude-export-details- Determines whether a summary of the exported rules is returned.
--file-namestring-
File name for saving the exported rules.
info When using cURL to export rules to a file, use the -O and -J options to save the rules to the file name specified in the URL.
--bodystring--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