dotnet CLI should support search of NuGet packages on one or all configured sources #12891
Labels
cli-ux
Issues and PRs that deal with the UX of the CLI (exit codes, log output, verbs/options, and so on)
Issue
I would find it useful for the dotnet CLI to enumerate packages (and versions of packages) on a NuGet feed and enable searching of one or more NuGet feeds for keywords, tags, and names of a package.
The desired functionality is similar to the list command of nuget.exe, though hopefully
Proposed Solution
Add a
dotnet nuget
subcommandls
that has a structure somewhere betweengrep
and andnuget list
.This provides the combined functionality of listing all packages or listing packages that match a user-defined search term which are available on one or more NuGet feeds
nuget ls [OPTION]... [-s PATTERN]... [SOURCE]...
:When passed with no SOURCEs all enabled sources are used and only the most recent Release version are returned.
-a
,--all-versions
flag specifies all versions available on the feed are returned sorted in descending order.-i
,--include-disabled
flag specifies use of both enabled and disabled sources.-s
,--search-term
option specifies one or more search terms which will be used to filter packagesWhen passed with one or more [SOURCE] parameters with the name of an established feed or a URL defining a feed those are the feeds from which packages are listed.
Method of Implementation
While this could be added as a dotnet core tool, and it is fairly similar to dotnet-search (and perhaps should be added there first), it feels like core functionality that should be supported by the CLI without adding a tool.
The text was updated successfully, but these errors were encountered: