2

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?

JBaruch
  • 22,610
  • 5
  • 62
  • 90
Mikkel LP
  • 71
  • 6

1 Answers1

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