Winget – The Basics

What is Winget

Winget is a command line tool for finding, installing, updating, removing and configure application on Windows 10 and Windows 11.
Winget is preinstalled on Windows 11 and never versions of Windows 10 (supports 1709 or never), you can also download, install and update Winget from the Microsoft Store.

Search

Use the search function to find application packages to install. To search for application type in winget search APPNAME

Install

When you have the ID of the application you wish to install you can use the winget install function to automatically download and install the application on the device. It’s as easy as winget install ID.
Note that if you are not running the terminal window as Administrator and the application requires admin rights to install it will prompt you for Admin credentials.

List

List is used for listing all installed application on the device. If you just use the winget list command it will mostly likely give you a long list of applications installed on the device so I’d recommend using some parameters to limit the list result. –name can be very helpful in finding multiple instances of an application such as shown in the picture below

This image has an empty alt attribute; its file name is 2022-09-24_14h18_26.png

Uninstall

Used to remove application from the device.

Useful parameters

To unlock even more power with winget use parameters. Here is a short list of some parameters, for a full list visit the Microsoft Learn page or use the winget --help command

-e uses the exact string in the query, it is also case sensitive. ex winget install Microsoft.Edge -e
-h makes the operation silent. ex winget install Microsoft.PowerToys -h -e
-v uses the exact version of an application. If this parameter is not used then winget will use the latest available. ex winget install --id Microsoft.PowerToys --version 0.15.2