dotnet nuget

Starting from dotnet 3.1.200 there is build in nuget sources manager in dotnet core.

List available sources

dotnet nuget list source

Delete source by name

dotnet nuget remove source TeamCity

Add source

dotnet nuget add source https://teamcity.rabota.ua/httpAuth/app/nuget/feed/\_Root/default/v3/index.json --name TeamCity --username AlexandrM --password xxx --store-password-in-clear-text

Update source

dotnet nuget update source TeamCity --source https://teamcity.rabota.ua/httpAuth/app/nuget/feed/\_Root/default/v3/index.json --username AlexandrM --password xxx --store-password-in-clear-text

Update source credentials

Each time active directory password rotated you will need to run this

dotnet nuget update source TeamCity --username AlexandrM --password xxx --store-password-in-clear-text

At moment encryption of credentials is available only on windows platform