MizoTake / unity-license-activate

A tool to help you activate Unity. It's lightly summarized in the article
https://qiita.com/MizoTake/items/b85473fab757bb87e4fc
Other
32 stars 3 forks source link
cli license-activation nodejs npm puppeteer unity

Unity License Activate

A tool to automate the manual activation of unity license using puppeteer

https://license.unity3d.com/manual

Get your environment ready for node.js and npm.

You need a .alf file, so save it from UnityHub for example.

img

SAVE LICENSE REQUEST button to save the file.

To create an .alf in a terminal, use the

https://docs.unity3d.com/Manual/CommandLineArguments.html

/Applications/Unity/Unity.app/Contents/MacOS/Unity -batchmode -createManualActivationFile

usage

node activate.js $email $password $alf_file_path

Replace it with your own Unity account's email and password. Also, add the path to the .alf file you created at the end.

If two-factor authentication is required, please add the two-factor authentication code at the end.

node activate.js $email $password $alf_file_path $auth_code

After the execution of the command, the .ulf file will be saved in the root of the repository.