Skip to content

Commit 0a676c0

Browse files
Merge pull request #6543 from MicrosoftDocs/jken/564624-winget-multiple-packages
winget docs: highlight multiple ways to install a collection of packages
2 parents 96147ec + 6e27504 commit 0a676c0

4 files changed

Lines changed: 26 additions & 8 deletions

File tree

hub/package-manager/winget/configure.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ ms.topic: overview
77

88
# configure command (winget)
99

10-
The **configure** command of the [winget](./index.md) tool uses a [WinGet Configuration file](../configuration/index.md) to begin setting up your Windows machine to a desired development environment state.
10+
The **configure** command of the [winget](./index.md) tool uses a [WinGet Configuration file](../configuration/index.md) to begin setting up your Windows machine to a desired development environment state. A configuration file can specify a collection of packages to install alongside other system settings, making it the most complete approach for reproducible environment setup.
11+
12+
> [!TIP]
13+
> For simpler scenarios, you can install multiple packages in a single command (`winget install A B C`), or use [**winget export**](export.md) and [**winget import**](import.md) to save and restore a package list.
1114
1215
> [!WARNING]
1316
> Do not run a WinGet Configuration file without first reviewing the contents of the file and verifying the credibility of the related resources. See [How to check the trustworthiness of a WinGet Configuration file](../configuration/check.md).

hub/package-manager/winget/export.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,5 @@ After the export is complete, you can edit the resulting JSON file in your favor
7373
## Related topics
7474

7575
* [Use the winget tool to install and manage applications](index.md)
76+
* [import command (winget)](import.md)
77+
* [configure command (winget)](configure.md)

hub/package-manager/winget/import.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,9 @@ The JSON file includes the following hierarchy.
6363
When the Windows Package Manager imports the JSON file, it attempts to install the specified applications in a serial fashion. If the application is not available or the application is already installed, it will notify the user of that case.
6464

6565
:::image type="content" source="./images/import-command.png" alt-text="Screenshot of entering the winget import command in a command line of Windows Terminal." lightbox="./images/import-command.png":::
66+
67+
## Related topics
68+
69+
* [Use the winget tool to install and manage applications](index.md)
70+
* [export command (winget)](export.md)
71+
* [configure command (winget)](configure.md)

hub/package-manager/winget/install.md

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,20 @@ The following example installs an application by version and ID.
100100
winget install --id Microsoft.PowerToys --version 0.91.1
101101
```
102102

103-
## Multiple selections
103+
## Install multiple packages
104+
105+
You can install multiple packages in a single command by listing their IDs separated by spaces.
106+
107+
```CMD
108+
winget install Microsoft.VisualStudioCode Microsoft.PowerShell Git.Git
109+
```
110+
111+
WinGet installs each package in sequence. This is useful for quickly setting up a new machine or sharing a set of tools with a colleague.
112+
113+
> [!TIP]
114+
> For larger sets of packages, consider using [**winget export**](export.md) and [**winget import**](import.md) to save and restore a full package list, or [**winget configure**](configure.md) to install packages alongside other machine configuration in a single file.
115+
116+
## Disambiguate results
104117

105118
If the query provided to **WinGet** does not result in a single application, then **WinGet** will display the results of the search. This will provide you with the additional data necessary to refine the search for a correct install.
106119

@@ -122,12 +135,6 @@ The **msstore** source uses unique identifiers as the "Id" for packages. These d
122135
winget install XP9KHM4BK9FZ7Q -s msstore
123136
```
124137

125-
You may also use the install command to install multiple packages. For example:
126-
127-
```CMD
128-
winget install Microsoft.Edit Microsoft.NuGet
129-
```
130-
131138
## Local install
132139

133140
The **manifest** option enables you to install an application by passing in a YAML file directly to the client. If the manifest is a multi-file manifest, the directory containing the files must be used. The **manifest** option has the following usage.

0 commit comments

Comments
 (0)