repair command (winget)

May 19, 2026 ยท View on GitHub

The repair command of the winget tool repairs the specified application. This is useful when an app is malfunctioning or has corrupted files but doesn't require a full reinstall.

Use the list command to identify the application you want to repair. The repair command requires that you specify the exact string to repair. If there is any ambiguity, you will be prompted to further filter the repair command to an exact application.

Usage

winget repair [[-q] <query> ...] [<options>]

:::image type="content" source="./images/repair.png" alt-text="Screenshot listing winget repair command options." lightbox="./images/repair.png":::

Aliases

The following aliases are available for this command:

  • fix

Arguments

The following arguments are available.

ArgumentDescription
-q,--queryThe query used to search for an app.

The query argument must be provided as a positional parameter. Wildcard syntax is not supported. Typically, this is a string that uniquely identifies the package you want to install.

Options

These options allow you to customize the install experience to meet your needs.

OptionDescription
-m, --manifestMust be followed by the path to the manifest (YAML) file. You can use the manifest to run the repair experience from a local YAML file.
--idLimits the install to the ID of the application.
--nameLimits the search to the name of the application.
--monikerLimits the search to the moniker listed for the application.
-v, --versionEnables you to specify an exact version to install. If not specified, latest will install the highest versioned application.
--product-codeFilters using the product code.
-a, --architectureSelect the architecture to install.
--scopeAllows you to specify if the installer should target user or machine scope. See known issues relating to package installation scope.
-s, --sourceRestricts the search to the source name provided. Must be followed by the source name.
-i, --interactiveRuns the installer in interactive mode. The default experience shows installer progress.
-h, --silentRuns the installer in silent mode. This suppresses all UI. The default experience shows installer progress.
-o, --logDirects the logging to a log file. You must provide a path to a file that you have the write rights to.
--ignore-local-archive-malware-scanIgnore the malware scan performed as part of installing an archive type package from local manifest.
--accept-source-agreementsUsed to accept the source license agreement, and avoid the prompt.
--accept-package-agreementsUsed to accept the license agreement, and avoid the prompt.
--localeSpecifies which locale to use (BCP47 format).
--headerOptional Windows-Package-Manager REST source HTTP header.
--authentication-modeSpecify authentication window preference (silent, silentPreferred or interactive).
--authentication-accountSpecify the account to be used for authentication.
--forceDirect run the command and continue with non security related issues.
--ignore-security-hashIgnore the installer hash check failure. Not recommended.
-e, --exactUses the exact string in the query, including checking for case-sensitivity. It will not use the default behavior of a substring.
-?, --helpGet additional help on this command.
--waitPrompts the user to press any key before exiting.
--logs,--open-logsOpen the default logs location.
--verbose, --verbose-logsUsed to override the logging setting and create a verbose log.
--nowarn,--ignore-warningsSuppresses warning outputs.
--disable-interactivityDisable interactive prompts.
--proxySet a proxy to use for this execution.
--no-proxyDisable the use of proxy for this execution.

Example queries

The following example repairs an application.

winget repair Micrososft.WinGetCreate