PowerShellGet 3.0 Preview 12 Release
We are excited to announce that an update to our preview of PowerShellGet 3.0 is now available on the PowerShell Gallery! This release includes more parameters, additional pipeline support, more wildcard support and a number of other features detailed below.
What to expect in this update
This update adds wildcard and pipeline support for some cmdlets, adds a number of parameters and parameter sets, and includes many bug fixes. Some of the key features and breaking changes are listed below, for the full list of changes please refer to the Changelog.
Features
- Wildcard support for Find-PSResource -Name
- Support searching for and returning packages found across multiple repositories when using wildcard with Repository parameter (i.e Find-PSResource “PackageExistingInMultipleRepos” -Repository “*” will perform an exhaustive search).
- Parameter set for Find-PSResource -Tag
- Parameter set for Find-PSResource -Type
- Parameter set for Find-PSResource -CommandName
- Parameter set for Find-PSResource -DSCResourceName
- -DestinationPath parameter for Publish-PSResource
- -NoClobber functionality to Install-PSResource
- Pipeline support for Install-PSResource, Uninstall-PSResource, Save-PSResource, Find-PSResource, Get-PSResource, Publish-PSResource, Get-PSResourceRepository, Set-PSResourceRepository, Register-PSResourceRepository, Unregister-PSResourceRepository
- Consistent pre-release version support for cmdlets, including Uninstall-PSResource and Get-PSResource. For example, running Get-PSResource “MyPackage” -Version “2.0.0-beta” would only return MyPackage with version “2.0.0” and prerelease “beta”, NOT MyPackage with version “2.0.0.0” (i.e a stable version).
- -AsNupkg and -IncludeXML parameters for Save-PSResource
- -PassThru parameter for Install-PSResource, Save-PSResource,Update-PSResource and Unregister-PSResourceRepository
- -SkipDependencyCheck parameter for Install-PSResource, Save-PSResource and Update-PSResource cmdlets.
- Progress Bar for Install-PSResource, Update-PSResource and Save-PSResource
- -Quiet parameter for Install-PSResource, Save-PSResource and Update-PSResource (This suppresses the progress bar display when passed in)
- -AsNupkg and -IncludeXML parameters for Save-PSResource
- Improved error handling
- Restore package if installation attempt fails when reinstalling a package.
Breaking Changes
This release reverts the cmdlet name from Get-InstalledPSResource to Get-PSResource.
This release also removes the DSCResource from PowerShellGet, with the intention to continue shipping the DSCResource on the PowerShell Gallery separately from the PowerShellGet module. If the DSCResource is critical for your workload we recommend staying on preview 11 until the resource is available on the Gallery. Currently the DSCResource can also be found in its own GitHub repository. If you are impacted by this change please open an issue in our GitHub repository to ensure your scenario is covered as we move towards GA for this major update.
Microsoft has released PowerShellGet 3.0 preview 12.