# Get module spec

> Get the OpenAPI specification for a Cloud Code module.

Get the OpenAPI specification for a Cloud Code module.

## Command

Authentication Required: `Yes`

```text
ugs cloud-code modules get-spec <module-name> [options]
```

## Arguments

`<module-name>` Name of the target module

## Options

|             | Alias                  | Description                                                                 |
| ----------- | ---------------------- | --------------------------------------------------------------------------- |
| project-id  | -p, --project-id       | The Unity cloud project ID.                                                 |
| environment | -e, --environment-name | The services environment name.                                              |
| version     | --version              | Which version to describe: `latest`, or a version number. Defaults to live. |
| 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.                                              |

## Describing a specific version

Without `--version`, the live version's specification is returned. Supply a version number, as
listed by [`modules get --versions`](get), to describe an older version instead:

```text
ugs cloud-code modules get-spec MyModule --version 1788856057800102
```

Supplying a version requires module versions to be enabled for the project.
