RegisterPSRepository
Register-PSRepository is a PowerShell cmdlet used to register a software repository for PowerShellGet and PackageManagement. By registering a repository, users enable discovery, installation, and updating of modules from that repository in addition to the default sources.
A repository is identified by a Name and a SourceLocation URL. Optional attributes commonly provided include
Typical usage involves specifying the repository’s name and source location. For example:
Register-PSRepository -Name 'MyRepo' -SourceLocation 'https://myrepo.example.com/api/v2' -PublishLocation 'https://myrepo.example.com/api/v2/package' -InstallationPolicy Trusted
After registration, modules can be discovered and installed from the repository using commands such as Find-Module
If a repository with the same name already exists, Register-PSRepository updates its settings or may prompt
See also: Get-PSRepository, Unregister-PSRepository, Find-Module, Install-Module.