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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.