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.
This article applies to: ✔️ .NET 8.0.2xx SDK and later versions
Name
dotnet nuget config set - Set the value of a specified NuGet configuration setting.
Synopsis
dotnet nuget config set <CONFIG-KEY> <CONFIG-VALUE> [--configfile <FILE>]
dotnet nuget config set -h|--help
Description
The dotnet nuget config set sets the values for NuGet configuration settings that will be applied from the config section.
Arguments
CONFIG_KEYThe key of the settings that are to be set.
CONFIG-VALUEThe value of the settings that are to be set.
Options
-
--configfile <FILE>The NuGet configuration file (nuget.config) to use. If specified, only the settings from this file will be used. If not specified, the hierarchy of configuration files from the current directory will be used. For more information, see Common NuGet Configurations.
-
-?|-h|--helpPrints out a description of how to use the command.
Examples
Sets the
repositoryPathconfiguration valuec:\installed_packagesto the current directory:dotnet nuget config set repositoryPath "c:\installed_packages"Sets the
repositoryPathconfiguration valuec:\installed_packagesto the specified configuration file:dotnet nuget config set repositoryPath "c:\installed_packages" --configfile "c:\nuget.config"