Install Unity from the command line
Use the installer files to install the Unity Editor and other components from the command line.
Read time 4 minutesLast updated 21 days ago
If you want to automate the deployment of Unity in an organization, you can install the Unity Editor and other components from the command line. The components are normal installer programs and packages which you can use to automate the deployment of Unity.
To automate the Unity deployment by using the command line:
- Download the installer files for Unity and other components to a folder on your computer. You can use individual installer files, or installer files and the script generated by Unity Download Assistant.
- Copy the contents of the folder to the destination computers.
- If you're using individual installer files, run the commands to install the components individually. If you're using Download Assistant, run the install script (on Windows or
install.baton Linux or macOS) to install all downloaded items.install.sh
The following procedures use the individual installer files option for installing Unity on Windows and macOS. For information about using the Download Assistant option, refer to Install Unity on offline computers.
Install the Unity Editor and components on Windows
Use the following command line arguments to install the Editor and other components on Windows.
Command line argument | Description |
|---|---|
| /S | Performs an installation which runs silently without any user interaction. |
| /D=PATH | Sets the default installation directory. Use with the silent installation option. The default folder is |
| -CPULightmapper=no | Skips the installation of components that only the CPU Progressive Lightmapper requires, currently the Microsoft Visual C++ 2010 runtime. The CPU Progressive Lightmapper is then unavailable; other lightmapper backends are unaffected. |
Install the Unity Editor
To install the Editor to a specific folder location, follow this example. This example demonstrates installing a 64-bit Editor to the folder:
E:\Development\UnityUnitySetup64.exe /S /D=E:\Development\Unity
Running this command installs Unity silently to folder, which becomes the root of the Unity installation. In this case, the command installs the Editor program file to .
E:\Development\UnityE:\Development\Unity\Editor\Unity.exeUninstall the Unity Editor
To perform a silent uninstall, run from the command line or in a script.
Uninstall.exe /SInstall other Unity components
To install other Unity components such as those that provide platform build support, use the following command as an example:
UnitySetup-Android-Support-for-Editor-6000.0.23f1.exe /S /D=C:\Program Files\Unity 6000.0.23f1
Install the Unity Editor and components on macOS
Unity provides the individual installers as files. You can install these by using the command.
.pkginstallerInstall the Unity Editor
To install the Editor to the folder on the specified target volume, use the following command:
/Applications/Unitysudo installer [-dumplog] -package Unity.pkg -target /
Install other Unity components
To install other Unity components such as those that provide platform build support, use the following command as an example:
sudo installer [-dumplog] -package UnitySetup-Android-Support-for-Editor-6000.0.23f1.pkg -target /
Install several Unity versions
You can install multiple versions of Unity on the same computer.
On macOS, the installer creates a folder called , and overwrites any existing folder with this name. To install more than one version of Unity on macOS, rename the existing folder before installing another version.
UnityUnityOn Windows, the installation folder is always named , where the marks an official release, and marks a patch release.
Unity X.Y.Z[fp]Wfp