Submit a license request from a command line and browser (macOS, Linux)
Generate a request from the macOS or Linux terminal, upload it online, and install the license.
読み終わるまでの所要時間 3 分最終更新 1ヶ月前
Submit a license request from the command line to manually activate your license if you’re unable to use the other activation methods.
Before you begin
- See Manual license activation to make sure you understand the scenario for using this procedure, its limitations, and its internet connectivity requirements.
- Make sure you know the path where you installed the Unity Editor. Use the Unity Hub to determine the path. Open the Unity Hub and select Installs from the side menu. The list shows the path for each installed Editor. For more information, see Locate the Editor.
The default installation paths for the Unity Editor are:
- macOS:
/Applications/Unity/Hub/Editor/<version>/Unity.app - Linux:
/Applications/Unity/Hub/Editor/<version>/Unity.app
Procedure
To manually activate your Unity license, follow these steps:
- Create a license request file () from the command line. You must do this step from the computer where you installed Unity.
.alf - Use that file to generate a Unity license file (
.alfor.ulf) from Unity. You must do this step from any computer that has internet access..xml - Use that license file to activate your license from the command line. You must do this step from the computer where you installed Unity.
1) Create a license request file from the command line
-
Make sure you know the installation location of your Unity Editor (ending with), described earlier. On macOS, you'll add
Unity.appto this path for this procedure./Contents/MacOS/UnityFor example, for aEditor, the complete path to the2022.2.0b4command on macOS is:Unity/Applications/Unity/Hub/Editor/2022.2.0b4/Unity.app/Contents/MacOS/Unity -
Open a Terminal session (macOS) or the command line (Linux), and make sure you're aware which directory you're in. The directory you run the command from is the same directory where thefile is output. You can use the
.alfcommand to determine your directory.pwd -
Run the following command, replacingwith the complete path to the
<editor-command-location>command from Step 1:Unity<editor-command-location> -batchmode -createManualActivationFile -logfile -
When the command completes, check the directory where you ran the command to make sure it created an activation license file, such as. If you experience issues, see Troubleshooting.
Unity_v2022.2.0b4.alf
Now you are ready to generate a Unity license file.
Example (macOS)
Assuming you installed a Editor at , the command for this step is:
2022.2.0b4/Applications/Unity/Hub/Editor/2022.2.0b4/Unity.app/Applications/Unity/Hub/Editor/2022.2.0b4/Unity.app/Contents/MacOS/Unity -batchmode -createManualActivationFile -logfile
2) Generate a Unity license file
The next step is to use the license activation file () that you just created to request a Unity license file ( or ).
.alf.ulf.xml-
Go to id.unity.com and make sure you're signed in to your Unity ID. You need a valid login to request a Unity license file.
-
Use the same browser session to go to license.unity3d.com/manual. The Manual activation page appears.

Upload license request page.
-
Select the Browse button and use your computer's file browser to select the license activation () file from the create a license request file step.
.alfIf 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 check mark. If you see a red X instead, try again. -
Select the Next button. The Activate license for my assigned seats page appears, listing the assigned seats that are eligible for offline activation.

Activate license for my assigned seats page.
-
Select Next to activate a license for all your eligible seats.
-
On the Download license file page, select the Download license file button. If prompted, allow downloads for the license.unity3d.com/manual page.
-
Open your browser's downloads location and confirm the new Unity license file:
-
An assigned seat activation downloads anfile. For example,
.xml.UnityEntitlementLicense-20260727103000.xml -
A serial key activation downloads afile. For example,
.ulf.Unity_v2017.x.ulf
-
To activate Unity with the license file, open the Unity Hub and follow Licenses > Add license > Activate with license file. This step doesn't need internet access. Alternatively, you can activate your Unity license from the command line.
3) Activate your license from the command line
-
Make sure you know the following paths:
- is the same value as the path described in the create a license request file step.
<editor-command-location> - is the full path of the license file (
<yourLicenseFile>or.ulf) you generated in the generate a Unity license file step..xml
-
Open a Terminal session (macOS) or the command line (Linux), and run the following command, replacingand
<editor-command-location>with the actual full paths:<yourLicenseFile><editor-command-location> -batchmode -manualLicenseFile <yourLicenseFile> -logfile -
When the command completes, you can view your active license in the Hub by selecting Licenses from the side menu. If you experience issues, refer to Troubleshooting.
Example (macOS)
This example assumes that you:
- Installed a Editor at
2022.2.0b4/Applications/Unity/Hub/Editor/2022.2.0b4/Unity.app - Generated a file and stored it at
.ulf/Users/myAccount/Downloads/Unity_v2017.x.ulf
/Applications/Unity/Hub/Editor/2022.2.0b4/Unity.app/Contents/MacOS/Unity -batchmode -manualLicenseFile /Users/myAccount/Downloads/Unity_v2017.x.ulf -logfile
Troubleshooting
If the command line operations don't yield the expected results, view the file. To find the the location of this file, refer to Log files reference.
Editor.logAdditional resources
- License activation methods
- Activate a license for a Unity Personal plan (Unity Hub documentation)
- License troubleshooting