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>]

Screenshot of the Windows Power Shell window displaying the results of the winget search.


The following arguments are available.

Argument Description
-q,--query The query used to search for an app.
-?, --help Gets additional help on this command.

Show all

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

Search strings can be filtered with the following options.

Option Description
--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:

  • Microsoft
  • microscope
  • MyMicro

Search options

The search commands supports a number of options or filters to help limit the results.

Option Description
-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.