Syntax
Description
TheFind-WinGetPackage cmdlet searches configured sources for packages. You can filter packages by ID, name, moniker, tags, commands, or perform a general search across all fields using the Query parameter. Results can be piped to Install-WinGetPackage for installation.
Parameters
The package identifier to match against. Supports wildcard matching based on the MatchOption parameter.Pipeline Input: true (by property name)
Parameter Set: FoundSet
Parameter Set: FoundSet
The package name to match against. Supports wildcard matching based on the MatchOption parameter.Pipeline Input: true (by property name)
Parameter Set: FoundSet
Parameter Set: FoundSet
The package moniker to match against. Monikers are short, memorable names for packages.Pipeline Input: true (by property name)
Parameter Set: FoundSet
Parameter Set: FoundSet
The name of the source to search for packages. If not specified, searches all configured sources.Pipeline Input: true (by property name)
Parameter Set: FoundSet
Parameter Set: FoundSet
One or more strings that match against all fields of a package. Use for general search.Pipeline Input: true (by property name, remaining arguments)
Parameter Set: FoundSet
Position: 0
Parameter Set: FoundSet
Position: 0
Filter packages by tag. Matches against the tags defined in the package manifest.Pipeline Input: true (by property name)
Parameter Set: FoundSet
Parameter Set: FoundSet
Filter packages by command. Matches against commands provided by the package.Pipeline Input: true (by property name)
Parameter Set: FoundSet
Parameter Set: FoundSet
The maximum number of results to return. Valid range: 1-1000.Pipeline Input: true (by property name)
Parameter Set: FoundSet
Parameter Set: FoundSet
Controls how package fields are matched. Valid values:
Parameter Set: FoundSet
Equals- Exact match (case sensitive)EqualsCaseInsensitive- Exact match (case insensitive)StartsWithCaseInsensitive- Starts with matchContainsCaseInsensitive- Contains match
Parameter Set: FoundSet
Outputs
A package found in configured sources.
Examples
Example 1: Search by Name
Example 2: Search by ID
Example 3: General Search
Example 4: Search in Specific Source
Example 5: Search by Tag
Example 6: Search by Command
Example 7: Limit Results
Example 8: Exact Match
Example 9: Starts With Match
Example 10: Search and Install
Example 11: Search and Select
Example 12: Search Multiple Terms
Notes
- Alias:
fdwgp - Default
MatchOptionisContainsCaseInsensitivefor search operations - Results are limited to 1000 packages maximum
- Use
-Countto limit the number of results - Packages can be piped to
Install-WinGetPackagefor installation - Search occurs across all configured sources unless
-Sourceis specified