search command (winget)
The search command of the winget tool queries the sources for available applications that can be installed.
The search command can show all applications available, or it can be filtered down to a specific application. The search command is used typically to identify the string to use to install a specific application.
winget search [[-q] \<query>] [\<options>]
The following arguments are available.
|-q,--query||The query used to search for an app.|
|-?, --help||Gets additional help on this command.|
If the search command includes no filters or options, it will display all available applications in the default source. You can also search for all applications in another source if you pass in just the source option.
Search strings can be filtered with the following options.
|--id||Limits the search to the ID of the application. The ID includes the publisher and the application name.|
|--name||Limits the search to the name of the application.|
|--moniker||Limits the search to the moniker specified.|
|--tag||Limits the search to the tags listed for the application.|
|--command||Limits the search to the commands listed for the application.|
The string will be treated as a substring. The search by default is also case insensitive. For example,
winget search micro could return the following:
The search commands supports a number of options or filters to help limit the results.
|-e, --exact||Uses the exact string in the query, including checking for case-sensitivity. It will not use the default behavior of a substring.|
|-n, --count||Restricts the output of the display to the specified count.|
|-s, --source||Restricts the search to the specified source name.|