Register-PSResourceRepository
noun
say it: “REJ-is-ter PEE-ES REE-sors ri-POZ-i-tor-ee” /ˈrɛdʒɪstɚ ˌpiˈɛs ˈrisɔrs rɪˈpɑzɪˌtɔri/
A PowerShell command that gives a place to publish and install modules from, such as a folder, a name your account remembers.
What does Register-PSResourceRepository do?
A repository is a shelf modules are installed from. The PowerShell Gallery is one, and a plain folder can be one too. Register-PSResourceRepository gives a shelf a name, and the registration is saved for your account, so every new window knows it until Unregister-PSResourceRepository takes it away.
Register-PSResourceRepository -Name PracticeRepo -Uri "$HOME\terminal-practice\practice-repo" -Trusted
Get-PSResourceRepository
In a sentence
- “After Register-PSResourceRepository, every new window knew the repository by name.”
- “Sam used Register-PSResourceRepository to name the practice folder PracticeRepo.”
Level: Freelancer · More PowerShell terms at this level
Updated