Skip to main content

Get script

Get a Cloud-Code script.

Command

Authentication Required: Yes

ugs cloud-code get <script-name> [options]

Arguments

<script-name> The name of the script to get

Options

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

JSON Output

You can use the --json option and JQuery to output the result of the get command to a file (script.js as example). ugs cloud-code get <script-name> [options] --json | jq -r '.Result.ActiveScript.Code' > script.js