Command line interface overview
Compare the Unity command line interface and Hub command line interface and choose the interface that fits your workflow.
Read time 2 minutesLast updated 5 days ago
Install and manage Unity Editors and modules from a command line interface (CLI) in one of the following ways:
- Unity CLI: The standalone binary. Install, update, and run it without the Unity Hub desktop application. Use it for new scripts, automation, and CI pipelines.
unity - Hub CLI: The headless mode of Unity Hub 3. Unity Hub 4.0 and later don't run Hub CLI commands. Use the Unity CLI instead. For the equivalent commands, refer to Hub CLI.
Unity CLI updates from the Hub
The Unity Hub includes a copy of the Unity CLI. When you start the Hub, it installs that copy if the Unity CLI isn't installed yet, and updates your Unity CLI when the Hub includes a newer version. To check or update the Unity CLI from the Hub, select Tools > Unity CLI in the Hub toolbar.
If you installed the Unity CLI with a package manager, such as Homebrew, apt, or rpm, the Hub doesn't install or update it. Use your package manager to update the Unity CLI instead.
Command reference
For command syntax, flags, and module IDs, refer to Unity CLI reference. If you still use Unity Hub 3, refer to Hub CLI reference.