C#C
C#8mo ago
Core

✅ Unable to publish a package despite having a valid API key

Hello,
I created a key with push privileges, but when trying to publish a package I get a Forbidden response.
Also, there's a section to select packages, but I have no packages, this would be the first push.
I have checked it, and the package ID is unique.

❯ dotnet nuget push packages/*.nupkg --api-key mykey --source https://api.nuget.org/v3/index.json
Pushing UniqueName.1.0.0-preview.1.nupkg to 'https://www.nuget.org/api/v2/package'...
  PUT https://www.nuget.org/api/v2/package/
  Forbidden https://www.nuget.org/api/v2/package/ 4207ms
error: Response status code does not indicate success: 403 (The specified API key is invalid, has expired, or does not have permission to access the specified package.).
image.png
Was this page helpful?