Skip to content
Henrik edited this page Aug 21, 2014 · 1 revision

Push a NuGet package online.

nugetpush :push => [:pack] do |cmd|
  cmd.package = "path/to/nupkg"
  cmd.api_key = "abcsecretsxyz"
  cmd.source = "http://nuget.gw.symbolsource.org/Public/Nuget"
end

Required Parameters

Package

The location of the NuGet package.

package = "path/to/nupkg"

Optional Parameters

API Key

The API key to push to the NuGet server.

api_key = "abcsecretxyz"

Source

The default pushes to http://nuget.org. For symbol source, use "http://nuget.gw.symbolsource.org/Public/Nuget". And you can override it with your own URL.

source = "http://mynugetsource.com"

Guidance

(none)

Clone this wiki locally