Search Unity

Would sure be nice if Unity Hub CLI could install versions that aren't the latest patch

Discussion in 'Unity Hub' started by vtclayton, Aug 13, 2019.

  1. vtclayton

    vtclayton

    Joined:
    Mar 23, 2017
    Posts:
    3
    For example, if I execute:

    "Unity Hub.exe" -- --headless install -v 2018.4.5f1 -m android windows


    (at this time, 2018.4.6f1 is the latest 2018.4 patch), then nothing happens.

    However, executing

    "Unity Hub.exe" -- --headless install -v 2019.1.14f1 -m android windows


    (at this time, 2019.1.14f1 is the latest 2019.1 patch), then it does get installed.

    (well, I have to manually click through the UAC, and the Unity Hub Window is created/foregrounded, so it's not exactly headless at all, but I'm sure you're aware of that).

    I want to be able to install not-exactly-the-latest versions of patches, because I don't want to force anyone to update at an inconvenient time.
     
  2. vtclayton

    vtclayton

    Joined:
    Mar 23, 2017
    Posts:
    3
    OK, maybe it's just inconsistent...

    "Unity Hub.exe" -- --headless install -v 2019.2.0f1 -m android windows


    doesn't seem to do anything, even though 2019.2.0f1 shows up in

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


    Oh! The previous version hadn't finished installing. I got that message many minutes later.

    An error message that it was busy doing something else would be nice, but even better:

    The whole "run the command but it's backgrounded and you don't know when it's finished" paradigm on the Command Line is not one I'm used to. Hopefully this is an artifact of it being in preview, and Unity plans on changing it to not exit before the command is done, ... right?
     
    shadownicka likes this.
  3. AbrahamDUnity

    AbrahamDUnity

    Unity Technologies

    Joined:
    Jun 28, 2017
    Posts:
    431
    Hi,

    Thank you for trying out the Hub CLI :D! It's not perfect right now but we'll work on it progressively. You can expect more verbose feedback and install information in the near future.

    As for installing different versions of Unity, you can install any version in the download archive (5.6 and above) from the CLI. Just add the
    --changeset <changeset>
    option along with the version. You can find the changeset at the bottom of a Unity version's release notes page.

    I hope that settles it. Don't hesitate to post more feedback or issues you encounter using the Hub.

    Best,
     
    lquinonescgi likes this.
  4. Baste

    Baste

    Joined:
    Jan 24, 2013
    Posts:
    6,338
    This seems like an oversight. You have the information about what changeset matches what version, so the hub should be able to figure out without us having to provide it.

    The changeset is nice if we need to specify some non-public version of the editor (console version or whatever), but by default writing "install 2018.4.5f1" should just do that.



    I know that you're really stubborn about the Hub not including all the versions we need in the GUI, even though we need them there. Like, you're fighting hard to have your software be bad for some strange PR/whatever reason. But the CLI isn't visible in the GUI, so you could decide to have the CLI not be bad.
    Food for thought.
     
    EirikWahl likes this.
  5. DanielTG

    DanielTG

    Joined:
    Feb 15, 2018
    Posts:
    111
    @Baste

    It’s not an oversight but unfortunately was a limitation we had to accept for this first implementation of the Hub CLI. What you described as install <version> is what we want to implement but requires more work on our backend.

    As far as the UI goes, it’s been mentioned several times before, but just to re-iterate it’s simply about listing the latest “supported” versions of Unity.

    Thanks,
    Daniel
     
    RageAgainstThePixel and Baste like this.
  6. AbrahamDUnity

    AbrahamDUnity

    Unity Technologies

    Joined:
    Jun 28, 2017
    Posts:
    431
    Also, we're working on this for the next CLI iteration. It's coming.
     
  7. MikuriChan

    MikuriChan

    Joined:
    Sep 3, 2018
    Posts:
    5
    @DanielTG @AbrahamDUnity

    Adding support for local files would also be a great update.
    I mean pointing to the complete Unity Editor Installer File and Modules like Android to avoid downloading 300 times the same files in our school.
     
  8. AbrahamDUnity

    AbrahamDUnity

    Unity Technologies

    Joined:
    Jun 28, 2017
    Posts:
    431
    We're working on that too. We're aware that re-downloading the same stuff over all machines in the same network isn't really efficient :D. Expect that feature to arrive Soonish™.

    Cheers,
     
    MikuriChan likes this.
  9. bdovaz

    bdovaz

    Joined:
    Dec 10, 2011
    Posts:
    1,053
    One year later... Same problems...
     
    EirikWahl, Wasp3r and xrtk-build-bot like this.
  10. Wasp3r

    Wasp3r

    Joined:
    Dec 6, 2020
    Posts:
    7
    Still the same problem...
     
  11. bdovaz

    bdovaz

    Joined:
    Dec 10, 2011
    Posts:
    1,053
    Where is that next iteration? Almost 2 years...
     
    EirikWahl and Huszky like this.
  12. Arthur-LVGameDev

    Arthur-LVGameDev

    Joined:
    Mar 14, 2016
    Posts:
    228
  13. androshchuk-vladyslav

    androshchuk-vladyslav

    Joined:
    Dec 13, 2015
    Posts:
    127
    Guys, hi! Still in work?
     
  14. kaynn

    kaynn

    Joined:
    Nov 11, 2017
    Posts:
    1
    bump
     
  15. joaotiagovieira

    joaotiagovieira

    Joined:
    Mar 4, 2020
    Posts:
    2
    Another perfect example of abandoning a tool that could actually be useful. It doesn't make any sense to have to provide the changeset to install a non-latest unity version. Completely defeats the purpose of abstracting the whole process of installed unity in a single call. Not everyone is always working on the latest unity version. Is this actually still being worked on? It's been 3 years since any official response.
     
    Arthur-LVGameDev likes this.