Request for CLI (and bonus macOS request)

Apparently this specific sub-forum is moderated a bit differently than all the others, alas. See my requests below, both basically trying to achieve the same goal just in different ways (ie trying to solve my issue in a way that Unity can achieve w/ the least effort/time involved on their end).

REQUEST #1 – Command Line Interface for Unity Hub
Would really like to be able to use the Hub via CLI, as well. See this thread which I bumped yesterday , and that was locked today (lol) – my point, though, is simply that multiple people do want this.

My goal: Ability to open a Unity project, in the proper editor version, without the CLI command that is used needing to contain anything other than: A) path to the Unity Hub (constant), and; B) path-to-project.

From there, the Hub can open the project with the proper editor version based on the meta-data that it has. And of course, it can just throw an error or pop a dialog if the editor version required isn’t available, etc. – same as it does now, just from the CLI.

Basically, I have two constants: UNITY_HUB_PATH and PROJECT_DIR. The unknown is editor version & editor path (we generally are pretty-constantly upgrading through each minor release), and we don’t want to have to re-invent the wheel & track the editor version ourselves / externally.

PURPOSE / CONTEXT of this is so that we can create an alias / shortcut / bash script to open up a Unity project and, specifically on macOS, because I want to be able to set a custom “icon” for the bash script/alias – goal being that, when I have 5 Unity projects open (each in their own Unity instance), I can have the macOS ‘Dock’ icon be displaying a project-specific icon for fast visual ID / workflow reasons.

REQUEST #2 – Allow for unique macOS ‘Dock’ Icons and/or Hover Text
I explain this in further depth over in this thread which I posted on macOS sub-forum somewhat recently.

Issue is that on macOS each Unity instance in the Dock is identical, and so is the hover-text. So there’s no way to tell which currently-running Unity editor instance has which project open – which leads to clicking on each until you find the project you’re looking for. I often have 2-3 projects open at once, and occasionally I’ll even sometimes have as many as 5+ open; it’s a workflow disaster. On Windows, the “hover text” already does contain the project name (and Windows shows a thumbnail-style ‘screenshot’), which is great – basically I’d just like similar on macOS, either let me customize the editor icon per-project [ideal!], or let me add a “notification badge” to the icon per-project (ie let me pick a color in project settings), or just have the hover-text say “Unity - ${PROJECT_NAME}” instead of them all simply saying “Unity” as they do now.

Thank you.

We strongly recommend users to create new threads and not necropost old ones, which is why that thread was locked. That said, thank you for creating a new one for your request.

I’ll raise your feedback with the Hub team! :wink:

Backing this up. Currently using CLI to create CI workflows in Unity is hell, and I do not want to use Unity cloud services

I’ve recently spoken with the Hub team, and got the info that CLI will be addressed in a future version of the Hub!
Thank you for bringing this to our attention! :slight_smile:

Awesome, thank you! :slight_smile:

How about the macOS-specific “icon” issue? It’s literally impossible to know which instance of Unity is which atm.

Would love to hear a fix for that is in the pipeline (it isn’t an issue on Windows - the project name already appears in the hover, along with a screenshot)!