How to find nuget package sort by most downloaded using the console?
You can use Sort-Object
to order the packages by number of downloads:
Get-Package -Filter moq -ListAvailable | Sort-Object -Descending -Property DownloadCount
If you also want to see the number of downloads you can also use Select-Object
to get the number of downloads:
Get-Package -Filter moq -ListAvailable | Select-Object ID, Version, Description, DownloadCount | Sort-Object -Descending -Property DownloadCount