Cannot use `dnx` when package is in private feed
Is your feature request related to a problem? Please describe.
I am trying to do run a tool using dnx, where the tool is in github nuget feed, but dnx lacks an command argument for auth.
Describe the solution you'd like
dnx Company.InternalTool.PackageId \
--source "https://nuget.pkg.github.com/mycompany/index.json" \
+++ --apikey "GITHUB_PAT_HERE"
Additional context
There is no --apikey parameter allowing me to run dnx against a private feed. I have to create a nuget.config-file, which beats the purpose of dnx (one-off, easy to run, etc).
Does it work for a private Azure DevOps feed using the credential provider? If so the title is misleading and should clarify that.
The issue is unrelated to specific sources. There is no way to pass auth without using a nuget.config.
The issue is unrelated to specific sources. There is no way to pass auth without using a nuget.config.
When using a private Azure DevOps feed with the credential provider you don't need to explicitly pass auth. So the title is still a bit misleading.
Could you clarify what's misleading? I don't use Azure DevOps and don't really care about Azure DevOps specifics here.
Credential providers is just another set of actions you have to do upfront. And that's my issue here: it should be possible to avoid manual tasks before calling dnx (even for private feeds).
Could you clarify what's misleading? I don't use Azure DevOps and don't really care about Azure DevOps specifics here. Credential providers is just another set of actions you have to do upfront. And that's my issue here: it should be possible to avoid manual tasks before calling
dnx(even for private feeds).
That seems like another issue. The issue in the description here mentions that the actual issue is the missing API key argument. The title makes it seem like no private feed can be used which as we have concluded is not true.
Ok - I'll adapt it to clarify the missing auth pieces.
Just to pinpoint how asymmetric this currently is. A maintainer can push a nuget using an API-key, but a client cannot fetch a package with an API-key.
✅ dotnet nuget push mypackage.nupkg --source "https://nuget.pkg.github.com/mycompany/index.json" --api-key <push-key>
❌ dnx mypackage --source "https://nuget.pkg.github.com/mycompany/index.json" --api-key <read-key>