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.
- Select which license type you are activating. Enter your serial number if using a Pro or Plus license.
- 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.
If the above steps do not help resolve your issue, please contact Customer Service with your log files.
More Information:
Comments
4 comments
when entering what was said in the cmd it exactly saysthat: is not recognized as an internal or external command,
operable program or batch file.
An7y reasons as to why this is happening
It worked for me
also It saves the .alf file in C:\Windows\System32 or current directory of your command line
When you trying to activate license :)
serial has reached the maximum number of activations.
Hello ZangHai,
Thank you for your comment.
I am sorry to hear that you are having an issue activating your license. This is easily solved by returning your current activations and trying again.
You can read a guide on how to do this here: How do I return the activations on my Pro/Plus/Enterprise license?
If there is anything else you need or continue to have activation issues, please feel free to email us at support@unity3d.com or alternatively, you can submit a ticket via this web form.
Please sign in to leave a comment.