New to Telerik JustMockStart a free 30-day trial

Installation using NuGet package

Updated on Mar 10, 2026

This topic outlines the steps required to install Telerik JustMock and Telerik JustMock Lite using the NuGet package inside Visual Studio or on the command line.

Generate an 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, as it eliminates the need to share or store your actual password, especially when working with .NET CLI or the NuGet.Config file.

  1. Go to the API Keys page in your Telerik account.

  2. Click Generate New Key +.

    Manage API Keys

  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 later. 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.

Installing JustMock

Visual Studio

To install the JustMock NuGet package, first add the Telerik NuGet feed to the package sources using NuGet Package Manager:

  1. Open Visual Studio and go to Tools > NuGet Package Manager > Package Manager Settings.

  2. Select Package Sources, and then select the + button.

  3. In the Name field, enter Telerik.com.

  4. In the Source field, enter https://nuget.telerik.com/v3/index.json, and then select OK.

    The Telerik NuGet feed is available for authorized access at https://nuget.telerik.com/v3/index.json. Note that the previous v2 server, accessible at https://nuget.telerik.com/nuget, is deprecated and is no longer in use.

    Add NuGet Source

Once you have configured Visual Studio to access the Telerik NuGet server, add the JustMock NuGet package to the project:

  1. In Visual Studio, open the solution in which you will use mocking.

  2. Go to Tools > NuGet Package Manager > Manage NuGet Packages for Solution....

  3. From the Package source drop-down, select Telerik.com.

  4. On the Browse tab, search for JustMock.

  5. Select the JustMock.Commercial package, select the desired project, and then select Install.

    Install JustMock NuGet Package

Command Line

  • On the command line you can use the following commands:
bat
dotnet nuget add source "https://nuget.telerik.com/v3/index.json" --name "Telerik.com" --username "api-key" --password <TELERIK_NUGET_API_KEY>
dotnet add package JustMock.Commercial --version 2024.4.1203.350

Installing JustMock Lite

Visual Studio

  • JustMock Lite NuGet package is available on nuget.org. You can follow similar steps from the second part of the procedure above to add the JustMock Lite package to your test project in Visual Studio. Simply select the nuget.org source and browse for the JustMock Lite package:

    Install JustMock Lite NuGet Package

Command Line

  • On the command line run the following command:
bat
dotnet add package JustMock --version 2024.4.1203.350

Resources and Documentation

Next Steps