| 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 -allSave all release assets for all platforms.
PS C:\> Save-PSReleaseAsset -path D:\PS7 -family Windows -format msiDownload and save Windows MSI packages.
PS C:\> Save-PSReleaseAsset -path D:\PS7Linux -name Ubuntu,DebianDownload 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.rpmGet 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: FalseDownload 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: FalseAn 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: FalseThe platform you wish to download.
Type: String[]
Parameter Sets: Family
Aliases:
Accepted values: 'Rhel', 'Raspbian', 'Ubuntu', 'Debian', 'Windows', 'Arm', 'MacOS', 'Alpine', 'FXDependent', 'CBL-Mariner', 'CentOS', 'Linux'
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseLimit 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: FalseGet the latest preview release.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseType: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: FalseShows 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: FalsePrompts 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: FalseThis 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/yourls/newsletter