How to Install Apps Using Winget on Windows
In this article
Yes, you can install apps on Windows from the command line using winget, Microsoft's official package manager. Instead of hunting down download pages, you run a single command like winget install Firefox and winget finds, downloads, installs and updates the app for you. It comes built into Windows 10 and 11 (via the App Installer package), so on most modern systems there is nothing extra to set up.
What You'll Need
- A Windows 10 or Windows 11 PC
- winget, which is included with the App Installer from the Microsoft Store (preinstalled on current versions of Windows 11 and updated Windows 10 installs)
- A normal internet connection, since packages are downloaded from the internet
- Your account password or administrator approval for apps that need elevated permissions
Menu labels and prompts can differ slightly depending on your Windows version, but the commands below are the same everywhere.
Step-by-Step
- Open a terminal. Press the Windows key, type
cmdorpowershell, and press Enter. Windows Terminal, Command Prompt and PowerShell all work. - Check that winget is available. Type
winget --versionand press Enter. If a version number appears, you are good to go. If you get an error saying winget is not recognized, open the Microsoft Store, search for App Installer and install or update it, then reopen your terminal. - Search for the app you want. Use
winget search appname, for examplewinget search vlc. This lists matching packages with their exact IDs, publishers and available versions. - Confirm you found the right package. Look at the publisher name in the results and prefer well-known ones (for example VideoLAN for VLC). If several results appear, the exact ID in the Id column removes any ambiguity.
- Install the app. Run
winget installfollowed by the name or ID, for examplewinget install VLCor, more precisely,winget install VideoLAN.VLC. Press Enter. - Accept any prompts. The first time you install from a given source, winget may ask you to agree to the source's terms; type
Yand press Enter. If the installer needs administrator rights, approve the Windows prompt that appears. - Wait for the install to finish. Winget downloads the installer, runs it silently and shows a progress bar. When you see the message that the install was successful, the app is ready in your Start menu.
- Verify if you like. Run
winget listto see all installed packages, or just launch the app from the Start menu as usual.
Common Mistakes
- Typing a vague name.
winget install editormatches several unrelated packages. Use the package ID fromwinget searchwhen a name is ambiguous. - Installing the wrong publisher. Always glance at the publisher column before installing; similarly named packages from unknown publishers do exist in the community repository.
- Expecting winget in an old terminal session. If you just installed App Installer, close and reopen your terminal, otherwise the
wingetcommand is still not found. - Running as a limited account. Some installers silently fail without admin rights. If an install fails with no clear error, right-click your terminal and choose Run as administrator, then retry.
Tips
- Install several apps in one go by chaining commands:
winget install Firefox && winget install 7zip.7zip. - Update everything at once with
winget upgrade --all. This is the biggest everyday benefit of winget. - Check which apps have updates first with
winget upgrade(without--all), so nothing surprises you. - See full details about a package before installing with
winget show appname, including its version and publisher. - Uninstall from the same tool with
winget uninstall appname. - Use
winget install appname --id Exact.Package.Id -eto force an exact ID match when names collide; the-eflag means exact.
Troubleshooting
"winget is not recognized" - App Installer is missing or too old. Open the Microsoft Store, search for App Installer, and install or update it. Then open a new terminal window and try again.
"No package found matching input criteria" - The name you typed does not match anything. Run winget search with a shorter keyword to find the correct name or ID.
The install fails partway or hangs - First check your internet connection, then run winget source update to refresh the package lists, and retry. Some packages fail when run without admin rights, so try again from an administrator terminal.
A package is stuck "updating" or an upgrade keeps failing - Close the app if it is running, restart the PC, and run the command again. If one specific app refuses to update, updating that app from within its own settings menu usually works, and you can keep using winget for everything else.
Winget itself behaves oddly - Run winget source reset --force to restore the default package sources, then retry the install. As a last resort, uninstall and reinstall App Installer from the Microsoft Store; this does not remove the apps you installed with it.
If all else fails, you can always fall back to downloading the app directly from the developer's official website; winget is a convenience, not a requirement.
Frequently Asked Questions
Is winget safe to use?
Yes. Winget is Microsoft's official package manager and its main source is the winget community repository, where packages are validated. As with any store, still check the publisher name before installing, and prefer well-known sources.
Does winget work on Windows 10?
Yes, as long as the App Installer from the Microsoft Store is installed and up to date. On Windows 11 it comes preinstalled.
Can winget update my existing apps?
Yes. Run winget upgrade --all to update every app winget recognizes on your system, including many apps you installed manually before ever using winget.
Does winget replace the Microsoft Store?
No. It complements it. Winget can even install some Microsoft Store apps alongside traditional desktop programs, but the Store remains available for browsing and managing apps graphically.
Do I need to open the terminal as administrator?
Not usually. Winget handles most installs from a normal window and prompts for administrator approval only when an installer requires it. If a silent install fails, retry from an administrator terminal.
Can I install multiple apps at once?
Yes. Chain commands with && or list them one per line in a script, which is a popular way to set up a new PC quickly.