PowerShellGet 2 (for example, PowerShellGet 2.2.4.1) implements the Install-Module
, Update-Module
, and Save-Module
module commands demonstrated at the beginning of this chapter.
Microsoft.PowerShell.PSResourceGet (PSResourceGet), formerly PowerShellGet 3, hopes to replace PowerShellGet version 2 installations. One of the key features is that this new version does not depend on the PackageManagement
module, allowing a simpler installation process, and avoiding the need to bootstrap the NuGet
provider, making upgrading the module simpler.
The preview version also uses new command names, completely divorcing it from the previous implementations of PowerShellGet. The change in command names means the new version can safely be installed alongside any existing version.
PSResourceGet is included with the PowerShell 7.4 installation.
If not installed, PSResourceGet can be installed as follows:
Install-Module Microsoft.PowerShell.PSResourceGet...