WinGet Cheat Sheet¶
A quick-reference guide for managing Windows software packages using the Winget command-line tool, covering package discovery, silent installations, bulk upgrades, and system provisioning.
Search & Discovery¶
Searches repositories for a package matching the name:
Searches for a specific, exact package ID:
Lists all installed applications on the system:
Checks if a specific application is currently installed:
Displays detailed metadata (version, publisher, URLs) for a package:
Installation & Removal¶
Installs the best match for the given name:
Best Practice: Installs an exact match by its unique ID:
Uninstalls the specified package:
Uninstalls a package using its exact ID:
Updates & Upgrades¶
Lists all installed packages that have an available update:
Upgrades a specific package:
Upgrades all eligible packages to their latest versions:
Automation & Provisioning¶
Exports a list of all currently installed winget packages to a JSON file:
Installs all packages listed in a previously exported JSON file:
Essential Modifiers & Flags¶
| Flag | Effect |
|---|---|
-h or --silent |
Runs the installer in the background without launching a visible UI. |
--accept-package-agreements |
Automatically accepts license agreements. |
--accept-source-agreements |
Automatically accepts repository agreements. |
--override "<args>" |
Passes custom arguments directly to the underlying .exe or .msi installer. |
-v <version> |
Installs a specific version of a package rather than the latest. |
Example of a fully automated, silent install: