简体   繁体   中英

CLI command to fetch detail for one package from Nuget

I need to get detail for one package from Nuget through CLI command. Below command returns me all packages which is unusable as it take alot of time to get executed.

nuget list -source http://nuget.org/api/v2

From Visual Studio:

Find-Package -Source "http://nuget.org/api/v2" -Id "SomeName"

(or to be depreciated)

Get-Package -ListAvailable -Source "http://nuget.org/api/v2" -Filter *SomeName*

From Powershell v5:

Find-Package -Source "http://nuget.org/api/v2" -Name "SomeName"

You might be promted smth like

Blockquote nuget may be manually downloaded from https://oneget.org/Microsoft.PackageManagement.NuGetProvider-2.8.5.207.dll and installed. Would you like PackageManagement to automatically download and install 'nuget' now?

In older versions of Powershell you might need to look into OneGet package manager ( https://github.com/OneGet/oneget )

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM