Share via


Restore NuGet packages from the command line (NuGet.exe)

Azure DevOps Server 2019

This article guides you through setting up your project and restoring NuGet packages using the NuGet command-line interface.

Prerequisites

Product Requirements
Azure DevOps - An Azure DevOps organization.
- An Azure DevOps project.
- An Azure Artifacts feed.
- Download and install the Azure Artifacts Credential Provider.
- The latest NuGet version.

Connect to a feed

  1. Sign in to your Azure DevOps server, and then navigate to your project.

  2. Select Artifacts, and then select your feed.

  3. Select Connect to Feed, and then select NuGet from the left navigation pane.

  4. Follow the provided instructions to add your package source URL to your nuget.config file.

Restore packages

Run the following command in your project directory to restore your packages:

nuget.exe restore