Hub CLI reference
Look up Hub command line interface (CLI) commands, flags, options, and module IDs for headless mode.
Read time 3 minutesLast updated a day ago
This page lists Hub CLI commands, flags, and module IDs. The Hub CLI is part of the Unity Hub desktop application and runs in headless mode. For examples on each platform, refer to Use the Hub CLI.
Global flags
Flag:--errors- By default, the console output omits some errors.
- Add the flag to the command to include those errors in the output.
--errors
Display help
Command:helph-- --headless help-- --headless h--headless-- --headlessManage Editors
Command:editorseOption | Alias | Description |
|---|---|---|
| | Lists available releases and installed Editors on your machine. |
| | Lists available releases. |
| | Lists installed Editors on your machine. |
Set/Get install path
Command:install-pathipOption | Alias | Description |
|---|---|---|
| | Sets the Editor install path to the given path. |
| | Shows the current Editor install path. |
Install Unity Editors
Command:installiOption | Alias | Required? | Usage | Description |
|---|---|---|---|---|
| | Yes | | Editor version to install. |
| | No | | Editor changeset. Required if the version is not in the release list. Run |
| | No | | Module ID. You can pass multiple module IDs. Refer to Install modules. |
| | No | | Also downloads child modules for the specified |
| | No | | macOS only: Select the Apple Silicon or Intel Editor build. Default: Intel ( |
Install modules
Command:install-modulesimOption | Alias | Required? | Usage | Description |
|---|---|---|---|---|
| | Yes | | Installed Editor version to add the module to. |
| | Yes | | Module ID. You can pass multiple module IDs. |
| | No | | Also downloads child modules for the specified |
Available modules
The following table lists modules you can install. You can also list modules with display help.Module | Module ID |
|---|---|
| Documentation | |
| Android Build Support | |
| Android SDK & NDK Tools | |
| OpenJDK | |
| iOS Build Support | |
| tvOS Build Support | |
| Language packs | |
| Linux Build Support (Mono) | |
| Linux Build Support (IL2CPP) | |
| Lumin OS (Magic Leap) Build Support | |
| Microsoft Visual Studio | |
| Mac Build Support (Mono) | |
| Mac Build Support (IL2CPP) | |
| Mac Dedicated Server Build Support | |
| Universal Windows Platform Build Support | |
| UWP Build Support (IL2CPP) | |
| UWP Build Support (.NET) | |
| Web Build Support | |
| Windows Build Support (Mono) | |
| Windows Build Support (IL2CPP) | |
| Windows Dedicated Server Build Support | |
Log locations
To view Hub logs, use either of these options:- In the Hub, go to Account > Help and Support > Logs.
- Open the log folder on your system:
- Windows:
%UserProfile%\AppData\Roaming\UnityHub\logs - Mac:
~/Library/Application Support/UnityHub/logs - Linux:
~/.config/UnityHub/logs
- Windows: