# Publish script

> Publish a Cloud-Code script.

Publish a Cloud-Code script.

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

## Command

Authentication Required: `Yes`

```text
ugs cloud-code scripts publish <script-name> [options]
```

## Arguments

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

## Options

|             | Alias                  | Description                         |
| ----------- | ---------------------- | ----------------------------------- |
| project-id  | -p, --project-id       | The Unity cloud project ID.         |
| environment | -e, --environment-name | The services environment name.      |
| version     | -v, --version          | Version of the script to republish. |
| 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.      |

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