| title | dotnet nuget disable source command |
|---|---|
| description | The dotnet nuget disable source command disables an existing source in your NuGet configuration files. |
| ms.date | 10/28/2025 |
This article applies to: ✔️ .NET 6 SDK and later versions
dotnet nuget disable source - Disable a NuGet source.
dotnet nuget disable source <NAME> [--configfile <FILE>]
dotnet nuget disable source -h|--help
The dotnet nuget disable source command disables an existing source in your NuGet configuration files.
-
NAMEName of the source.
[!INCLUDE configfile]
-
Disable a source with name of
mySource:dotnet nuget disable source mySource