dotnet-nuget-update-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-update-source(1) πŸ’–

okay bestie, welcome to the dotnet-nuget-update-source page from the .NET Documentation manual β€” yes that's the manual name, we're not gatekeeping it πŸ’…

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

⚠️ Real talk before anything else: Use package sources that you trust. No cap. 🫢

✨ NAME ✨

dotnet-nuget-update-source β€” Update a NuGet source. 🌸


πŸŽ€ SYNOPSIS πŸŽ€

dotnet nuget update source <NAME> [--source <SOURCE>] [--username <USER>]
    [--password <PASSWORD>] [--store-password-in-clear-text]
    [--valid-authentication-types <TYPES>] [--configfile <FILE>]

dotnet nuget update source -h|--help

πŸ¦‹ DESCRIPTION πŸ¦‹

So the dotnet nuget update source command updates an existing source in your NuGet configuration files. That's the whole vibe. It's not creating a new one, it's not deleting one β€” it's updating one, the way you update your profile pic but for package sources. Iconic. ✨


πŸ“ ARGUMENTS πŸ“

  • NAME β€” Name of the source. Just the name, bestie, that's all it needs. πŸ’œ

πŸ’… OPTIONS πŸ’…

  • --configfile <FILE> β€” The NuGet configuration file (nuget.config) to use. If you specify it, then only the settings from this file will be used β€” like, it's the only one invited to the party. If you don't specify it, the hierarchy of configuration files from the current directory will be used instead. For more information, see Common NuGet Configurations. πŸŽ€
  • -p, --password <PASSWORD> β€” Password to be used when connecting to an authenticated source. πŸ”
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. So no, your friend's laptop is not gonna decrypt your secrets, and honestly? Neither is your future self on a new machine. πŸ’€
  • -s, --source <SOURCE> β€” Path to the package source. Simple. Clean. Main character energy. 🌈
  • --store-password-in-clear-text β€” Enables storing portable package source credentials by disabling password encryption.
WARNING: Storing passwords in clear text is strongly discouraged. Like, strongly. For more information on managing credentials securely, refer to the security best practices for consuming packages from private feeds. Please don't do the clear text thing unless you truly have to, bestie 😭
  • -u, --username <USER> β€” Username to be used when connecting to an authenticated source. 🌸
  • --valid-authentication-types <TYPES> β€” Comma-separated list of valid authentication types for this source. Set this to basic if the server advertises NTLM or Negotiate and your credentials must be sent using the Basic mechanism β€” for instance when using a PAT with on-premises Azure DevOps Server. Other valid values include negotiate, kerberos, ntlm, and digest, but these values are unlikely to be useful. iykyk. 🧚

πŸ”₯ EXAMPLES πŸ”₯

  • Update a source with name of mySource:
dotnet nuget update source mySource --source c:\packages

slay. That's it, that's the example. ✨


πŸ‘‘ SEE ALSO πŸ‘‘

  • Security best practices for managing package source credentials
  • Package source sections in NuGet.config files
  • sources command (nuget.exe)

k bye bestie, go forth and update those sources responsibly πŸ’–

This was the dotnet-nuget-update-source(1) page, dated 2025-10-30 β€” and that's the version and date, so we're done here. πŸŽ€βœ¨πŸ¦‹

πŸ“¦ where this page comes from