stack es scripts-painless-execute cli command
Auth required
Idempotent
Scope: global
elastic stack es scripts-painless-execute [options]
Run a script.
Behaviour flags:
--dry-run — validate all inputs and exit without performing any action
--contextstring- The context that the script should run in. NOTE: Result ordering in the field contexts is not guaranteed.
--context-setupstring- Additional parameters for the
context. NOTE: This parameter is required for all contexts exceptpainless_test, which is the default if no value is provided forcontext. --scriptstring- The Painless script to run.
--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