To push a nuget package to Visual Studio Online feed v3 use the following command:
nuget.exe push MyPackage.1.0.0.nupkg
-Source https://account.pkgs.visualstudio.com/DefaultCollection/_packaging/My_Feed/nuget/v3/index.json
-ConfigFile nuget.config
-ApiKey My_Feed
The crucial part here is to include -ApiKey My_Feed
, otherwise you’ll get 404 Not Found error.
Happy packaging!