Introduction to the Unity command-line interface (CLI)
Install, update, and use the Unity CLI to manage Unity Editors and modules from a terminal.
阅读时间1 分钟最后更新于 3 天前
The Unity CLI is a standalone command-line tool for installing and managing Unity Editors and modules from a terminal. The Unity Hub now automatically installs the Unity CLI. Since it's distributed as its own binary, you can install, update, and also use it independently of the Unity Hub desktop application.
The Unity CLI is well suited for:
- Continuous integration (CI) and build agents where installing the full Hub is undesirable.
- Scripting and automation that needs structured output (JSON or TSV) and predictable exit codes.
- Users who prefer a terminal-first workflow for everyday Hub tasks.
If you have existing scripts that use the Hub CLI's syntax, review the migration guide in the Unity CLI reference.
-- --headlessUnity CLI introduction video
The following video gives an overview of the Unity CLI and how you can use it with the Unity Pipeline package.