TL;DR
Unity has introduced a new command-line interface (CLI) that allows developers to manage editors, projects, and runtime sessions directly from the terminal. This tool supports automation, CI workflows, and AI-driven game development, with both the CLI binary and experimental API package now available.
Unity has launched a standalone command-line interface (CLI) that enables developers to manage and interact with Unity editors, projects, modules, and runtime sessions entirely from the terminal. This new tool aims to facilitate automation, scripting, and AI integration, marking a significant shift towards terminal-centric workflows in Unity development.
The Unity CLI is a self-contained binary that requires no dependencies, offering fast startup times compared to previous headless options. It supports installation via platform-specific package managers and can be used to install editors, manage modules, and authenticate without manual intervention. The CLI outputs structured JSON or TSV data, with clear exit codes, making it suitable for automation and CI pipelines.
Alongside the CLI, Unity has introduced an experimental com.unity.pipeline package that allows the CLI to communicate with a running Unity Editor or Player build over a local API. Developers can expose custom commands within their projects using attributes like [CliCommand], enabling automation of tasks such as triggering imports, running tests, or executing live C# code inside a running session. This API also supports querying runtime status and hot-reloading code in active builds.
These tools together enable AI agents and scripts to observe, act upon, and verify changes in a live Unity environment without manual input, exemplified by a demo where an AI identifies and fixes a bug in a running game scene.
Streamline Your Gaming Workflow With the Unity CLI
Unity is moving development beyond the Editor window. Its standalone command-line interface manages editors, projects, modules, authentication, and runtime sessions directly from the terminal—giving automation systems, CI pipelines, and AI agents a faster route into the game-development loop.
One terminal layer across the Unity toolchain
The CLI replaces fragmented manual steps with scriptable operations that can be repeated consistently on developer machines, build agents, and testing environments.
Install editors
Discover, install, and manage multiple Unity Editor versions without navigating Unity Hub manually.
Manage modules
Add platform modules and dependencies as part of reproducible setup scripts for each project or build target.
Authenticate unattended
Prepare automated environments without pausing workflows for repeated graphical sign-in interactions.
Return structured data
Consume JSON or TSV responses and use predictable exit codes to branch, retry, verify, or stop pipelines.
Reach live sessions
Use the experimental pipeline package to communicate with a running Editor or Player over a local API.
Expose custom commands
Decorate project methods with [CliCommand] to make project-specific actions available from the terminal.
As an affiliate, we earn on qualifying purchases.
From command to verified game-state change
The biggest shift is not simply launching Unity from a shell. It is creating a closed automation loop that can observe a live session, act on it, and confirm the result.
Observe
Query Editor, project, or runtime status in a machine-readable format.
Decide
A script, pipeline, or AI agent evaluates the returned state.
Execute
Trigger an import, test run, build task, or custom project command.
Reload
Apply updated C# logic or runtime modifications to the active session.
Verify
Read the resulting status and confirm that the intended change worked.
$ unity editor install
How the CLI changes everyday development
The standalone CLI adds a consistent control plane, while the pipeline package extends that control into running Unity sessions.
| Capability | GUI-heavy workflow | Unity CLI workflow | Pipeline API |
|---|---|---|---|
| Editor installation | ~ Manual navigation | ✓ Scriptable | ✗ Not its role |
| Multiple Unity versions | ~ Hub-managed | ✓ Terminal-managed | ✗ Not its role |
| Machine-readable output | ✗ Limited | ✓ JSON or TSV | ✓ Queryable state |
| CI/CD integration | ~ Extra setup | ✓ Clear exit codes | ~ Experimental |
| Custom project actions | ~ Manual triggers | ~ Via integration | ✓ [CliCommand] |
| Live runtime interaction | ~ Editor-led | ~ Session gateway | ✓ Local API |
| Production maturity | ✓ Established | ✓ Automation-ready | ~ Experimental |
Automation readiness
Relative fit based on the announced feature set—not a performance benchmark.
What remains uncertain
The foundation is available, but adoption and long-term stability will determine its wider impact.
A development chain built for machines and humans
Structured commands connect environment setup to runtime verification, giving every automated action a readable input, output, and result.
What developers need to know
The stable CLI is the practical starting point. Treat the live-session package as a promising experimental layer that should be evaluated carefully before critical production use.
How is it installed?
Platform-specific shell or PowerShell installation is available. Support for mainstream package managers is planned.
Can it manage multiple versions?
Yes. Editor versions and their modules can be managed for multi-version projects and test matrices.
Is it suitable for CI?
Yes. Structured output, explicit exit codes, fast startup, and unattended setup make the CLI automation-friendly.
What does the pipeline package add?
It connects terminal commands to a running Editor or Player for imports, tests, live C# execution, status queries, and runtime changes.
Can AI agents operate Unity?
The tools enable an observe–act–verify loop, but fully autonomous operation still depends on safeguards, tooling maturity, and project-specific commands.
What should teams test first?
Begin with repeatable setup, version management, build automation, and test execution before introducing live runtime modification.
Unity’s CLI turns the terminal into a practical control surface for faster setup, reproducible builds, automated testing, and emerging AI-driven workflows.
Implications for Automated and AI-Driven Development
This release represents a major step forward in Unity’s support for automation and AI integration. By enabling terminal management of editors and live sessions, Unity lowers the barrier for scripting, CI/CD workflows, and AI agents to operate directly within game development environments. Developers can now automate complex tasks, improve testing efficiency, and leverage AI for real-time scene adjustments, reducing manual overhead and accelerating development cycles.
Evolution of Unity Development Workflows
Traditionally, Unity development relied heavily on graphical interfaces and manual interactions within the Editor. While automation via scripting has existed, it often required complex setups or manual triggers. The recent introduction of the CLI and the experimental pipeline package reflects a broader industry trend toward terminal-based workflows, driven by the rise of CI/CD pipelines and AI automation tools. Unity’s move aligns with these trends, providing tools to manage projects, modules, and live sessions programmatically and remotely.
This development builds on previous features like headless builds and command-line project management, offering a more integrated and flexible approach to automation and live debugging in Unity.
“The new CLI empowers developers to automate and script their workflows more efficiently, integrating Unity into modern CI/CD pipelines and AI-driven processes.”
— Unity Technologies spokesperson
Unconfirmed Capabilities and Future Developments
While the CLI and pipeline package are available now, it is not yet clear how extensively third-party developers will adopt the API or how mature the runtime command features will become. Details about long-term support, stability, and integration with existing Unity tools remain to be seen. Additionally, the scope of AI agent capabilities and real-time scene manipulation is still evolving, with further updates expected.
Upcoming Features and Developer Opportunities
Unity plans to expand support for package managers like brew, winget, and apt, simplifying installation. Future updates may include more commands, enhanced runtime API features, and broader documentation for integrating AI agents and automation scripts. Developers are encouraged to experiment with the pipeline package and provide feedback to guide its evolution. Unity will likely showcase new use cases and integrations at upcoming developer conferences and releases.
Key Questions
How do I install the Unity CLI?
You can install the CLI using platform-specific commands, such as curl for macOS/Linux or PowerShell for Windows. Support for package managers like brew, winget, and apt is coming soon. Detailed instructions are available in the official Unity CLI documentation.
Can the CLI manage multiple Unity versions?
Yes, the CLI supports installing and managing different Unity editor versions and modules, making it suitable for multi-version projects and testing environments.
What is the experimental pipeline package used for?
The pipeline package enables the CLI to communicate with a running Unity Editor or Player, allowing commands to be executed live, such as triggering imports, running tests, or modifying the scene dynamically.
Is the CLI suitable for production automation?
Yes, the CLI is designed for automation and CI workflows, with structured output, clear exit codes, and unattended install options. However, some features like the runtime API are still experimental.
Will AI agents be able to operate Unity fully now?
The tools lay the groundwork for AI integration, enabling agents to observe, act, and verify in real-time. Full AI operation capabilities will depend on further development and community adoption.
Source: Hacker News