Unity Hub window visible when running in --headless mode

According to the Unity Hub release notes, there is a headless mode since version 2.1.

However, starting the Hub with the --headless option still shows the window. This is impractical if you want to use the headless mode to install the necessary Unity version(s) from a build or bootstrap script. I tried running it from Cmd or Powershell with or without admin rights:

"Unity Hub.exe" -- --headless editors

With Unity.exe, the -batchmode option completely hides all UI during a build.

1 Like

Same issue here.

+1 for improvements to the CLI experience.

2 Likes

It seems that --headless indeed prevents the Unity Hub window opening, IF it’s not already running (minimized to the task tray). If it’s running in the background, --headless will still cause a window to open. I guess this not that big of an issue, since you can just not have Hub run by default on the headless build machine.