Technical Anshu
Tutorials Blog
⌨️ Winget Commands

Winget Install and Upgrade All Apps Commands With Silent Flags Explained

One command can install an app, and one command can update every app on the PC. These are the exact winget lines worth memorising, with each flag explained honestly.

✍️ Technical Anshu🪟 Windows⏱️ 7 minute read
🎥 Watch all three methods side by side in the full video

Winget only becomes an automatic installer when you add the right flags. Without them it stops to ask about licence agreements; with them, a whole list of apps installs while you drink your tea. Below are the core commands - installing one app, installing several, and upgrading everything - using the exact syntax from Microsoft's documentation. Run them in Windows Terminal or PowerShell; an admin window avoids most elevation prompts.

Windows Terminal - winget upgrade --all (example output)

C:\> winget upgrade --all --silent --accept-package-agreements --accept-source-agreements

Google Chrome Google.Chrome 138.0 -> 139.0Successfully installed
VLC media player VideoLAN.VLC 3.0.20 -> 3.0.21Successfully installed
7-Zip 7zip.7zip 24.08 -> 25.01Successfully installed

Example output only - your app list and versions will differ. Failures, when they happen, are reported per app, not hidden.

The upgrade command reports each app separately - read the list instead of assuming all succeeded
1

First Check Winget Is Present and Current

  1. Open Windows Terminal and run winget --version. A version number means you are ready
  2. If the command is not recognised, update App Installer from the Microsoft Store - winget is delivered with it
  3. Run winget source update once so the app catalogue is fresh before you search or install
2

Install Apps by Exact ID

  1. Find the ID first with winget search chrome - the ID column is what you copy, not the display name
  2. Install one app fully automatically: winget install --id Google.Chrome --exact --silent --accept-package-agreements --accept-source-agreements
  3. --exact stops winget guessing a similar-named app, --silent asks the installer to show no windows, and the two agreement flags pre-accept the licence and source terms so nothing waits for a click
  4. Several apps in one line work too: winget install --id VideoLAN.VLC --exact followed by the next command, or list IDs one per line in a script
3

Upgrade Everything in One Command ⭐

  1. Preview first with plain winget upgrade - it lists what would change without touching anything
  2. Then run the full line: winget upgrade --all --silent --accept-package-agreements --accept-source-agreements
  3. Apps whose installed version winget cannot read are skipped. To include them, add --include-unknown - but review the preview list first, because winget cannot tell whether those apps are already current
  4. To update just one app later: winget upgrade --id Mozilla.Firefox --exact
⚠️ Honest note about --silent: the flag asks the app's installer to run silently - it is a request, not a guarantee. Most well-known installers obey it, but an occasional installer still shows a window or a UAC prompt. A fully unattended run is normal; one stray prompt is not a winget failure.

🎥 Watch the Full Comparison

See the commands typed live in the video, including the prompts that appear when the agreement flags are left out.

▶️ Watch Full Video
❓ Frequently Asked Questions

What does --include-unknown actually do?

Some installed apps do not report a readable version, so winget lists them as Unknown and skips them during upgrade --all. --include-unknown tells winget to attempt the newest version anyway. Use it after reviewing the list, since a reinstall of an already-current app can happen.

Why did one app fail while the others succeeded?

Winget upgrades app by app. A failure usually means that app was running during its update, its installer demanded interaction, or its publisher changed the installer. Close the app and run the single-app upgrade command for it.

Is winget upgrade --all safe to run regularly?

Yes - it only installs published updates from the catalogue sources and verifies installer hashes. The preview command winget upgrade shows the list first if you prefer to check before applying.

This guide is based on the Technical Anshu video on automatic software installation • Stuck on a step? Ask in the video comments and you will get a reply 🙏