stack kb security-endpoint-management-api endpoint-script-library-patch-update-script cli command
Auth required
elastic stack kb security-endpoint-management-api endpoint-script-library-patch-update-script \
--script-id <script-id> \
[options]
Update script
Behaviour flags:
--dry-run — validate all inputs and exit without performing any action
--script-idstringrequired- The ID of the script entry to be updated.
--descriptionstring- Description of the script and its purpose/functionality
--examplestring- Example usage of the script
--filestring- The script file upload
--file-typestring- 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. --instructionsstring- Instructions for using the script, including details around its supported input arguments
--namestring- Name of the script
--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.
--platformstring- Platforms supported by the the script
--requires-inputstring- Whether the script requires input arguments
- Tags to categorize the script
--versionstring- Version of 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