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
--filestringrequired- The script file upload
--file-typestringrequired- The type of the uploaded file, which determines the expected value of
pathToExecutable. IffileTypeis "script", thenpathToExecutableshould not be included. IffileTypeis "archive", thenpathToExecutableis required and should specify the path to the executable file within the archive. --namestringrequired- Name of the script
--platformstringrequired- Platforms supported by the the script
--descriptionstring- Description of the script and its purpose/functionality
--examplestring- Example usage of the script
--instructionsstring- Instructions for using the script, including details around its supported input arguments
--path-to-executablestring- 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-inputstring- Whether the script requires input arguments
- Tags to categorize the script
--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)
--json-
output as JSON