Search Unity

[Feature Request] Query preferred version from command line

Discussion in 'Unity Hub' started by RG_Keith, Oct 5, 2018.

  1. RG_Keith

    RG_Keith

    Joined:
    Mar 14, 2017
    Posts:
    35
    For scripting and automation, it would be really handy if I could run Unity Hub from the command-line and ask it the location of the preferred version of Unity installed. Eg:

    > "Unity Hub.exe" --preferredVersion
    C:\Program Files\Unity\Hub\Editor\2018.2.11f1\Editor\Unity.exe


    It would help a few different automation cases we have, eg. to make it easy to update version of Unity used by the build machine.
     
  2. RG_Keith

    RG_Keith

    Joined:
    Mar 14, 2017
    Posts:
    35
    Looking through the forum a bit more, it seems this is similar to other CLI requests.