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/source.md
+16-26Lines changed: 16 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,15 +1,14 @@
1
1
---
2
2
title: The winget source command
3
3
description: Use the winget source command and subcommands to list and manage the repositories Windows Package Manager accesses.
4
-
ms.date: 07/11/2024
4
+
ms.date: 07/08/2025
5
5
ms.topic: reference
6
-
ms.localizationpriority: medium
7
6
ms.custom: kr2b-contr-experiment
8
7
---
9
8
10
9
# The winget source command
11
10
12
-
The [winget](index.md) tool**source** command allows you to manage sources for Windows Package Manager. With the **source** command, you can **add**, **list**, **update**, **remove**, **reset**, or **export** repositories.
11
+
The [WinGet](index.md)**source** command allows you to manage sources for Windows Package Manager. With the **source** command, you can **add**, **list**, **update**, **remove**, **reset**, or **export** repositories.
13
12
14
13
A source repository provides the data for you to discover and install applications. Only use secure, trusted source locations.
15
14
@@ -23,17 +22,21 @@ Windows Package Manager specifies the following two default repositories, which
|**-?, --help**| Gets additional help on this command. |
28
+
## Sub-Commands
33
29
34
-
The following image shows **help** for the **source** command:
30
+
The following arguments are available.
35
31
36
-
:::image type="content" source="images/source.png" alt-text="Screenshot showing help for the source command.":::
32
+
| Sub-Command | Description |
33
+
|--------------|-------------|
34
+
|**add**| Adds a new source. |
35
+
|**list**| Lists current sources. |
36
+
|**update**| Updates current sources. |
37
+
|**remove**| Removes current sources. |
38
+
|**reset**| Resets default sources **winget** and **msstore**. |
39
+
|**export**| Exports current sources. |
37
40
38
41
## Options
39
42
@@ -50,19 +53,6 @@ The following options are available.
50
53
|**--proxy**| Set a proxy to use for this execution. |
51
54
|**--no-proxy**| Disable the use of proxy for this execution. |
52
55
53
-
## Subcommands
54
-
55
-
The **source** command supports the following subcommands.
56
-
57
-
| Subcommand | Description |
58
-
|--------------|-------------|
59
-
|**add**| Adds a new source. |
60
-
|**list**| Enumerates the list of enabled sources. |
61
-
|**update**| Updates a source. |
62
-
|**remove**| Removes a source. |
63
-
|**reset**| Resets **winget** and **msstore** back to the initial configuration. |
64
-
|**export**| Exports current sources. |
65
-
66
56
### add
67
57
68
58
The **add** subcommand adds a new source. This subcommand requires the **--name** and **--arg** options. Because the command changes user access, using **add** requires administrator privileges.
@@ -318,7 +308,7 @@ The following options are available.
318
308
319
309
### export
320
310
321
-
The **export** sub-command exports the specific details for a source to JSON output.
311
+
The **export** sub-command exports the specific details for a source to JSON output. This is useful for configuring Group Policy for source management.
@@ -367,7 +357,7 @@ An individual **source** might request that the user agree to the terms presente
367
357
368
358
You can use the **--accept-source-agreements** option to accept the source license agreement and avoid the prompt.
369
359
370
-
:::image type="content" source="images/source-license.png" alt-text="Screenshot showing a source license prompt.":::
360
+
:::image type="content" source="./images/source-license.png" alt-text="Screenshot showing the winget source command with flag to accept agreements." lightbox="./images/source-license.png":::
0 commit comments