# Installing with NuGet

[NuGet](https://www.nuget.org/) is a popular .NET package manager.

Progress maintains the Telerik NuGet Feed for registered users and all Kendo UI for jQuery official releases and service packs are published there as well.

> As of R3 2023 the Kendo UI bundles do not include the jQuery library in their `js` directories and you can [`download jQuery using NuGet package manager`](https://subscription.packtpub.com/book/web-development/9781782173113/1/ch01lvl1sec12/using-nuget-package-manager-to-download-jquery) or use other source for the jQuery library.

## 1. Generate a NuGet API Key

As the Telerik NuGet server requires authentication, the first step is to obtain an API key that you will use instead of a password. Using an API key instead of a password is a more secure approach, especially when working with the .NET CLI or a `NuGet.Config` file.

1. Go to the [API Keys](https://www.telerik.com/account/downloads/api-keys) page in your Telerik account.
2. Click **Generate New Key +**.
3. In the **Key Note** field, add a note that describes the API key.
4. Click **Generate Key**.
5. Select **Copy and Close**. Once you close the window, you can no longer copy the generated key. For security reasons, the **API Keys** page displays only a portion of the key.
6. Store the generated NuGet API key as you will need it in the next steps. Whenever you need to authenticate your system with the Telerik NuGet server, use `api-key` as the username and your generated API key as the password.

> API keys expire after two years. Telerik will send you an email when a key is about to expire, but we recommend that you set your own calendar reminder with information about where you used that key: file paths, project links, AzDO and GitHub Action variable names, and so on.

## 2. Choose the Required Package

The Telerik NuGet Feed provides the following Kendo UI for jQuery packages:

* `KendoUIProfessional`—The commercial Kendo UI for jQuery version.
* `KendoUICore`—The open-source Kendo UI distribution which contains only the open-sourced components.

## 3. Register the Feed on Your System

To add the Telerik NuGet feed as a package source on your machine and access the packages, use either of the following approaches:

* [Use the NuGet CLI](https://www.telerik.com/kendo-jquery-ui/documentation/intro/installation/nuget-install#add-the-feed-with-the-nuget-cli).
* [Use the UI provided from Visual Studio for configuring authenticated NuGet feeds](https://www.telerik.com/kendo-jquery-ui/documentation/intro/installation/nuget-install#add-the-feed-with-the-nuget-package-manager).

Regardless of how you set up the Telerik NuGet feed, you must first [generate a NuGet API key](https://www.telerik.com/kendo-jquery-ui/documentation/intro/installation/nuget-install#1-generate-a-nuget-api-key) needed for the authentication.

> warning Never hard-code your Telerik NuGet API keys in a `NuGet.Config` file in a GitHub repository, Docker image, or any location that may be accessed by unauthorized parties. An API key is valuable and bad actors can use it to access the NuGet packages that are licensed under your account. A credentials abuse can lead to a review of the affected Telerik account.

### Add the Feed with the NuGet CLI

To register the Telerik NuGet Feed on your system by using the [NuGet CLI](http://docs.nuget.org/consume/Command-Line-Reference):

1. Download the [latest NuGet executable](https://dist.nuget.org/win-x86-commandline/latest/nuget.exe).
2. Open a command prompt and change the path to where the `nuget.exe` is downloaded.
3. Execute the command:

   ```SH
   NuGet Sources Add -Name "telerik.com" -Source "https://nuget.telerik.com/v3/index.json" -UserName "api-key" -Password "YOUR-NUGET-API-KEY" -StorePasswordInClearText
   ```

   The command adds the Telerik NuGet source, uses your NuGet API key for authentication, and stores the API key in plain text in the global config file (in `%AppData%\NuGet\NuGet.config`).

### Add the Feed with the NuGet Package Manager

To register the Telerik NuGet Feed on your system by using the NuGet package manager:

1. Open Visual Studio.

2. Go to **Tools** > **NuGet Package Manager** > **Package Manager Settings**, select **Package Manager Sources** and then click the **+** button.

3. Select the feed **Name**, set the feed URL to <https://nuget.telerik.com/v3/index.json>, and click **OK**.

   ![Kendo UI for jQuery Resources](https://www.telerik.com/kendo-jquery-ui/documentation/assets/fd2acfe3b31554eb70bbd4c01153e232/add-nuget-package-source.png)

4. Select the **Browse** list of packages.

5. In the Windows authentication prompt:

   5.1. Enter `api-key` in the **User Name** field.

   5.2. Enter your [NuGet API key](https://www.telerik.com/kendo-jquery-ui/documentation/intro/installation/nuget-install#1-generate-a-nuget-api-key) in the **Password** field.

   5.3. Check the **Remember My Password** checkbox.

## 3. Install the Packages

After setting up the Telerik NuGet Feed package source on your computer, install the Kendo UI for jQuery packages by using either of the following utilities:

* [The Package Manager Dialog](https://www.telerik.com/kendo-jquery-ui/documentation/intro/installation/nuget-install#install-with-the-package-manager-dialog)
* [The Package Manager Console](https://www.telerik.com/kendo-jquery-ui/documentation/intro/installation/nuget-install#install-with-the-package-manager-console)

Regardless of the package installation approach you choose, after the installation, the content scripts and stylesheets will be copied to your application as follows:

* `/Scripts/kendo/<version>/`—Contains the minified JavaScript files.
* `/Content/kendo/<version>/`—Contains the minified CSS files and theme images.

  ![Kendo UI for jQuery Folder Structure](https://www.telerik.com/kendo-jquery-ui/documentation/assets/a48c6e4634b9bd91c0182ab32ab33c74/kendo-folder-structure.png)

> The installation approach with the NuGet works only with .NET MVC projects that have the `Content` and `Scripts` folders. In a .NET Core(and newer) projects, the resources(scripts and styles) must be copied manually in the `wwwroot` folder.

### Install with the Package Manager Dialog

To install the Kendo UI for jQuery packages by using the **Package Manager** dialog:

1. Right-click **Solution** or a specific project in **Solution**, and navigate to **Manage NuGet Packages**.

   ![Kendo UI for jQuery Manage NuGet Packages](https://www.telerik.com/kendo-jquery-ui/documentation/assets/d39a0d45231b36d10ff019f6e58d7c56/manage-nuget-packages.png)

2. Set the package source to `telerik.com` and install the `KendoUIProfessional` NuGet package.

### Install with the Package Manager Console

To install the Kendo UI for jQuery packages by using the **Package Manager** console:

1. Open the project or solution in Visual Studio, and open the console by selecting **Tools** > **NuGet Package Manager** > **Package Manager Console**.
2. To install the package, substitute `WebApplication` with the name of your project from the following command and run it.

   ```
       Install-Package KendoUIProfessional -ProjectName WebApplication
   ```

## Next Steps

* [Create Your Own Custom Bundles](https://www.telerik.com/kendo-jquery-ui/documentation/intro/creating-custom-bundles)
* [Create Your Own Custom Components](https://www.telerik.com/kendo-jquery-ui/documentation/intro/widget-basics/create-custom-kendo-widget)
* [Initialize Components as jQuery Plugins](https://www.telerik.com/kendo-jquery-ui/documentation/intro/widget-basics/jquery-initialization)
* [Initialize Components with MVVM](https://www.telerik.com/kendo-jquery-ui/documentation/intro/widget-basics/mvvm-initialization)

## See Also

* [Hosting Kendo UI for jQuery in Your Project](https://www.telerik.com/kendo-jquery-ui/documentation/intro/installation/hosting-kendoui)
* [Installing Kendo UI for jQuery with Bower](https://www.telerik.com/kendo-jquery-ui/documentation/intro/installation/bower-install)
* [Installing Kendo UI for jQuery by Using the CDN Services](https://www.telerik.com/kendo-jquery-ui/documentation/intro/installation/cdn-service)
* [Installing Kendo UI for jQuery with NPM](https://www.telerik.com/kendo-jquery-ui/documentation/intro/installation/npm)
* [Getting Up and Running with Your Kendo UI for jQuery Project (Guide)](https://www.telerik.com/kendo-jquery-ui/documentation/intro/first-steps)
* [Licensing Overview](https://www.telerik.com/kendo-jquery-ui/documentation/intro/installation/licensing/overview)
