Tuesday, February 14, 2017

How to push NuGet package to NuGet server with ApiKey

These are the simple 3 steps that you can run to achieve this: 


  1. v:\krishna\nuget.exe sources Add -Name TPaaS-Snapshot-nuget  -Source https://artifactory.trimble.tools/artifactory/TPaaS-Snapshot-nuget/ -username {{username}} -password {{ApiKey}}
  2. v:\krishna\nuget.exe setapikey {{username}}:{{ApiKey}} -source https://artifactory.trimble.tools/artifactory/TPaaS-Snapshot-nuget/
  3.  v:\krishna\nuget.exe push {{package-path}}.nupkg -Source TPaaS-Snapshot-nuget