Pushing a Package

The following command pushes a package to the server:

nuget push <package path> [API key] [options]

Depending on the NuGet feed you are pushing to, the package will immediately be published as well. Optionally, this behavior can be disabled by specifying the -CreateOnly option.

Available options are shown in Table B-7.

images

Get Pro NuGet now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.