Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Applies to: ✔️ .NET 10.0.2xx SDK and later versions.
Name
dotnet package download — Download one or more NuGet packages to disk.
Synopsis
dotnet package download [<packages>...]
[--output <path>]
[--configfile <path> ]
[--prerelease]
[--source <package source>]
[--allow-insecure-connections]
[--interactive]
[--verbosity <level>]
dotnet package download -h|--help
Description
dotnet package download downloads NuGet packages to a local directory. It does not add or update PackageReference entries in project files and does not build or restore a project.
By default, the command downloads only the packages you specify (no transitive dependencies) to the current working directory.
Arguments
packagesOne or more package IDs to download. Each package can optionally include a version with
@. If a package version isn't specified, the latest version of the package is downloaded. For example,dotnet package download Contoso.Utilitiesordotnet package download Contoso.Utilities@3.2.1.
Options
--allow-insecure-connectionsAllows downloading from HTTP sources. Without this flag, insecure sources cause the command to error per HTTPS-everywhere guidance.
--configfile <path>Path to a NuGet.config to use.
-
--interactiveAllows the command to stop and wait for user input or action. For example, to complete authentication.
-o, --output <path>Directory where the package will be placed. Defaults to the current working directory.
--prereleaseAllows downloading prerelease versions.
-s --source <package source>Specifies the NuGet package source to use.
-
-v|--verbosity <LEVEL>Sets the verbosity level of the command. Allowed values are
q[uiet],m[inimal],n[ormal],d[etailed], anddiag[nostic]. For more information, see LoggerVerbosity. -
-?|-h|--helpPrints out a description of how to use the command.
Examples
Download a single package at a specific version
dotnet package download Contoso@13.0.3 --output My/Destination/For/packages
Download multiple packages to a custom folder
dotnet package download Contoso@3.1.2 Contoso.Utility@6.12.0 --output My/Destination/For/packages