# Adding the License Key to CI/CD Services

This article describes how to set up and activate your Telerik UI for WinUI [license key](https://www.telerik.com/winui/documentation/installation-and-deployment/licensing/installing-license-key) license across a few popular CI/CD services by using deployment keys.

Deployment keys are a dedicated type of license key for build pipelines. They’re tied to a specific application and the set of products that the application uses. Deployment keys cannot be used for application development.

> important Deployment keys cannot be used for application development.

> tip When working with CI/CD platforms, always add the `Telerik.Licensing` NuGet package as a project dependency. This package activates Telerik UI for WinUI at build time by using the provided license key.

To activate your license in a CI/CD environment:

1. Navigate to the [Deployment Keys](https://www.telerik.com/account/downloads/deployment-keys) page.

2. Click **Add Application**. In the form that opens:

   * Add the application name.

   * Select the type of application—public or private.

   * Select the set of products used in the application.

3. Copy the key value and store it securely.

4. [Create an environment variable](https://www.telerik.com/winui/documentation/installation-and-deployment/licensing/installing-license-to-ci-services#creating-an-environment-variable) named **TELERIK_LICENSE** and set it to the obtained key value.

Alternatively, the key can be stored in a `telerik-license.txt` file, for example when using the [Azure Secure files approach](https://www.telerik.com/winui/documentation/installation-and-deployment/licensing/installing-license-to-ci-services#using-secure-files-on-azure-devops).

## Creating an Environment Variable

The recommended approach for providing your license key to the `Telerik.Licensing` NuGet package is to use environment variables. Each CI/CD platform has a different process for setting environment variables and this article lists only some of the most popular examples.

### Azure Pipelines (YAML)

1. Create a new [User-defined Variable](https://docs.microsoft.com/en-us/azure/devops/pipelines/process/variables?view=azure-devops\&tabs=yaml%2Cbatch) named `TELERIK_LICENSE`.

2. Paste the contents of the license key file as a value.

### Azure Pipelines (Classic)

1. Create a new [user-defined variable](https://docs.microsoft.com/en-us/azure/devops/pipelines/process/variables?view=azure-devops\&tabs=classic%2Cbatch) named `TELERIK_LICENSE`.

2. Paste the contents of the license key file as a value.

### GitHub Actions

1. Create a new [Repository Secret](https://docs.github.com/en/actions/reference/encrypted-secrets#creating-encrypted-secrets-for-a-repository) or an [Organization Secret](https://docs.github.com/en/actions/reference/encrypted-secrets#creating-encrypted-secrets-for-an-organization).

2. Set the name of the secret to `TELERIK_LICENSE` and paste the contents of the license file as a value.

3. After running `npm install` or `yarn`, add a build step to activate the license:

   #### **\[YML]**

```C#
		env:
			TELERIK_LICENSE: $
```

## See Also

* [License Activation Errors and Warnings](https://www.telerik.com/winui/documentation/installation-and-deployment/licensing/license-activation-errors-and-warnings)
* \[Setting Up Your License Key]\(slug://installing-license-key}
* [Frequently Asked Questions about Your UI for WinUI License Key](https://www.telerik.com/winui/documentation/installation-and-deployment/licensing/license-frequently-asked-questions)
