# Installing Unity through Unity Hub CLI missing options when installing modules

**URL:** https://discussions.unity.com/t/installing-unity-through-unity-hub-cli-missing-options-when-installing-modules/766222
**Category:** Unity Hub
**Created:** [November 20, 2019, 12:36pm UTC](https://discussions.unity.com/t/installing-unity-through-unity-hub-cli-missing-options-when-installing-modules/766222 "2019-11-20T12:36:32Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![devedse](https://avatars.discourse-cdn.com/v4/letter/d/22d042/32.png) [@devedse](https://discussions.unity.com/u/devedse)
#### Post date: [November 20, 2019, 12:36pm UTC](https://discussions.unity.com/t/installing-unity-through-unity-hub-cli-missing-options-when-installing-modules/766222/1 "2019-11-20T12:36:32Z")

</div>

**Introduction**

I’m trying to automate installing Unity on our own build server (we can’t use Unity cloud build). The idea is as follows:

1. User kicks of a build
2. Build script starts on build server
3. Unity build server opens projectverison.txt
4. PowerShell script starts and uses Unity Hub CLI to check if this specific version of Unity is already installed
5. If not it installs it using Unity Hub CLI
6. Unity build continues…

However this fails on step 5 as the modules you can install through the UI don’t match the modules you can install through the CLI.

**Installing Unity 2019.2.12f1**

For example, if we look at 2019.2.12f1 we can see that they list in the UI doesn’t match the CLI list:

 ![](https://europe1.discourse-cdn.com/unity/original/4X/b/8/9/b89a5d17ec70af64c74a9b88b44b6578f4675d29.png)  
(I couldn’t find a match for the Red Lines)

Also, if I then install it using this command:

```auto
'unity hub.exe' -- --headless install --version "2019.2.12f1" -m standardassets -m android -m windows -m windows-mono -m android-sdk-ndk-tools

```

I see the following output:

```auto
Missing module standardassets. Skipping..
Missing module windows. Skipping..
Missing module windows-mono. Skipping..
0.00% of Unity editor "2019.2.12f1" was downloaded
1.22% of Unity editor "2019.2.12f1" was downloaded
2.79% of Unity editor "2019.2.12f1" was downloaded

```

So even the modules that should be available, can’t be found by the installer.

After the installation there’s only 1 module installed:

 ![](https://europe1.discourse-cdn.com/unity/original/4X/c/3/9/c396386b2f3e383798730d3b38a1a0269ba9368b.png)

So it seems that even the modules that do have an exact match in the Unity Hub CLI don’t get installed.

**Installing Unity 2018.4.12f1**

When we look at older versions of Unity the list gets even more confusing:

```csharp
'unity hub.exe' -- --headless install --version "2018.4.12f1" -m standardassets -m android -m windows -m windows-mono -m android-sdk-ndk-tools

```

 ![](https://europe1.discourse-cdn.com/unity/original/4X/6/9/a/69a73c1af92e367dffdb7a955a1e2bcd3a6ff92b.png)

Output:

```auto
Missing module standardassets. Skipping..
Missing module windows. Skipping..
Missing module windows-mono. Skipping..

0.01% of Unity editor "2018.4.12f1" was downloaded
2.00% of Unity editor "2018.4.12f1" was downloaded

```

**Installing Unity 2017.4.34f1**

```csharp
'unity hub.exe' -- --headless install --version "2017.4.34f1" -m standardassets -m android -m windows -m windows-mono -m android-sdk-nds-tools

```

 ![](https://europe1.discourse-cdn.com/unity/original/4X/b/7/5/b752372437bbd0e5c1d3e262229c44ab7486ecac.png)

Output:

```auto
Missing module windows. Skipping..
Missing module windows-mono. Skipping..

0.01% of Unity editor "2017.4.34f1" was downloaded
1.59% of Unity editor "2017.4.34f1" was downloaded
4.15% of Unity editor "2017.4.34f1" was downloaded

```

**Directly calling install-modules**

I also tested directly calling install modules using this command which includes all options available according to the CLI help:

```auto
'unity hub.exe' -- --headless install-modules --version "2019.2.12f1" -m standardassets -m example -m android -m ios -m appletv -m linux -m samsung -m tizen -m webgl -m windows -m facebook-games -m monodevelop -m vuforia-ar -m mac-il2cpp -m windows-mono -m android-sdk-ndk-tools -m lumin

```

Output:

```auto
Missing module standardassets. Skipping..
Missing module example. Skipping..
Missing module samsung. Skipping..
Missing module tizen. Skipping..
Missing module windows. Skipping..
Missing module monodevelop. Skipping..
Missing module vuforia-ar. Skipping..
Missing module mac-il2cpp. Skipping..
Missing module windows-mono. Skipping..
Adding module facebookgameroom as dependency of facebook-games.
Adding module android as dependency of android-sdk-ndk-tools.
Adding module android-sdk-platform-tools as dependency of android-sdk-ndk-tools.
Adding module android-sdk-build-tools as dependency of android-sdk-ndk-tools.
Adding module android-sdk-platforms as dependency of android-sdk-ndk-tools.
Adding module android-ndk as dependency of android-sdk-ndk-tools.
Omitting module android because it's already installed

```

So even the modules that (atleast to me) seem to match the CLI documentation, apparently don’t. As they also report as missing once I install it using the CLI.

**Question**

So basically my problem/question is, how do I install these versions of Unity with the correct modules?

---

<div class="post-metadata">

### Author: ![dzamani](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/dzamani/32/292105_2.png) [@dzamani](https://discussions.unity.com/u/dzamani)
#### Post date: [November 25, 2019, 8:12pm UTC](https://discussions.unity.com/t/installing-unity-through-unity-hub-cli-missing-options-when-installing-modules/766222/2 "2019-11-25T20:12:25Z")

</div>

Where you have your Unity installed, there is a modules.json file, the “id” of the elements in that file are what you should use with the command line.  
For example there is “windows-il2cpp” for Windows Build Support (IL2CPP). Not sure if it’s the same name for all Unity versions though.

The mismatch in the help is maybe for future versions ?

---

<div class="post-metadata">

### Author: ![devedse](https://avatars.discourse-cdn.com/v4/letter/d/22d042/32.png) [@devedse](https://discussions.unity.com/u/devedse)
#### Post date: [December 3, 2019, 1:13pm UTC](https://discussions.unity.com/t/installing-unity-through-unity-hub-cli-missing-options-when-installing-modules/766222/3 "2019-12-03T13:13:21Z")

</div>

Using your advise I quickly created a tool to extract what modules are available per installed version. This is the output for me:

```csharp
Unity Installations:

==== Unity 2017.4.32f1 ===
>>> -m android
      -m appletv
      -m documentation
      -m example
      -m facebookgameroom
      -m facebook-games
      -m ios
      -m linux
      -m mac
>>> -m metro
      -m monodevelop
      -m standardassets
>>> -m uwp-il2cpp
      -m visualstudio
>>> -m visualstudioenterpriseunityworkload
      -m visualstudioprofessionalunityworkload
>>> -m vuforia-ar
      -m webgl

==== Unity 2018.2.21f1 ===
>>> -m android
      -m appletv
      -m documentation
      -m facebookgameroom
      -m facebook-games
      -m ios
      -m language-ja
      -m language-ko
      -m language-zh-cn
      -m linux
      -m mac-mono
>>> -m uwp-.net
>>> -m uwp-il2cpp
      -m visualstudio
>>> -m visualstudioenterpriseunityworkload
      -m visualstudioprofessionalunityworkload
      -m vuforia-ar
      -m webgl
>>> -m windows-il2cpp

==== Unity 2018.4.9f1 ===
>>> -m android
      -m appletv
      -m documentation
      -m facebookgameroom
      -m facebook-games
      -m ios
      -m language-ja
      -m language-ko
      -m language-zh-cn
      -m linux
      -m mac-mono
>>> -m uwp-.net
>>> -m uwp-il2cpp
      -m visualstudio
>>> -m visualstudioenterpriseunityworkload
      -m visualstudioprofessionalunityworkload
>>> -m vuforia-ar
      -m webgl
      -m windows-il2cpp

==== Unity 2019.1.14f1 ===
>>> -m android
>>> -m android-ndk
>>> -m android-sdk-build-tools
>>> -m android-sdk-ndk-tools
>>> -m android-sdk-platforms
>>> -m android-sdk-platform-tools
      -m appletv
      -m documentation
      -m facebookgameroom
      -m facebook-games
      -m ios
      -m language-ja
      -m language-ko
      -m language-zh-hans
      -m language-zh-hant
>>> -m linux
      -m lumin
      -m mac-mono
>>> -m universal-windows-platform
      -m visualstudio
>>> -m visualstudioenterpriseunityworkload
      -m visualstudioprofessionalunityworkload
>>> -m vuforia-ar
      -m webgl
>>> -m windows-il2cpp

```

Hopefully this is usefull to someone

---

<div class="post-metadata">

### Author: ![marcelofilhosidia](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/marcelofilhosidia/32/288086_2.png) [@marcelofilhosidia](https://discussions.unity.com/u/marcelofilhosidia)
#### Post date: [February 20, 2020, 7:53pm UTC](https://discussions.unity.com/t/installing-unity-through-unity-hub-cli-missing-options-when-installing-modules/766222/4 "2020-02-20T19:53:37Z")

</div>

> [@devedse](#):
>
> Using your advise I quickly created a tool to extract what modules are available per installed version. This is the output for me:
> 
> ```csharp
> Unity Installations:
> 
> ==== Unity 2017.4.32f1 ===
> >>> -m android
> -m appletv
> -m documentation
> -m example
> -m facebookgameroom
> -m facebook-games
> -m ios
> -m linux
> -m mac
> >>> -m metro
> -m monodevelop
> -m standardassets
> >>> -m uwp-il2cpp
> -m visualstudio
> >>> -m visualstudioenterpriseunityworkload
> -m visualstudioprofessionalunityworkload
> >>> -m vuforia-ar
> -m webgl
> 
> ==== Unity 2018.2.21f1 ===
> >>> -m android
> -m appletv
> -m documentation
> -m facebookgameroom
> -m facebook-games
> -m ios
> -m language-ja
> -m language-ko
> -m language-zh-cn
> -m linux
> -m mac-mono
> >>> -m uwp-.net
> >>> -m uwp-il2cpp
> -m visualstudio
> >>> -m visualstudioenterpriseunityworkload
> -m visualstudioprofessionalunityworkload
> -m vuforia-ar
> -m webgl
> >>> -m windows-il2cpp
> 
> ==== Unity 2018.4.9f1 ===
> >>> -m android
> -m appletv
> -m documentation
> -m facebookgameroom
> -m facebook-games
> -m ios
> -m language-ja
> -m language-ko
> -m language-zh-cn
> -m linux
> -m mac-mono
> >>> -m uwp-.net
> >>> -m uwp-il2cpp
> -m visualstudio
> >>> -m visualstudioenterpriseunityworkload
> -m visualstudioprofessionalunityworkload
> >>> -m vuforia-ar
> -m webgl
> -m windows-il2cpp
> 
> ==== Unity 2019.1.14f1 ===
> >>> -m android
> >>> -m android-ndk
> >>> -m android-sdk-build-tools
> >>> -m android-sdk-ndk-tools
> >>> -m android-sdk-platforms
> >>> -m android-sdk-platform-tools
> -m appletv
> -m documentation
> -m facebookgameroom
> -m facebook-games
> -m ios
> -m language-ja
> -m language-ko
> -m language-zh-hans
> -m language-zh-hant
> >>> -m linux
> -m lumin
> -m mac-mono
> >>> -m universal-windows-platform
> -m visualstudio
> >>> -m visualstudioenterpriseunityworkload
> -m visualstudioprofessionalunityworkload
> >>> -m vuforia-ar
> -m webgl
> >>> -m windows-il2cpp
> 
> ```
> 
> Hopefully this is usefull to someone

Would you mind to share this script, please?

---

<div class="post-metadata">

### Author: ![DrummerB](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/drummerb/32/237142_2.png) [@DrummerB](https://discussions.unity.com/u/DrummerB)
#### Post date: [February 22, 2020, 5:43pm UTC](https://discussions.unity.com/t/installing-unity-through-unity-hub-cli-missing-options-when-installing-modules/766222/5 "2020-02-22T17:43:10Z")

</div>

@devedse Have you tried installing the “linux” module with the Hub CLI? The help says it’s supposed to be called linux, but I had to actually use linux-mono.

> [@dzamani](#):
>
> Where you have your Unity installed, there is a modules.json file, the “id” of the elements in that file are what you should use with the command line.  
> For example there is “windows-il2cpp” for Windows Build Support (IL2CPP). Not sure if it’s the same name for all Unity versions though.

Great hint, thanks!
