diff --git a/docs/usage/getting-started/private-packages.md b/docs/usage/getting-started/private-packages.md index 37afd34d9de68f..7955afb019aa13 100644 --- a/docs/usage/getting-started/private-packages.md +++ b/docs/usage/getting-started/private-packages.md @@ -322,7 +322,18 @@ npmRegistries: ### nuget For each known NuGet registry, Renovate searches for `hostRules` with `hostType=nuget` and matching host. -For those found, a command similar to the following is run: `dotnet nuget add source ${registryInfo.feedUrl} --configfile ${nugetConfigFile} --username ${username} --password ${password} --store-password-in-clear-text` +For those found, a command like the following is run: `dotnet nuget add source ${registryInfo.feedUrl} --configfile ${nugetConfigFile} --username ${username} --password ${password} --store-password-in-clear-text`. + +```js +hostRules: [ + { + matchHost: 'https://pkgs.dev.azure.com//', + hostType: 'nuget', + username: 'user', // doesn't matter for azure + password: '', + }, +]; +``` ### poetry