Applies to: package consumption, publishing • Supported versions: all
Manages the list of sources located in the user scope configuration file or a specified configuration file. The user scope configuration file is located at %appdata%\NuGet\NuGet.Config (Windows) and ~/.nuget/NuGet/NuGet.Config (Mac/Linux).
Note
Use package sources that you trust.
Note that the source URL for nuget.org is https://api.nuget.org/v3/index.json.
Usage
nuget sources -Name -Source
where is one of List, Add, Remove, Enable, Disable, or Update, is the name of the source, and is the source's URL. You can operate on only one source at a time.
(3.5+) Forces nuget.exe to run using an invariant, English-based culture.
-Format
Applies to the list action and can be Detailed (the default) or Short.
-?|-help
Displays help information for the command.
-Name
Name of the source.
-NonInteractive
Suppresses prompts for user input or confirmations.
-Password
Specifies the password for authenticating with the source.
Note
Be aware that encrypted passwords are only supported on Windows.
Moreover, they can only be decrypted on the same machine and by the same user who originally encrypted them.
-src|-Source
Path to the package(s) source.
-StorePasswordInClearText
Indicates to store the password in unencrypted text instead of the default behavior of storing an encrypted form.