AnyPackage.PowerShellGet is an AnyPackage provider that facilitates installing PowerShellGet v3 resources from NuGet repositories.
AnyPackage.PowerShellGet documentation is located in Provider Catalog on how to use the provider and what dynamic parameters exist.
NOTE! PowerShellGet v3 is required. Due to a PowerShellGet issue, prerelease modules cannot be defined as dependencies, so manual installation of PowerShellGet v3 is required.
# Install PowerShellGet v3
Install-Module PowerShellGet -AllowPrerelease -AllowClobber -Force
Install-Module AnyPackage.PowerShellGet
Import-Module AnyPackage.PowerShellGet
Find-Package -Name PSReadLine
Find-Package -Name PS*
Find-Package Scoop | Install-Package
Install-Package -Name Scoop
Get-Package -Name Scoop
Get-Package -Name 7zip | Uninstall-Package
Uninstall-Package -Name 7zip
Get-Package -Name 7zip | Update-Package
Uninstall-Package
Find-Package -Name PSReadLine | Save-Package
Save-Package -Name PSReadLine -Path C:\Temp
Publish-Package -Path C:\Temp\module\module.psd1
Register-PackageSource -Provider PowerShellGet -PSGallery
Find-Package -Name Scoop | Install-Package
Unregister-PackageSource -Name PSGallery
Register-PackageSource -Name Test -Location C:\Temp\repo
Find-Package -Name Scoop -Source Test | Install-Package
Unregister-PackageSource -Name Test
There are a few missing dynamic parameters:
- Save-Package -AsNupkg
- Save-Package -IncludeXml
- Install-Package -NoClobbler