Documentation

​
​

Development

User Acquisition

Monetization

Industry

Unity Gaming Services CLI

v1.9

Supported
​

GitHub Repository

Unity Gaming Services CLI

v1.9

Supported
​

Unity Gaming Services CLI
​
​
Cloud Code
  • Overview
  • Parameter parsing for scripts
  • Commands
    • Modules
    • Scripts
      • Create script
      • Delete script
      • Export scripts
      • Get script
      • Import scripts
      • List scripts
      • New-File
      • Publish script
      • Update script
  1. UGS CLI
  2. Cloud Code

Update script

Update an existing Cloud-Code script.
Read time 1 minute
Last updated 3 months ago

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
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-idThe Unity cloud project ID.
environment-e, --environment-nameThe services environment name.
help-?, -h, --helpDisplay help and usage information.
quiet-q, --quietReduce logging to a minimum.
json-j, --jsonUse JSON as the output format.

Copyright © 2026 Unity Technologies
LegalPrivacy PolicyCookiesDocumentation Terms of UseDo Not Sell or Share My Personal InformationYour Privacy Choices (Cookie Settings)

"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S and elsewhere (more info here). Other names or brands are trademarks of their respective owners.

Some pages are machine-translated for convenience, and may contain inaccuracies. In the event of conflicting information, the English version is authoritative.

  • On this page
    • Command

    • Arguments

    • Options