QUICK ANSWER

The Unity CLI release notes for 1.0.0-beta.16 and beta.15 add four things that matter for scripted builds. unity build --target can now use an Editor that already has the project open. New exit codes 17, 18 and 7 replace the generic 6 for a busy Editor, a blocking dialog and network failures. JSON, NDJSON and TSV output is more consistent, and Android keystore passwords can come from environment variables. It is still a beta, and custom build methods and most build flags still need the Editor closed, so solo developers who build by hand a few times a month can wait.

The latest Unity CLI release notes cover 1.0.0-beta.16 and beta.15. For scripted builds, these are the useful new features:

  • unity build can work through an Editor that is already open.
  • Separate exit codes cover a busy Editor, a blocking dialog and network failures.
  • JSON and TSV output is more consistent.
  • Android signing passwords can be read from environment variables.

Much of the rest is plumbing for AI agents. The CLI is still in beta, so flags and behaviour can change between releases.

This note doesn't repeat the changelog. It sorts the changes by the parts of a solo developer's build and CI setup they affect: builds, exit codes, output formats and secrets. Then it looks at who can skip the CLI for now.

What is the Unity CLI, and where is it in the release cycle?

According to Unity's Use the Unity CLI page, the Unity CLI is a standalone binary. It installs Editors and modules, opens and manages projects, and runs without the Hub desktop app. Unity names three audiences: CI pipelines, scripts that want JSON or TSV output and predictable exit codes, and people who prefer the terminal. The same page says that controlling a running Editor requires the Unity Pipeline package in the project.

The release notes page was updated on 3 November 2026. It lists 1.0.0-beta.16 at the top, and beta.15 is dated 29 October 2026. Two betas in under a week is a fast pace, and several of the changes below alter behaviour that existing scripts may rely on.

Supported systems and install options

The docs list these supported systems:

  • Windows 10 21H1 or later
  • macOS 14 or later
  • RHEL 9, and Ubuntu 22.04 or later, with glibc 2.34 or newer

The docs name Debian 11, CentOS 8 and Amazon Linux 2 as unsupported. That matters if your build machine or CI runner image uses an older Linux.

Install options are Unity's install script, the Homebrew cask unity-cli, winget (Unity.CLI), and the apt and rpm repositories. According to the docs, beta builds go to the unstable suite and GA builds to stable. Pin to the suite you intend to track.

What changed for builds in beta.16?

unity build can use an open Editor

The headline change is that unity build --target now builds through an Editor that already has the project open. Earlier versions refused. It also switches that Editor's active build target. According to the release notes, --timeout and Ctrl+C stop the CLI's wait without closing the Editor or cancelling the build that is running in it.

The notes list clear limits:

  • An Editor that is in Play Mode, compiling or showing a dialog is refused with a hint.
  • These options still need the Editor closed: --execute-method, --profile, --args, --accelerator, --log-file, --editor-path, a different --editor-version, --architecture, --build-target-group and all --android-* options.

So if your build runs a custom static build method or passes Android settings on the command line, you still have to close the Editor first. The open-Editor path mainly helps quick local builds with default settings.

Architecture and log fixes

According to the notes, unity build, run and test with -a arm64 or -a x86_64 used to launch an Editor of the other architecture when only that one was installed. They now fail with a not-installed error (exit 6). Adding --allow-install installs the architecture you asked for. A --log-file path in a folder that can't be created now gives a clear error up front instead of failing later.

Test reruns no longer pass by accident

unity test --rerun-failed now exits 6 when the --output file is empty or contains no NUnit run. Before this fix, it reported no failures and exited 0. A nightly job that uses rerun-failed may now show a failure where it used to pass silently. That is the correct result, but some builds may turn red after you upgrade.

Which exit codes and output formats make scripts reliable?

New and moved exit codes

Beta.16 splits up the old catch-all failure code. According to the release notes:

CodeNameMeaningBefore beta.16
7NETWORK_UNREACHABLENetwork failure6
14EDITOR_TIMEOUTunity command timed outnot stated
17UNAVAILABLEEditor loading, compiling, reloading, in Safe Mode or overloaded6
18AWAITING_INPUTA modal dialog is blocking the Editor6

