nugetartifactorynuget-server

Artifactory nuget push - non-existing user (API key / access token)


I am able to push nuget packages to Artifactory using dotnet nuget push %WORKSPACE%\NuGetPackages\*.nupkg --source <url> --api-key <username>:<encrypted password>. However, I would like push using a API key or an access token, but I receive 403 Forbidden trying to do so. Is it possible to get this working?


Solution

  • NuGet protocol expects the API key to be username:password. You can use the Artifactory API key instead of the password, but you still have to provide the username, as described as a fourth option in the API docs.