Activate via command line on Windows
First, delete the existing
.ulf
found in the following location if one is there: C:ProgramData/Unity
. Now close the Hub completely using the Task Manager.Now, you need to create an activation license file (ALF) using the command line method.
Enter the following into the Command Prompt (replacing
<editor-installation-location>
with the actual installation location, such as "C:\Program Files\Unity\Hub\Editor\2020.3.30f1\Editor\unity.exe"
):"<editor-installation-location>" -batchmode -createManualActivationFile -logfile
After you generate a license activation (
.alf
) file, the next step is to use this to request your Unity license (.ulf
) file from the license server:- Open the license.unity3d.com/manual webpage.
- If prompted, sign in to your Unity ID. This is necessary to request a Unity license file. The Manual activation webpage appears.
- Click the Browse button to locate the license activation (
.alf
) file you already generated using your system’s file browser. By default, your.alf
is found inC:\Users\<username>
-
If the upload was successful and Unity detected that the file you chose was a license activation file, the filename appears in the text box with a green checkmark. If you see a red X instead, try again.
- Click the Next button. The Activate your license webpage appears.
- Enter your serial number and click the Next button. The Download license file webpage appears.
- Click the Download license file button.
- Allow downloads for the license.unity3d.com/manual webpage if your system prompts you.
- Open your browser’s downloads location and locate the new Unity license file with the
.ulf
extension.
Now you are ready to activate your Unity license from the command line.
Enter the following into the Command Prompt (replacing
<editor-installation-location>
with the actual installation location, such as”C:\Program Files\Unity\Hub\Editor\2020.3.30f1\Editor\unity.exe"
):"<editor-installation-location>" -batchmode -manualLicenseFile <yourulffilelocation> -logfile
Your Unity license is now activated.
More Information: