You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: hub/package-manager/winget/upgrade.md
+20-15Lines changed: 20 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,13 @@
1
1
---
2
2
title: upgrade Command
3
3
description: upgrades the specified application.
4
-
ms.date: 07/11/2024
4
+
ms.date: 07/07/2025
5
5
ms.topic: overview
6
-
ms.localizationpriority: medium
7
6
---
8
7
9
8
# upgrade command (winget)
10
9
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.
12
11
13
12
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.
14
13
@@ -23,6 +22,7 @@ The following aliases are available for this command:
23
22
`winget upgrade [[-q] <query> ...] [<options>]`
24
23
25
24

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":::
26
26
27
27
## Arguments
28
28
@@ -84,6 +84,12 @@ The options allow you to customize the upgrade experience to meet your needs.
84
84
85
85
### Example queries
86
86
87
+
The following example lists applications with an upgrade available.
88
+
89
+
```CMD
90
+
winget upgrade
91
+
```
92
+
87
93
The following example upgrades a specific version of an application.
88
94
89
95
```CMD
@@ -96,32 +102,31 @@ The following example upgrades an application from its ID.
96
102
winget upgrade --id Microsoft.PowerToys
97
103
```
98
104
99
-
The following example shows upgrading all apps
105
+
The following example shows upgrading all applications.
100
106
101
107
```CMD
102
108
winget upgrade --all
103
109
```
104
110
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.
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**
115
118
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
-

119
+
To identify which apps are in need of an update, simply use **upgrade** without any arguments to show all available upgrades.
118
120
119
121
## **upgrade** --all
120
122
121
123
**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.
122
124
123
125
> [!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.
0 commit comments