stack kb security-endpoint-management-api endpoint-script-library-create-script cli command

Auth required
elastic stack kb security-endpoint-management-api endpoint-script-library-create-script \
  --file <file> \
  --file-type <file-type> \
  --name <name> \
  --platform <platform> \
  [options]
		

Create script

Behaviour flags:

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

--file string required
The script file upload
--file-type string required
The type of the uploaded file, which determines the expected value of pathToExecutable. If fileType is "script", then pathToExecutable should not be included. If fileType is "archive", then pathToExecutable is required and should specify the path to the executable file within the archive.
--name string required
Name of the script
--platform string required
Platforms supported by the the script
--description string
Description of the script and its purpose/functionality
--example string
Example usage of the script
--instructions string
Instructions for using the script, including details around its supported input arguments
--path-to-executable string
Used only for when the uploaded script is an archive (.zip file for example). This property defines the relative path to the file included in the archive that should be executed once its contents are extracted. The path should be relative to the root of the archive.
--requires-input string
Whether the script requires input arguments
--tags string
Tags to categorize the script
--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)
--json

output as JSON