# Setting Up the License Key

Follow the steps in this article to download a license key script and include a JS file containing the license snippet in your application.

To add a Kendo UI license file to your application:

1. Go to the [License Keys page](https://www.telerik.com/account/your-licenses/license-keys) in your Telerik account.
2. Click the `View Script Keys` button.
3. In the dialog, `Progress® Kendo UI® for jQuery` should be preselected.
4. Copy the JavaScript code snippet into a new file, for example, `telerik-license.js`.
5. Load the script in your project, after loading the Kendo UI for jQuery scripts, but before creating any components.

> **Note:**
>
> * Load the `kendo.all.min.js` script before the license script.
> * Avoid duplicate script references.
> * Ensure the license script is loaded exactly once after core scripts.

You can reference the `telerik-license.js` license file by using either of the following approaches:

* [Use a script reference](https://www.telerik.com/kendo-jquery-ui/documentation/intro/installation/licensing/adding-the-license-key#use-a-script-reference)
* [Use JS or TS Modules](https://www.telerik.com/kendo-jquery-ui/documentation/intro/installation/licensing/adding-the-license-key#use-js-or-ts-modules)

As a result, the license script key will be distributed along with the scripts. It is safe to redistribute the key, it just unlocks the product and is required for the application to run.

## Use a Script Reference

Add the license as a script reference right after the `kendo.all.min.js` reference or the Kendo UI scripts you are using.

The following example shows how to use the CDN reference (`kendo.all.min.js`).

```html
<script src="https://kendo.cdn.telerik.com/***/kendo.all.min.js"></script>
<script src="./telerik-license.js"></script>


```

The following example shows how to use the CDN reference by utilizing the predefined list of scripts.

```html
<script src="https://kendo.cdn.telerik.com/***/kendo.core.min.js"></script>
<script src="https://kendo.cdn.telerik.com/***/kendo.userevents.min.js"></script>
<script src="https://kendo.cdn.telerik.com/***/kendo.draganddrop.min.js"></script>
<script src="https://kendo.cdn.telerik.com/***/kendo.popup.min.js	"></script>
<script src="https://kendo.cdn.telerik.com/***/kendo.fx.min.js"></script>
<script src="https://kendo.cdn.telerik.com/***/kendo.window.min.js"></script>
<script src="./telerik-license.js"></script>


```

If using ECMAScript modules to load the Kendo files, add `type='module'` in the license script reference.

```html
<script src="https://kendo.cdn.telerik.com/***/kendo.all.min.js" type="module"></script>
<script src="./telerik-license.js" type="module"></script>


```

## Use JS or TS Modules

Import the `telerik-license.js` license file right after the import of the Kendo UI modules.

The following example shows how to use the ESM (ECMAScript) modules.

```js
import "@progress/kendo-ui";
import "./telerik-license.js";

$("#grid").kendoGrid();
```

The following example shows how to use the CJS (CommonJS) modules.

```js
require("@progress/kendo-ui");
require("./telerik-license.js");

$("#grid").kendoGrid();
```

Often, you will need two or more imports of the Kendo UI libraries and you will need to import the license file only in one location, which most likely will be the main script file of your application. In that case, import the `kendo.core.js` and register your license code as usual.

The following example shows how to use the ESM (ECMAScript) modules to import the license file in a single location.

```js
import '@progress/kendo-ui/js/kendo.core';
import './telerik-license.js';

// The rest of the code.
```

The following example shows how to use the CJS (CommonJS) modules to import the license files in a single location.

```js
require("@progress/kendo-ui/js/kendo.core");
require("./telerik-license.js");

// The rest of the code.
```

If you experience any issues related to the license key, contact us through the [available support channels](https://www.telerik.com/kendo-jquery-ui/documentation/introduction#support-options).

## See Also

* [License Activation Errors and Warnings](https://www.telerik.com/kendo-jquery-ui/documentation/intro/installation/licensing/activation-errors-and-warnings)
* [License File Frequently Asked Questions](https://www.telerik.com/kendo-jquery-ui/documentation/intro/installation/licensing/license-code-faq)
* [Hosting Kendo UI in Your Project](https://www.telerik.com/kendo-jquery-ui/documentation/intro/installation/hosting-kendoui)
* [Installing Kendo UI with Bower](https://www.telerik.com/kendo-jquery-ui/documentation/intro/installation/bower-install)
* [Obtaining Kendo UI by Using the CDN Services](https://www.telerik.com/kendo-jquery-ui/documentation/intro/installation/cdn-service)
* [Installing Kendo UI with NPM](https://www.telerik.com/kendo-jquery-ui/documentation/intro/installation/npm)
* [Installing Kendo UI with NuGet](https://www.telerik.com/kendo-jquery-ui/documentation/intro/installation/nuget-install)
* [Getting Up and Running with Your Kendo UI Project (Guide)](https://www.telerik.com/kendo-jquery-ui/documentation/intro/first-steps)
