---
title: Update script
product: Unity Gaming Services CLI
version: 2.0.0
latest_version: 2.0.0
status: This page documents version 2.0.0. The latest version is 2.0.0.
canonical: https://docs.unity.com/en-us/services-cli/2.0.0/manual/cloud-code/commands/scripts/update
latest_url: https://docs.unity.com/en-us/services-cli/2.0.0/manual/cloud-code/commands/scripts/update.md
last_updated: 2026-10-01
generated_at: 2026-11-18T02:39:17.981Z
locale: en-us
---

# Update script

> Update a 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, refer to [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

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