文档

​
​

Development

User Acquisition

Monetization

工业

Unity command-line interface (CLI)

Download Unity Hub

Unity command-line interface (CLI)

此页面不支持所选语言。
​
​
Unity command-line interface (CLI)
  • Introduction to the Unity CLI
  • Use the Unity CLI
  • Unity CLI reference
  • Replace MCP Server with Unity CLI
  • Unity CLI release notes
  1. Unity command-line interface (CLI)

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 分钟
最后更新于 23 天前

注意
The Unity CLI is experimental.
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.
注意
To use the Unity CLI to control the Unity Editor, install and set up the Unity Pipeline package. For an example of how you can use the Unity CLI with Unity Pipeline, refer to the Unity CLI introduction video.
If you have existing scripts that use the Hub CLI's
-- --headless
syntax, review the migration guide in the Unity CLI reference.
Use the Unity command-line interface (CLI)Install the CLI, update it, and complete common tasks such as installing Editors, adding modules, signing in, and opening projects.
Unity command-line interface (CLI) referenceFind commands, options, output formats, exit codes, and migration information for the Unity CLI.

Unity CLI introduction video

The following video gives an overview of the Unity CLI and how you can use it with the Unity Pipeline package.

Copyright © 2026 Unity Technologies
法律信息隐私政策CookiesDocumentation Terms of Use请勿出售或分享我的个人信息您的隐私选择(Cookie 设置)

“Unity”、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属公司在美国和其他地方的商标或注册商标(此处查看更多信息)。其他名称或品牌是其各自所有者的商标。

为方便起见,一些页面是机器翻译的,可能包含不准确的内容。如有信息不一致的情况,以英文版本为准。

  • 在本页上
    • Unity CLI introduction video

  • 其他资源
  • Use the Unity command-line interface (CLI)
  • Unity command-line interface (CLI) reference