# 2. Generate License Key

### 2.1 Generate License Key

1. Go to [***https://console.alianhub.com***](https://console.alianhub.com) to register an account, and then log in after verifying your email address.
2. After logging in, click on the ‘**Create New Licenses**’ button.

<figure><img src="https://756612007-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfAZK2jZ3mL4ir3caZa0b%2Fuploads%2FeSli4xJooiPuLmF2i8eW%2Fimage3.png?alt=media&#x26;token=61f1c232-faf1-4cb8-b3b8-fe7dc66888bf" alt=""><figcaption></figcaption></figure>

3. Enter your CodeCanyon purchase code and your domain URL in the protection URL tab and click on the ‘**Generate Key**’ button.

<figure><img src="https://756612007-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfAZK2jZ3mL4ir3caZa0b%2Fuploads%2Fwhi8rK6lZ5B1cixow9eH%2FgenerateLicense.png?alt=media&#x26;token=4d91d314-dcc6-4718-8ded-2f7679060ce7" alt=""><figcaption></figcaption></figure>

4. After successful key generation, you need to copy this and use it in the domain verification field.

<figure><img src="https://756612007-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfAZK2jZ3mL4ir3caZa0b%2Fuploads%2Ff46yHqZpZcacBacobYNU%2Fimage.png?alt=media&#x26;token=0c26d33b-f027-4a1b-958e-6b893332c17c" alt=""><figcaption></figcaption></figure>

5. After that, you need to visit its detail page where you can download the base <mark style="color:red;">env file</mark>. The file will be named '<mark style="color:red;">**procution.env**</mark>'.

<figure><img src="https://756612007-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfAZK2jZ3mL4ir3caZa0b%2Fuploads%2FKJGZECYWNkiNTnst8bV9%2Fimage20.png?alt=media&#x26;token=611aaf72-7fdd-4e1b-a927-e4cf8ff0686f" alt=""><figcaption></figcaption></figure>

6. Now take that file and place it in your project directory and then rename it to '<mark style="color:red;">.env</mark>'.

<figure><img src="https://756612007-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfAZK2jZ3mL4ir3caZa0b%2Fuploads%2F8PVA80jOlmxjEpAIdrbo%2Fimage44.png?alt=media&#x26;token=614d2a5d-57e3-44dd-8234-60e1559c7199" alt=""><figcaption></figcaption></figure>
