Skip to content

Commit a64cb0f

Browse files
denelonmattwojo
andauthored
Update Upgrade (MicrosoftDocs#5557)
* Update Upgrade * Fix typo, update screenshot format --------- Co-authored-by: Matt Wojciakowski <[email protected]>
1 parent d626620 commit a64cb0f

File tree

3 files changed

+20
-15
lines changed

3 files changed

+20
-15
lines changed
Binary file not shown.
-282 KB
Binary file not shown.

hub/package-manager/winget/upgrade.md

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
---
22
title: upgrade Command
33
description: upgrades the specified application.
4-
ms.date: 07/11/2024
4+
ms.date: 07/07/2025
55
ms.topic: overview
6-
ms.localizationpriority: medium
76
---
87

98
# upgrade command (winget)
109

11-
The **upgrade** command of the [winget](index.md) tool upgrades the specified application. Optionally, you may use the [**list**](.\list.md) command to identify the application you want to upgrade.
10+
The **upgrade** command of [WinGet](index.md) tool upgrades the specified application. Optionally, you may use the [**list**](.\list.md) command to identify the application you want to upgrade.
1211

1312
The **upgrade** command requires that you specify the exact string to upgrade. If there is any ambiguity, you will be prompted to further filter the **upgrade** command to an exact application.
1413

@@ -23,6 +22,7 @@ The following aliases are available for this command:
2322
`winget upgrade [[-q] <query> ...] [<options>]`
2423

2524
![Image of upgrade command arguments](images\upgrade.png)
25+
:::image type="content" source="./images/upgrade.png" alt-text="Screenshot of entering the winget upgrade command in a command line of Windows Terminal." lightbox="./images/upgrade.png":::
2626

2727
## Arguments
2828

@@ -84,6 +84,12 @@ The options allow you to customize the upgrade experience to meet your needs.
8484

8585
### Example queries
8686

87+
The following example lists applications with an upgrade available.
88+
89+
```CMD
90+
winget upgrade
91+
```
92+
8793
The following example upgrades a specific version of an application.
8894

8995
```CMD
@@ -96,32 +102,31 @@ The following example upgrades an application from its ID.
96102
winget upgrade --id Microsoft.PowerToys
97103
```
98104

99-
The following example shows upgrading all apps
105+
The following example shows upgrading all applications.
100106

101107
```CMD
102108
winget upgrade --all
103109
```
104110

105-
## Using **upgrade**
106-
107-
To identify which apps are in need of an update, simply use **upgrade** without any arguments to show all available upgrades.
108-
109-
In the example below, you will see **winget upgrade** shows the user which apps have an available update. From the available updates, the user identifies that an update is available for *JanDeDobbeleer.OhMyPosh* and uses **upgrade** to update the application.
111+
The following example will upgrade multiple applications.
110112

111-
![Animation demonstrating upgrade command](./images/upgrade.gif)
113+
```CMD
114+
winget upgrade Microsoft.Edit Microsoft.NuGet
115+
```
112116

113-
## Using **list** and **upgrade**
114-
To search for an available update for a specific app, use to the [**list**](.\list.md) command. Once you have identified that an update is available for your specific app, use **upgrade** to install the latest.
117+
## Using **upgrade**
115118

116-
The example below shows the [**list**](.\list.md) command being used to identify that an update is available for *Microsoft.WindowsTerminalPreview*. The user then uses **upgrade** to update the application.
117-
![Animation demonstrating list command used in conjunction with upgrade command](./images/listUpgrade.gif)
119+
To identify which apps are in need of an update, simply use **upgrade** without any arguments to show all available upgrades.
118120

119121
## **upgrade** --all
120122

121123
**upgrade --all** will identify all the applications with upgrades available. When you run **winget upgrade --all** the Windows Package Manager will look for all applications that have updates available and attempt to install the updates.
122124

123125
> [!NOTE]
124-
> Some applications do not provide a version. They are always latest. Because the Windows Package Manager cannot identify if there is a newer version of the app, an upgrade will not be possible.
126+
> Some applications do not provide a version. They are always latest. Because the Windows Package Manager cannot identify if there is a newer version of the app, an upgrade will not be possible unless the **-u, --unknown, --include-unknown** option is specified
127+
128+
> [!NOTE]
129+
> Some applications may have been pinned using WinGet and will not be upgraded if the **--all** option is specified unless the **--include-pinned** option is specified. In this case, only applications non-blocking pins will be upgraded.
125130
126131
## **upgrade** --uninstall-previous
127132

0 commit comments

Comments
 (0)