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?
Asked
Active
Viewed 1,595 times
2
1 Answers
6
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.

JBaruch
- 22,610
- 5
- 62
- 90
-
1For some reason, I did not get any notification. But thanks, I will try it out. – Mikkel LP Apr 02 '20 at 15:08
-
Worked beautifully. Thanks! – Mikkel LP Apr 15 '20 at 08:48