Documentation

Unity Gaming Services CLI


GitHub Repository

Unity Gaming Services CLI


Create script

Create a Cloud-Code script.
Read time 1 minuteLast updated 21 hours ago

Create 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 create <script-name> <file-path> [options]

Arguments

<script-name>
The name of the script to create
<file-path>
File path of the script to copy

Options

Option

Alias

Description

project-id-p, --project-idThe Unity cloud project ID.
environment-e, --environment-nameThe services environment name.
type-t, --typeType of the target script.
language-l, --languageLanguage of the target script.
help-?, -h, --helpDisplay help and usage information.
quiet-q, --quietReduce logging to a minimum.
json-j, --jsonUse JSON as the output format.