Search Unity

Feedback Unity Hub 2.1.0 CLI - install and launch specific version

Discussion in 'Unity Hub' started by fasteddoict, Aug 27, 2019.

  1. fasteddoict


    Jan 10, 2011
    Thank you for adding the CLI to Unity Hub! Seems like this is moving in the right direction.

    We want to use the CLI for a very specific purpose. We want to make sure the user launches our project with the *exact* Unity version (exact!), and if the user doesn't have that version on the machine, it downloads it as quickly as possible. Bonus points would be to verify the install hasn't been corrupted in any way. We would like to create an automated launch script that does this through CLI commands.

    We currently enforce this by committing the entire Unity version to svn, but it would be nice to be able to use Hub for this.

    The logic would be:
    1. CLI call to check if the specific version is installed.
    2. If not, use CLI to download the correct version and install it with a given list of modules. If it is already installed, skip this step. (I noticed the CLI does not currently skip, when using 'install' command.)
    3. Verify the install folder (crc, sha, etc, either the entire folder or a select few important files). If verification fails, re-install by jumping back to step 2.
    4. Launch the project with the correct Unity version. If Unity version is not installed (install failed for whatever reason, etc), do *not* launch the project and return to step 1.

    Seems like the current version doesn't let us do this fully. So, we would love to continue seeing new features added to the CLI.