title: Push a NuGet package to VSTS with .NET CLI
body: <p>I'm trying to publish a NuGet package to a private VSTS feed. I'd like to achieve that using <strong>only</strong> .NET CLI and without creating or modifying a nuget.config file.</p>
  
  <p>I've tried to do:</p>
  
  <pre><code>dotnet nuget push &lt;PackageName&gt; --source https://XXX.pkgs.visualstudio.com/_packaging/YYY/nuget/v3/index.json --api-key &lt;VSTS UserName&gt;:&lt;PersonalAccessToken&gt;
  </code></pre>
  
  <p>I get:
  <code>
  error: Unable to load the service index for source https://XXX.pkgs.visualstudio.com/_packaging/YYY/nuget/v3/index.json.
  error:   Response status code does not indicate success: 401 (Unauthorized).
  </code></p>
  
  <p>I can see in Fiddler that .NET CLI sends only a GET request to <code>https://XXX.pkgs.visualstudio.com/_packaging/YYY/nuget/v3/index.json</code> without any authorization token. That request ends with 401.</p>