Back to Winget Cli

Get-WinGetSource

src/PowerShell/Help/Microsoft.WinGet.Client/Get-WinGetSource.md

1.28.2201.4 KB
Original Source

Get-WinGetSource

SYNOPSIS

Lists configured WinGet sources.

SYNTAX

Get-WinGetSource [[-Name] <String>] [<CommonParameters>]

DESCRIPTION

Lists the configured WinGet sources.

EXAMPLES

Example 1: List all configured WinGet sources

powershell
Get-WinGetSource
Output
Name    Argument                                      Type
----    --------                                      ----
msstore https://storeedgefd.dsx.mp.microsoft.com/v9.0 Microsoft.Rest
winget  https://cdn.winget.microsoft.com/cache        Microsoft.PreIndexed.Package

PARAMETERS

-Name

Specify the name of the WinGet source to be displayed.

yaml
Type: System.String
Parameter Sets: (All)
Aliases:

Required: False
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

System.String

OUTPUTS

Microsoft.WinGet.Client.Engine.PSObjects.PSSourceResult

NOTES

Add-WinGetSource

Remove-WinGetSource