Batchmode via Unity Hub ?

I read there is a batchmode option in Unity to allow one to drive Unity via the command line.

I am building headless CI/CD tools around such capabilities.

I have access to Unit Hub 3.2.0 (Linux), the documentation mentioned Unity have the batchmode option but as far as I can tell, my installation comes only with

  • /opt/unityhub/unityhub

  • /opt/unityhub/unityhub-bin

Should I be launching unity via hub (command line args ?) to then get access to the batchmode in unity itself ?

Cheers

Looks like you’ve only installed the unity hub. You will need to install the Unity Editor itself in order to run the editor (batchmode or not).

Ah! My bad. I was expecting to find Unity in the /opt directory but it is actually installed in my home directory

/home/nyue/Unity/Hub/Editor/2021.3.8f1/Editor/Unity

I can resume now.