The Output formats and automation reference documents the base set of codes:

  • 0: success
  • 2: usage error
  • 3: auth failure
  • 4: configuration required
  • 6: primary operation failed
  • 7: service unreachable
  • 8: tests ran and some failed (unity test only)

The page says 7 is safe to retry, 6 is terminal, and 8 should never be retried.

The table on that reference page does not include 14, 17 or 18. Check the reference page and unity --help for your installed version before you build retry logic around them. The CLI reference index says --help is the authoritative list of commands. A wrapper like this one spells out the retry policy:

unity build --target android
code=$?
case $code in
  0) echo "build ok" ;;
  7|17) echo "transient failure ($code), retrying" ;;  # confirm 17 in your version's docs
  18) echo "Editor dialog is blocking; inspect with: unity command editor dialog" ;;
  *) echo "terminal failure ($code)"; exit $code ;;
esac

Scripts that treated any exit 6 as "Editor busy, try again" will now get 17 or 18 instead. Review them before you upgrade.

JSON, NDJSON and TSV output

unity command now accepts --format json, ndjson or tsv, plus --fields to choose columns. The notes include two details that affect parsers:

  • With Editors that format their own output, JSON drops the success/command/parameters/target envelope.
  • TSV output has no header row.

The notes also list several fixes that make --format tsv and --quiet work properly in pipes. For example, --quiet no longer empties TSV tables.

Dialogs that block the Editor

Modal dialogs often cause headless runs to hang. According to the release notes, unity command editor dialog shows which dialog is blocking the Editor, and unity command editor dialog answer <id> <button> presses a button on it. The notes also report a fix that stops new URP projects from opening on the URP Material upgrade dialog, which had blocked every Editor command.

How do secrets work now?

These are the simplest improvements for a CI setup:

  • Android signing. According to the beta.15 notes, the CLI reads the keystore and key alias passwords from UNITY_ANDROID_KEYSTORE_PASSWORD and UNITY_ANDROID_KEY_ALIAS_PASSWORD when no flag is passed. The flags still work and take precedence.
  • Tokens for scripts. unity auth token prints only an access token on stdout (beta.15).
  • Service accounts. According to the docs, headless sign-in uses UNITY_SERVICE_ACCOUNT_ID and UNITY_SERVICE_ACCOUNT_SECRET.
  • Git tokens. Build Editors no longer inherit UNITY_GITHUB_TOKEN or UNITY_GITLAB_TOKEN.

One caveat: passing --android-* flags still requires a closed Editor. Putting passwords in environment variables keeps them out of process listings and shell history, but it doesn't remove that requirement.

What did CI, cloud build and version control gain?

Generated pipelines and licensing

unity ci init --provider gitlab now writes a pipeline that handles project folder names containing : or #. In beta.15, unity license activate takes the serial from the step environment and masks it in the GitHub Actions log. Generated pipelines also set service-account secrets only on the steps that need them.

Cloud Build management

unity pipeline cloud-build can now:

  • create and update build targets
  • add repository connections
  • upload signing credentials (android, ios, osx, uwp)
  • list audit logs
  • check free-tier status

The notes say secrets come from stdin or environment variables, not from arguments. These commands run on Unity's cloud services, and the release notes don't mention pricing.

Scene and prefab diffs

According to the notes, unity vcs diff, summarize --objects, --to and the guid commands show object-level changes in scenes and prefabs. That could make Unity's YAML changes easier to review than a raw text diff. The notes also list a Windows fix for unity vcs doctor --fix when it repairs .gitignore and .gitattributes.

A cloud side effect to watch

The docs say unity projects create creates a Unity Cloud project entry by default and requires sign-in. Pass --no-cloud or set UNITY_NO_CLOUD to keep the project local. Beta.16 also adds a liveops_enabled Remote Config switch and Cloud Save to cloud-linked projects, and --bare leaves Cloud Save out. For local-only projects, setting UNITY_NO_CLOUD in your shell profile is the simplest option the docs describe.

