文档

Command Line Interface Overview

Overview of the Unity Hub command-line interfaces, including the Unity CLI (a standalone binary) and the Hub CLI that runs through the Unity Hub desktop application.
阅读时间1 分钟最后更新于 2 天前

The Unity Hub provides a command-line interface (CLI) for installing and managing Unity Editors, modules, and related workflows from a terminal. Two variants are available:
  • Unity CLI — a standalone binary (
    unity
    ) that you can install, update, and use independently of the Unity Hub desktop application. Recommended for new scripts, automation, and CI pipelines.
  • Hub CLI — the CLI that runs inside the Unity Hub desktop application in headless mode (invoked with
    -- --headless
    ). Still supported for existing workflows.
注意
Both CLIs are experimental and full feature parity with the Unity Hub UI is not guaranteed.