﻿---
title: stack kb security-endpoint-management-api endpoint-script-library-patch-update-script cli command
description: Update script Behaviour flags: --dry-run — validate all inputs and exit without performing any action 
url: https://www.elastic.co/elastic/docs-builder/docs/4116/reference/elastic-cli/cli/stack/kb/security-endpoint-management-api/endpoint-script-library-patch-update-script
applies_to:
  - Elastic Cloud Serverless: Preview
  - Elastic Stack: Preview
---

# stack kb security-endpoint-management-api endpoint-script-library-patch-update-script cli command
<cli-modifiers>
</cli-modifiers>

```bash
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

## Options

<definitions>
  <definition term="--script-id string required">
    The ID of the script entry to be updated.
  </definition>
  <definition term="--description string">
    Description of the script and its purpose/functionality
  </definition>
  <definition term="--example string">
    Example usage of the script
  </definition>
  <definition term="--file string">
    The script file upload
  </definition>
  <definition term="--file-type string">
    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.
  </definition>
  <definition term="--instructions string">
    Instructions for using the script, including details around its supported input arguments
  </definition>
  <definition term="--name string">
    Name of the script
  </definition>
  <definition term="--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.
  </definition>
  <definition term="--platform string">
    Platforms supported by the the script
  </definition>
  <definition term="--requires-input string">
    Whether the script requires input arguments
  </definition>
  <definition term="--tags string">
    Tags to categorize the script
  </definition>
  <definition term="--version string">
    Version of the script
  </definition>
  <definition term="--input-file string">
    path to a JSON file to use as command input
  </definition>
  <definition term="--dry-run">
    validate all inputs and exit without performing any action (preview changes without applying them)
  </definition>
</definitions>


## Global Options

<definitions>
  <definition term="--json">
    output as JSON
  </definition>
</definitions>