Why are the notes full of AI-agent features?

Much of beta.15 and beta.16 is plumbing for AI agents:

  • unity skill install and sync
  • Setup targets for Claude Code, Codex, Grok, Copilot, Antigravity, Qwen, VS Code and OpenCode
  • MCP tools, including detached job_start, job_status, job_wait and job_cancel

One change in behaviour: unity setup all no longer registers the Unity MCP server for agents that can run shell commands. According to the notes, those agents call the CLI directly instead. Run unity mcp configure <client> to add MCP back. If you followed our Unity MCP setup guide, check your client config after you re-run setup.

The security changes apply whether or not you use agents:

  • The CLI no longer runs programs found through relative PATH entries.
  • Skill installs refuse symlinked folders.
  • Build Editors no longer inherit Git tokens.

For the agent side, see our notes on Unity's official Claude Code plugin and Unity's plugin for Codex, and the general guide to setting up Claude Code for game development.

Who benefits from scripted builds with the CLI?

The assessment below is based on Unity's docs and release notes.

Likely to benefit:

  • Solo developers who ship to several platforms and rebuild often.
  • Anyone who runs scheduled tests in GitHub Actions or GitLab.
  • Build machines that manage several Editor versions and modules.
  • Developers who let a coding agent drive Unity. According to the notes, structured output, distinct exit codes and dialog commands target the stuck runs that agents tend to hit.

Probably wait:

  • People who build by hand from the Editor a few times a month. Based on the documented features, the CLI adds little for them yet.
  • Teams on Debian 11, CentOS 8, Amazon Linux 2 or any distro without glibc 2.34.
  • Anyone who needs a stable interface. Exit codes moving from 6 to 7, 17 or 18 within one beta shows that behaviour is still changing.

Migrating from the Hub CLI? If your scripts use the Hub CLI's -- --headless syntax, read the "Migrate from Hub CLI" page linked from the reference index before you switch.

Verdict: according to the release notes, these two betas mostly make existing automation more reliable through clearer exit codes, cleaner output and safer handling of secrets. The headline build change only helps when the Editor is already open. Custom build methods, Android flags and most other build options still need it closed. More Unity coverage is under /tags/unity, and agent tooling is under /tags/coding-agents.

FAQ

What is the Unity CLI and how is it different from the Hub CLI?

According to Unity's docs, the Unity CLI is a standalone binary that installs Editors and modules and manages projects without the Hub desktop app. It is built for CI and scripting, with JSON or TSV output and predictable exit codes. If your scripts use the Hub CLI's '-- --headless' syntax, read Unity's 'Migrate from Hub CLI' page for breaking changes.

Can unity build run while the Editor is open?

From beta.16, yes, for basic builds. The release notes say unity build --target can build through an Editor that already has the project open and will switch its build target. Options such as --execute-method, --log-file, --architecture and the --android-* flags still need the Editor closed. An Editor that is in Play Mode, compiling or showing a dialog is refused.

What do the Unity CLI exit codes mean, and which are safe to retry?

Unity's output formats reference lists 0 success, 2 usage error, 3 auth failure, 4 configuration required, 6 terminal failure, 7 service unreachable (safe to retry) and 8 for failed tests in unity test (never retry). The beta.16 release notes add 17 for a busy Editor, 18 for a blocking dialog and 14 for unity command timeouts. Check those three against the docs for your installed version before relying on them.

How do I store Android keystore passwords for a scripted build?

According to the release notes, since beta.15 the CLI reads UNITY_ANDROID_KEYSTORE_PASSWORD and UNITY_ANDROID_KEY_ALIAS_PASSWORD from the environment when no password flag is passed. Flags still take precedence if you pass them.

Does the Unity CLI work on Debian or older Linux?

Unity's docs list RHEL 9, and Ubuntu 22.04 or later, with glibc 2.34 or newer as supported. They name Debian 11, CentOS 8 and Amazon Linux 2 as unsupported.

SOURCES