external help file | Module Name | online version | schema |
---|---|---|---|
PSReleaseTools-help.xml |
PSReleaseTools |
2.0.0 |
Download the latest PowerShell from the Github PowerShell repository.
Save-PSReleaseAsset [[-Path] <String>] [-All] [-Passthru] [-Preview] [-WhatIf] [-Confirm] [<CommonParameters>]
Save-PSReleaseAsset [[-Path] <String>] -Family <String[]> [-Format <String[]>] [-Passthru] [-Preview] [-WhatIf]
[-Confirm] [<CommonParameters>]
Save-PSReleaseAsset [[-Path] <String>] [-Asset <Object>] [-Passthru] [-Preview] [-WhatIf] [-Confirm]
[<CommonParameters>]
This command will download the latest stable PowerShell 7 releases from the PowerShell GitHub repository. You can download everything or limit the download to specific platforms. Use -Preview to get the latest preview build.
PS C:\> Save-PSReleaseAsset D:\PS7 -all
Save all release assets for all platforms.
PS C:\> Save-PSReleaseAsset -path D:\PS7 -family Windows -format msi
Download and save Windows MSI packages.
PS C:\> Save-PSReleaseAsset -path D:\PS7Linux -name Ubuntu,Debian
Download and save Ubuntu and Debian packages.
PS C:\> Get-PSReleaseAsset -Family rhel -preview | Save-PSReleaseAsset -path D:\Temp -passthru
Directory: D:\Temp
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 2/3/2020 10:22 AM 57876871 powershell-preview-7.0.0_rc.2-1.rhel.7.x86_64.rpm
Get the RedHat assets for the latest preview build and save them to D:\Temp
The destination folder for all downloads.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: .
Accept pipeline input: False
Accept wildcard characters: False
Download all files to the destination path. This is the default behavior.
Type: SwitchParameter
Parameter Sets: All
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
An asset object piped from Get-PSReleaseAsset.
Type: Object
Parameter Sets: file
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
The platform you wish to download.
Type: String[]
Parameter Sets: Family
Aliases:
Accepted values: Rhel, Raspbian, Ubuntu, Debian, Windows, AppImage, Arm, MacOS, Alpine, FXDependent
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Limit results to a given format. The default is all formats.
Type: String[]
Parameter Sets: Family
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Get the latest preview release.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Prompts you for confirmation before running the cmdlet.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Learn more about PowerShell: http://jdhitsolutions.com/blog/essential-powershell-resources/