# Unity CLI v1.3.0

### Breaking changes

- `unity skill install` no longer installs `ui`, `ui-imgui`, `ui-ugui` or `ui-uitk` (use `create-ui`), and three skills have new names: `2d-pixel-perfect` is `configure-2d-pixel-perfect`, `asset-transformer-toolkit` is `import-and-optimize-cad-models`, and `audio-setup-mixers` is `route-audio-to-mixer-groups`. `--skill` with a retired name exits with an error that lists the current names. If you installed a retired skill, run `unity skill uninstall <name>` and install its replacement: until you do, `unity skill refresh` reports it as not downloaded.

- `unity pipeline cloud-build targets create` and `targets update` check the whole body against the service's field rules before any request, and fail with exit `2` and every invalid field in `data.fields`, where the service refused the body with exit `6`. An unknown field, a value still holding the `***` mask from saved output, and a key repeated in one object now fail before sending. A script that matched exit `6` for an invalid body should check `2`.

- With `--json` or `--format ndjson`, `unity command editor dialog`, `unity command editor dialog answer` and `unity command editor lifecycle` return the Editor's own JSON as `data` instead of `endpoint`, `exitCode` and `output` wrapping its text. Only Unity 7.0 Editors answer these commands. `editor dialog` returns the open dialog (or `null` when none is open). `editor lifecycle` returns `pid`, `unityVersion`, `batchMode`, `phase`, `projectPath`, `safeMode`, `compiling` and `dialog`. Failures, other `unity command editor` commands, and an Editor that answers text keep the `endpoint`, `exitCode` and `output` shape.

### Added

- `unity ci init --container` generates a GitHub Actions workflow that runs every job in Unity's official `unity/editor-base` container image and installs the Headless Editor there. It builds the `StandaloneLinux64` target, and needs Unity 6000.7 or later, a self-hosted Linux x64 runner, and a floating license server: set the repository variable `UNITY_LICENSE_SERVER` to its URL.

- `unity skill list` shows each installed skill's version: the Unity-Technologies/skills commit it came from, or the CLI version that wrote it. It also shows whether the copy was edited since, and whether it trails what this CLI installs, with an estimate of how many releases behind it is: `version`, `modified`, `current` and `behind` in `--format json` and `tsv`.

- `unity doctor` now sends one request to Unity services through the configured proxy and reports a failed check with its reason: connection refused, authentication required (407), blocked (403), an untrusted TLS certificate from an intercepting proxy, or a timeout. `unity doctor --ci` notes that its network check already goes through the proxy.

- On Windows, the CLI signs in to proxies that offer only NTLM authentication with your Windows identity, as it already did for Negotiate (Kerberos) proxies.

- `unity plugin update` upgrades plugins, the same as `unity plugin upgrade`.

- `unity skill install` now installs the `instrument-game-telemetry`, `create-ui`, `light-scene` and `transform-cli` skills.

- `unity pipeline cloud-build project update --file <path>` changes the project's Build Automation settings from a JSON file.

- `--dry-run` on `unity pipeline cloud-build targets create`, `targets update` and `project update` checks the body and prints what would be sent, without sending it or signing in. For `targets update`, the printed body leaves out what the CLI reads from the stored target before sending, such as its name when the body has none, and its other build options when you pass `--development-build` or `--no-development-build`. `--force` sends a body the CLI's field rules refuse.

### Changed

- Usage analytics now sends template and skill names only when Unity publishes them. A project created from your own template is recorded as a custom template, and a skill name you pass to `unity command --skill` that Unity does not publish is recorded as `other`.

### Fixed

- The GitHub Actions workflow from `unity ci init` sets the floating license server without `sudo` when the job already runs as root.

- `unity editors --releases` now fails when the releases service can't be reached or answers with an error status, as `unity releases` does. Before, it reported success with an empty list and exit code 0. An unreachable service exits with code 7, a timeout with 14, a 401 or 403 with 3, and any other error status with 6.

- A request that fails through a proxy now says so and names the proxy, with its credentials hidden. A proxy that can't be reached gets its own message instead of one generic network error. An `http://` proxy that answers `407` (check the proxy's username and password) or `403` gets its own message too. When a proxy is already set, the TLS and connection errors no longer tell you to set one.

- `--log-proxy` frames now record the status a proxy answered the tunnel request with (`proxyStatus`, such as 407 or 403) next to the error code, and name the proxy a Windows or macOS system proxy sends a request through instead of `resolvedProxy: null`.

- `unity bug` now reports why a report could not be sent. A refused or unreachable proxy, or an unreachable endpoint, is a network error (exit code 7) that names the proxy and the host. A proxy that requires authentication says so, a rejection such as HTTP 413 shows its status, and a connection that drops mid-upload says the upload was interrupted. Before, all of these read "send failed because receiver is gone".

- `--log-proxy` and `UNITY_LOG_PROXY` now log every outbound request, including the `unity bug` upload, downloads and the background update check. Each entry's new `route` field shows whether that request went through the proxy or direct, and why (for example `direct-no-proxy` for a host in `NO_PROXY`), and `resolvedProxy` is now the proxy that request used.

- A proxy variable such as `UNITY_PROXY` set with surrounding quotes (what `set UNITY_PROXY="http://host:8080"` stores in cmd.exe) is now used instead of being ignored. A proxy variable the CLI cannot use, such as a host with no port, now prints a warning naming the variable and the reason, instead of being skipped without a word, and so does a `NO_PROXY` entry wrapped in or left with a stray quote.

- `UNITY_LOG_PROXY` now also accepts `yes` and `on` (any case), and warns that it ignores a value it does not recognize instead of ignoring it without a word.

- A proxy that asks only for an authentication method the CLI doesn't support, such as Digest, now fails with an error naming the methods the proxy offered and the ones the CLI supports, instead of a generic network error.

- The background check for CLI updates now uses the `--proxy` or `--proxy-disable` you passed to the command that started it, instead of connecting directly or through another proxy setting.

- `unity --help` no longer lists a PAC script as a `--proxy` example. The CLI never accepted one there. To use a PAC script, set it in your operating system's proxy settings.

- `unity pipeline cloud-build targets update --file` with `--development-build` or `--no-development-build` keeps the file's build options and only adds or removes the development option, instead of replacing them with the target's stored ones.

- `unity pipeline automation` commands accept hotfix versions such as `1.0.0-fix.1` instead of refusing them with exit 2.

### Security

- `unity doctor` no longer prints the signed-in user's name and email. The json output drops `auth.name` and `auth.email`.
