Skip to main content
A newer version of this page is available. .

Manage Packages Using Dotnet CLI

The dotnet CLI (command line interface) is a cross-platform tool allowing you to create and manage .Net application projects. You can use the dotnet CLI to install or remove NuGet packages.

Below is an example of console inputs for dotnet CLI commands related to managing packages.

Important

You need to specify the -s key with the feed URL containing your feed authorization key to install packages from the DevExpress NuGet feed. Refer to Obtain Your NuGet Feed URL for details on how to obtain this URL.


# Add DevExpress.AspNetCore.Bootstrap to the current project
# Use the -s key to specify the package source (for example, the DevExpress NuGet feed)
dotnet add package DevExpress.AspNetCore.Bootstrap -s https://nuget.devexpress.com/{your-feed-authorization-key}/api

# Remove the DevExpress.AspNetCore.Bootstrap package
dotnet remove package DevExpress.AspNetCore.Bootstrap

# Automatically install all the dependencies in the project file 
dotnet restore

Refer to the Install and use a package using the dotnet CLI topic (Microsoft Documentation) for more information on package installation using the dotnet CLI.