Publishing Packages Using the NuGet Command Line

While there's no doubt it is useful to be able to publish a NuGet package to the official NuGet package source using your browser, it is not the most convenient way to publish NuGet packages, not to mention the fact that you can't automate this process. Also, publishing a package through your web browser probably takes more time than doing so using a command line tool. This section will show you how you can use the NuGet command line to publish packages to any NuGet feed.

Publishing a Package to a NuGet Feed

To get you started quickly, issue the following command on a console using the NuGet command line:

nuget push ProNuGetStringExtensions.1.0.nupkg

As you can see in Figure 4-8, this command ...

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.