Publishing Packages

The following command publishes a package that was uploaded to the server but not added to the feed:

nuget publish <package id> <package version> [API key] [options]

For example, some NuGet feeds like the official NuGet gallery at NuGet.org support listing and unlisting a package. The publish command can list a package that has previously been unlisted.

Available options are shown in Table B-6.

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.