Search Unity

Feature Request Unity Hub CLI feedback & features request

Discussion in 'Unity Hub' started by androshchuk-vladyslav, Dec 16, 2022.

  1. androshchuk-vladyslav

    androshchuk-vladyslav

    Joined:
    Dec 13, 2015
    Posts:
    127
    Hi! We extensively use our infrastructure based on Gitlab CI to build binaries for target platforms with Unity. For this, we have a lot of build machines: VMs and Mac minis. To manage the environment on those machines we are planning to use Puppet. To manage Unity installations we need an instrument with CLI.

    I was happy to know, that Unity Hub has a CLI, but it's so limited that it's hard to make it work.

    What do we need in general:
    1. Get a list of installed editors;
    2. Get a list of all available editors (with all information needed for install action);
    3. Get a list of installed modules for the given installed editor version;
    4. Instal and uninstall specific versions of an editor (including Intel / Apple Silicon versions for macOS);
    5. Instal and uninstall specific modules for the given installed editor version;
    6. Сheck the activation of the given licence key, and activate it if needed only by CLI (without human);
    7. Perform all actions above without starting an application.
    Which critical makes Hub unusable now:
    1. It isn't possible to install Apple Silicon editors;
    2. It isn't possible to uninstall editors;
    3. It isn't possible to get a list of installed modules for a given editor;
    4. It isn't possible to uninstall modules for a given editor;
    5. It isn't possible to activate a builder licence without human interaction;
    6. You need to provide a changeset parameter to install an Editor;
    7. Even with
      --headless
      flag, it starts Hub applications, which slows the execution of check commands.

    Currently, we have a solution which does most of that stuff - the u3d Ruby Gem, but it has delayed support and doesn't work well with Hub.

    I will be very thankful for more attention to the CLI part, and ready to provide even deeper feedback and use cases.
     
    Last edited: Dec 19, 2022
  2. RageAgainstThePixel

    RageAgainstThePixel

    Joined:
    Mar 11, 2020
    Posts:
    66
    hell it doesn't even give you the ability to get something as basic as the version
     
    androshchuk-vladyslav likes this.
  3. bdovaz

    bdovaz

    Joined:
    Dec 10, 2011
    Posts:
    1,051
    RageAgainstThePixel likes this.
  4. androshchuk-vladyslav

    androshchuk-vladyslav

    Joined:
    Dec 13, 2015
    Posts:
    127
    Unfortunately. This requires minimum time (as I see it). Currently, it's so hard to automate the M1 install. Even if you download and install from the archive, installing modules is a mess.
     
  5. RageAgainstThePixel

    RageAgainstThePixel

    Joined:
    Mar 11, 2020
    Posts:
    66
    Yeah I was told the same thing when I opened this bug almost 2 years ago... It's their way of closing tickets without actually fixing anything.
     
  6. viacheslav_unity168

    viacheslav_unity168

    Joined:
    Oct 26, 2022
    Posts:
    4
    It isn't possible to install Apple Silicon editors;
    Fix for this point available in this thread Unity Hub CLI on m1 mac
     
  7. androshchuk-vladyslav

    androshchuk-vladyslav

    Joined:
    Dec 13, 2015
    Posts:
    127
    Hi, thanks for sharing. Unfortunately for us, it's unusable due to: