# Update script

> Update an existing Cloud-Code script.

Update a Cloud-Code script. Please check [Parameter parsing for scripts] to see how the command parses the parameters in the script.

If you plan to create multiple scripts, checkout [Deploy].

## Command

Authentication Required: `Yes`

```text
ugs cloud-code scripts update <script-name> <file-path> [options]
```

## Arguments

`<script-name>` The name of the script to update

`<file-path>` File path of the script to copy

## Options

| Option      | Alias                  | Description                         |
| ----------- | ---------------------- | ----------------------------------- |
| project-id  | -p, --project-id       | The Unity cloud project ID.         |
| environment | -e, --environment-name | The services environment name.      |
| help        | -?, -h, --help         | Display help and usage information. |
| quiet       | -q, --quiet            | Reduce logging to a minimum.        |
| json        | -j, --json             | Use JSON as the output format.      |

[Parameter parsing for scripts]: ../../parameter-parsing

[Deploy]: ../../../general/base-commands/deploy
