Telerik CLI
The Telerik CLI is a .NET global tool that automates common Telerik development tasks from the command line. Use the Telerik CLI to configure the Telerik NuGet package source, create new projects from Telerik templates, and update Telerik Document Processing packages without opening Visual Studio.
The Telerik CLI works on Windows, macOS, and Linux. It requires the .NET SDK (version 6.0 or later) and a valid Telerik account with an active Subscription or Trial license.
Command Reference
The following table lists all Telerik CLI commands with their purpose and usage.
| Command | Description | Usage |
|---|---|---|
dotnet tool install -g Telerik.CLI | Installs the Telerik CLI as a .NET global tool. | Run once to install the CLI on your machine. |
dotnet tool update -g Telerik.CLI | Updates the Telerik CLI to the latest version. | Run periodically to get the latest features and fixes. |
telerik nuget config | Configures the Telerik NuGet server to your package sources. | Run to set up the https://nuget.telerik.com/v3/index.json feed in your NuGet configuration. |
telerik license get-key | Downloads your Telerik license key and saves it as telerik-license.txt. | Run to download your license key file. |
telerik mcp config | Installs and configures the Telerik MCP Server for your IDE. | Run to set up AI coding assistance in Visual Studio, VS Code, or Cursor. |
telerik login | Authenticates with your Telerik account. | Run to store credentials for subsequent commands. |
telerik whoami | Displays the currently logged-in Telerik user account email. | Run to verify your authentication state. |
telerik logout | Logs out from the Telerik CLI. | Run to log out the credentials from your Telerik account. |
How to Install the Telerik CLI
The Telerik CLI NuGet package is hosted on nuget.org.
To install the Telerik CLI .NET tool globally on your machine, run the following command in your preferred command shell:
dotnet tool install -g Telerik.CLI
The dotnet tool install command provides a few ways for you to install .NET tools on your machine.
- To install the Telerik CLI globally, use the
-goption. - To install the Telerik CLI in a custom location, use the
--tool-pathoption. - To install the Telerik CLI in the current folder only, omit the
-gand--tool-pathoptions.
Verify Telerik CLI Installation
To verify the installation:
dotnet tool list -g
Update Telerik CLI
To update to the latest version:
dotnet tool update -g Telerik.CLI
Uninstall Telerik CLI
To uninstall the Telerik CLI:
dotnet tool uninstall -g Telerik.CLI
The Telerik CLI requires .NET SDK 6.0 or later. Download the .NET SDK from the official .NET website.
Log In to Your Telerik Account
Most Telerik CLI commands are related to your Telerik identity. It's recommended to log in first, so that all the other commands work without the need for additional authentication:
telerik login
The login command opens https://identity.telerik.com in a browser window where you need to provide your Telerik account credentials. Then the browser makes a couple of redirects.
The Telerik CLI stores a session token in:
| Operating System | Path |
|---|---|
| Windows | %AppData%\Telerik |
| macOS / Linux | ~/.telerik |
| The session token is valid for one month. |
Check Login State
To see which Telerik user is logged in the CLI, use the whoami command:
telerik whoami
The CLI will output your Telerik user account email.
Log Out from Your Telerik Account
To log out from the Telerik CLI, use the logout command.
telerik logout
Get License Key
To download or update your Telerik license key, use the license get-key command:
telerik license get-key
The license get-key command downloads your up-to-date Telerik license key and saves it as telerik-license.txt in your home directory (%AppData%\Telerik\telerik-license.txt on Windows and ~/.telerik/telerik-license.txt on macOS / Linux).
Install MCP Server
To install the Telerik MCP server, use the mcp config command:
telerik mcp config
By default, the command creates or updates the global MCP configuration file for each supported IDE and adds entries for all available Telerik MCP servers for all Telerik products.
| IDE | Operating System | Configuration File Path |
|---|---|---|
| Visual Studio | Windows | %USERPROFILE%\.mcp.json |
| VS Code | Windows | %APPDATA%\Code\User\mcp.json |
| VS Code | macOS | ~/Library/Application Support/Code/User/mcp.json |
| VS Code | Linux | ~/.config/Code/User/mcp.json |
| Cursor | Windows | %USERPROFILE%\.cursor\mcp.json |
| Cursor | macOS, Linux | ~/.cursor/mcp.json |
Install DPL MCP Server
You can also fine-tune the process with the following options:
- Specify which Telerik products you are interested in, for example, just
dpl. --idespecifies your preferred IDE. The supported values arevisualstudio,vscode,cursor, andall.
telerik mcp config dpl --ide visualstudio
This command installs and configures only the Telerik DPL MCP server and targets only Visual Studio by creating or updating the .mcp.json file with the DPL MCP server entry.
Set Up Telerik NuGet Feed
To add the Telerik NuGet server to your package sources, use the nuget config command:
telerik nuget config
By default, the nuget config command updates your global NuGet.Config file. The newly added Telerik NuGet feed name is TelerikNuGetV3. The command generates a new API key that you can delete and revoke from the API Keys page in your Telerik account.
Telerik NuGet API keys expire in two years.
You can use the nuget config command with the following options:
--scope projectand--paththat points to the folder that contains theNuGet.Configfile to modify. The default--scopevalue isuser.--api-keyto provide an existing Telerik NuGet API key inline, otherwise the CLI generates a new one.--forceto overwrite any existing Telerik credentials in theNuGet.Configfile.
telerik nuget config --scope project --path . --force
Prerequisites
The following table lists the requirements to run the Telerik CLI.
| Requirement | Minimum version | Notes |
|---|---|---|
| .NET SDK | 6.0 | Required to install and run .NET global tools. |
| Operating system | Windows, macOS, or Linux | Any OS supported by the .NET SDK. |
| Telerik account | N/A | Active Subscription or Trial license required. |