Skip to content

Commit e81eb98

Browse files
denelonmattwojo
andauthored
Update Source (MicrosoftDocs#5555)
* Update Source * Update image format for source command --------- Co-authored-by: Matt Wojciakowski <[email protected]>
1 parent a2bf9b3 commit e81eb98

File tree

3 files changed

+16
-26
lines changed

3 files changed

+16
-26
lines changed
8.05 KB
Loading
-36.6 KB
Loading

hub/package-manager/winget/source.md

Lines changed: 16 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
---
22
title: The winget source command
33
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
55
ms.topic: reference
6-
ms.localizationpriority: medium
76
ms.custom: kr2b-contr-experiment
87
---
98

109
# The winget source command
1110

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.
1312

1413
A source repository provides the data for you to discover and install applications. Only use secure, trusted source locations.
1514

@@ -23,17 +22,21 @@ Windows Package Manager specifies the following two default repositories, which
2322
```cmd
2423
winget source <subcommand> <options>
2524
```
26-
## Arguments
2725

28-
The following arguments are available.
26+
:::image type="content" source="./images/source.png" alt-text="Screenshot listing winget source command help options." lightbox="./images/source.png":::
2927

30-
| Argument | Description |
31-
|--------------|-------------|
32-
| **-?, --help** | Gets additional help on this command. |
28+
## Sub-Commands
3329

34-
The following image shows **help** for the **source** command:
30+
The following arguments are available.
3531

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. |
3740

3841
## Options
3942

@@ -50,19 +53,6 @@ The following options are available.
5053
| **--proxy** | Set a proxy to use for this execution. |
5154
| **--no-proxy** | Disable the use of proxy for this execution. |
5255

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-
6656
### add
6757

6858
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.
318308

319309
### export
320310

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.
322312

323313
Usage:
324314

@@ -358,7 +348,7 @@ winget source export winget
358348
Returns the following output:
359349

360350
```output
361-
{"Arg":"https://winget.azureedge.net/cache","Data":"Microsoft.Winget.Source_8wekyb3d8bbwe","Identifier":"Microsoft.Winget.Source_8wekyb3d8bbwe","Name":"winget","Type":"Microsoft.PreIndexed.Package"}
351+
{"Arg":"https://cdn.winget.microsoft.com/cache","Data":"Microsoft.Winget.Source_8wekyb3d8bbwe","Explicit":false,"Identifier":"Microsoft.Winget.Source_8wekyb3d8bbwe","Name":"winget","TrustLevel":["Trusted","StoreOrigin"],"Type":"Microsoft.PreIndexed.Package"}
362352
```
363353

364354
## Source agreement
@@ -367,7 +357,7 @@ An individual **source** might request that the user agree to the terms presente
367357

368358
You can use the **--accept-source-agreements** option to accept the source license agreement and avoid the prompt.
369359

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":::
371361

372362
## Related topics
373363

0 commit comments

Comments
 (0)