Skip to content

Commit 5a248ec

Browse files
Merge pull request #6544 from MicrosoftDocs/jken/winget-docs-issue-fixes
winget docs: improve --query and agreement flag documentation
2 parents dbbfec6 + 94ada8e commit 5a248ec

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

hub/package-manager/winget/install.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ The following arguments are available.
3232
| **-q,--query** | The query used to search for an app. |
3333

3434
> [!NOTE]
35-
> The query argument is positional. Wild-card style syntax is not supported. This is most often the string of characters you expect to uniquely identify the package you wish to install.
35+
> The query argument is positional. By default, winget performs a **case-insensitive substring match** against the package name, ID, and moniker. Wild-card syntax is not supported. Use **-e, --exact** to require an exact match (case-sensitive). Use **--id**, **--name**, or **--moniker** to restrict which field is searched.
3636
3737
## Options
3838

@@ -62,12 +62,12 @@ The options allow you to customize the install experience to meet your needs.
6262
| **--skip-dependencies** | Skips processing package dependencies and Windows features. |
6363
| **--ignore-local-archive-malware-scan** | Ignore the malware scan performed as part of installing an archive type package from local manifest. |
6464
| **--dependency-source** | Find package dependencies using the specified source. |
65-
| **--accept-package-agreements** | Used to accept the license agreement, and avoid the prompt. |
65+
| **--accept-package-agreements** | Accepts any license agreements or EULAs presented by the package installer, suppressing the interactive prompt. This applies to the package's own license terms only — it does not affect optional components or bundled software offered by the installer. For a fully non-interactive install, combine with **--silent (-h)**. |
6666
| **--no-upgrade** | Skips upgrade if an installed version already exists. |
6767
| **--header** | Optional Windows-Package-Manager REST source HTTP header. |
6868
| **--authentication-mode** | Specify authentication window preference (silent, silentPreferred or interactive). |
6969
| **--authentication-account** | Specify the account to be used for authentication. |
70-
| **--accept-source-agreements** | Used to accept the source license agreement, and avoid the prompt. |
70+
| **--accept-source-agreements** | Accepts the license agreement for the WinGet source (repository), suppressing the interactive prompt. This is separate from any package license — it covers the terms of use for the source itself, such as the winget community repository. |
7171
| **-r, --rename** | The value to rename the executable file (portable). |
7272
| **--uninstall-previous** | Uninstall the previous version of the package during upgrade. |
7373
| **--force** | Direct run the command and continue with non security related issues. |

hub/package-manager/winget/search.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ The following arguments are available.
3434
| **-q,--query** | The query flag is the default argument used to search for an app. It does not need to be specified. Entering the command `winget search foo` will default to using `--query` so including it is unnecessary.|
3535

3636
> [!NOTE]
37-
> The query argument is positional. Wild-card style syntax is not supported. This is most often the string of characters you expect to help find the package you are searching for.
37+
> The query argument is positional. winget performs a **case-insensitive substring match** against the package name, ID, and moniker. Wild-card syntax is not supported. Use **-e, --exact** to require an exact, case-sensitive match. Use **--id**, **--name**, or **--moniker** to restrict which field is searched.
3838
3939
## Show all
4040

0 commit comments

Comments
 (0)