DOTNET-NUGET-DISABLE-SOURCE(1)

πŸ“¦
version 11.0.0~rc3 Β· 6 versions
, in alpine 3.24, centos-stream 10, centos-stream 9, fedora 43, fedora 44, nixpkgs unstable, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’… dotnet-nuget-disable-source(1) β€” .NET Documentation

okay bestie, welcome to the glow-up era of this manpage πŸŽ€ this one lives in the .NET Documentation fam, and it's your girl dotnet-nuget-disable-source(1).

This article applies to: βœ”οΈ .NET 6 SDK and later versions ✨

✨ NAME ✨

dotnet-nuget-disable-source β€” Disable a NuGet source.

Like, it turns a source off. Not deletes it, not yeets it into the void β€” just flips it to off. Periodt. πŸ’…


🌸 SYNOPSIS 🌸

dotnet nuget disable source <NAME> [--configfile <FILE>]

dotnet nuget disable source -h|--help

πŸ¦‹ DESCRIPTION πŸ¦‹

The dotnet nuget disable source command disables an existing source in your NuGet configuration files.

that's it. that's the whole vibe. you point it at a source that already exists, and it gets disabled. no cap. 😌


πŸ‘‘ ARGUMENTS πŸ‘‘

  • NAME β€” Name of the source. just the name, bestie, the plain little name you gave it 🫢

πŸ’– 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. πŸ—‚οΈβœ¨
ngl this one matters: pass --configfile and it's that file only, no wandering the directory tree. leave it out and the whole config hierarchy from your current directory gets to speak. choose wisely, queen πŸ’…

🌈 EXAMPLES 🌈

  • Disable a source with name of mySource:
dotnet nuget disable source mySource

iconic. one line. done. πŸ“


⭐ SEE ALSO ⭐

  • Package source sections in NuGet.config files
  • sources command (nuget.exe)

and that's the whole page, bestie β€” go forth and disable responsibly πŸ’œ

source + version + date, for the record: this was dotnet-nuget-disable-source(1) from the .NET Documentation, dated 2025-10-30 🌸 mwah, stan this command, bye πŸŽ€

πŸ“¦ where this page comes from