Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/microsoft/winget-cli/llms.txt

Use this file to discover all available pages before exploring further.

The search command finds packages available in configured sources. You can also use the find alias.

Syntax

winget search [<query>] [options]

Arguments

query
string
Search query string. Searches across package name, ID, and moniker.

Filter Options

--id
string
Filter by package identifier
--name
string
Filter by package name
--moniker
string
Filter by package moniker
--tag
string
Filter by package tag
--command
string
Filter by command/executable name
-s, --source
string
Source to search (e.g., “winget”, “msstore”)
-e, --exact
flag
Use exact string matching for queries
-n, --count
number
Limit number of results displayed (default: 100)

Display Options

--versions
flag
List all available versions for the package

Authentication

--header
string
Custom HTTP header for source requests
--authentication-mode
string
Authentication mode: silent, silentPreferred, interactive
--authentication-account
string
Account to use for authentication
--accept-source-agreements
flag
Accept all source agreements

Examples

Search for packages:
winget search python
Search by exact ID:
winget search --id Python.Python.3.11 --exact
Search by name:
winget search --name "Visual Studio Code"
Search in specific source:
winget search powertoys --source winget
Search by tag:
winget search --tag "productivity"
Limit search results:
winget search python --count 5
List all versions:
winget search Python.Python.3.11 --versions
Search by command:
winget search --command code

Output Format

Standard search displays a table:
Name                     Id                        Version   Match      Source
---------------------------------------------------------------------------------
Python 3.11              Python.Python.3.11        3.11.5    Tag: python winget
Python 3.10              Python.Python.3.10        3.10.11   Tag: python winget
MiKTeX                   MiKTeX.MiKTeX             23.4      Tag: python winget
With --versions flag:
Version    Channel
------------------
3.11.5
3.11.4
3.11.3
3.11.2
3.11.1

Exit Codes

  • 0 - Success
  • 0x8A150001 - No packages found matching query
When searching without arguments (winget search), results are limited by default. Use --count to adjust the limit.
The Match column shows where your search term was found (Name, ID, Tag, etc.).

Build docs developers (and LLMs) love