| external help file | PSModule-help.xml |
|---|---|
| Locale | en-US |
| Module Name | PowerShellGet |
| ms.date | 10/04/2021 |
| online version | https://learn.microsoft.com/powershell/module/powershellget/get-psrepository?view=powershellget-1.x&WT.mc_id=ps-gethelp |
| schema | 2.0.0 |
| title | Get-PSRepository |
Gets PowerShell repositories.
Get-PSRepository [[-Name] <String[]>] [<CommonParameters>]
The Get-PSRepository cmdlet gets PowerShell module repositories that are registered for the
current user.
Get-PSRepositoryThis command gets all module repositories registered for the current user.
Get-PSRepository -Name "*NuGet*"This command gets all module repositories that include NuGet in their names.
Get-PSRepository -Name "Local01" | Format-List * -ForceName : local01
SourceLocation : http://manikb-dev:8765/api/v2/
Trusted : True
Registered : True
InstallationPolicy : Trusted
PackageManagementProvider : NuGet
PublishLocation : http://pattif-dev:8765/api/v2/package/
ScriptSourceLocation : http://pattif-dev:8765/api/v2/artifacts/psscript
ScriptPublishLocation : http://pattif-dev:8765/api/v2/package/
ProviderOptions : {}
This command gets the repository named Local01 and uses the pipeline operator to pass that object to the Format-List cmdlet.
Specifies the names of the repositories to get.
Type: System.String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.