Search Results for

    Show / Hide Table of Contents

    Get-UscPackageVersionFile

    SYNOPSIS

    Gets file from specified package.

    SYNTAX

    List (Default)

    Get-UscPackageVersionFile -PackageId <String> -Version <SemanticVersion> [-Server <Server[]>]
     [-Directory <String>] [<CommonParameters>]
    

    Download

    Get-UscPackageVersionFile -PackageId <String> -Version <SemanticVersion> [-Download] -OutputDir <String>
     [-FilePath <String>] [-Force] [-Server <Server[]>] [-Directory <String>] [<CommonParameters>]
    

    DownloadSingleFile

    Get-UscPackageVersionFile -PackageId <String> -Version <SemanticVersion> [-Download] -OutputPath <String>
     -FilePath <String> [-Force] [-Server <Server[]>] [-Directory <String>] [<CommonParameters>]
    

    DESCRIPTION

    Use Get-UscPackageVersionFile to list files in a package, or download the files.

    EXAMPLES

    Example 1

    PS C:\> Get-UscPackageVersionFile -Id 'ls-central-app' -Version '17.0.0'
    Id             Version Hash                        FilePath                              Size
    --             ------- ----                        --------                              ----
    ls-central-app 17.0.0  ENvAuI2d94k0AVEDJrmLpBMlLqI AppMetadata.json                        32
    ls-central-app 17.0.0  FlsfeWQzTF51XKaFbRyWn4Gwb3o LS Retail_LS Central_17.0.0.0.app 18529531
    ls-central-app 17.0.0  g0We0Tl4JRR++FNf+MoPHsSNRGU Package.psm1                            80
    ls-central-app 17.0.0  Q3qLa0hjGrNKWe9GUBUhL0eGDPA Manifest.json                         2104
    

    This example lists all files for the package ls-central-app v17.0.0.

    Example 2

    PS C:\> Get-UscPackageVersionFile -Id 'ls-central-app' -Version '17.0.0' -Download -OutputDir 'c:\Output'
    

    This example downloads all files from the package ls-central-app v17.0.0 to directory c:\Output.

    Example 3

    PS C:\> Get-UscPackageVersionFile -Id 'ls-central-app' -Version '17.0.0' -Download -OutputDir 'c:\Output' -FilePath 'Manifest.json'
    

    This example only downloads the Manifest.json file from package ls-central-app v17.0.0 to directory c:\Output.

    PARAMETERS

    -Directory

    Specifies an optional alternative client directory.

    Type: String
    Parameter Sets: (All)
    Aliases:
    
    Required: False
    Position: Named
    Default value: None
    Accept pipeline input: False
    Accept wildcard characters: False
    

    -Download

    Specifies to download the file(s) for the specified package version.

    Type: SwitchParameter
    Parameter Sets: Download, DownloadSingleFile
    Aliases:
    
    Required: True
    Position: Named
    Default value: None
    Accept pipeline input: False
    Accept wildcard characters: False
    

    -FilePath

    Specifies the file path within the package to download.

    Type: String
    Parameter Sets: Download
    Aliases:
    
    Required: False
    Position: Named
    Default value: None
    Accept pipeline input: True (ByPropertyName)
    Accept wildcard characters: False
    
    Type: String
    Parameter Sets: DownloadSingleFile
    Aliases:
    
    Required: True
    Position: Named
    Default value: None
    Accept pipeline input: True (ByPropertyName)
    Accept wildcard characters: False
    

    -Force

    Specifies to overwrite existing files when downloading.

    Type: SwitchParameter
    Parameter Sets: Download, DownloadSingleFile
    Aliases:
    
    Required: False
    Position: Named
    Default value: None
    Accept pipeline input: True (ByPropertyName)
    Accept wildcard characters: False
    

    -OutputDir

    Specifies the directory to download files to.

    Type: String
    Parameter Sets: Download
    Aliases:
    
    Required: True
    Position: Named
    Default value: None
    Accept pipeline input: False
    Accept wildcard characters: False
    

    -OutputPath

    Specifies the path to download a single file to.

    Type: String
    Parameter Sets: DownloadSingleFile
    Aliases:
    
    Required: True
    Position: Named
    Default value: None
    Accept pipeline input: True (ByPropertyName)
    Accept wildcard characters: False
    

    -PackageId

    Specifies the package ID to get files for.

    Type: String
    Parameter Sets: (All)
    Aliases: Package, Id
    
    Required: True
    Position: Named
    Default value: None
    Accept pipeline input: True (ByPropertyName)
    Accept wildcard characters: False
    

    -Server

    Specifies the server to use.

    Type: Server[]
    Parameter Sets: (All)
    Aliases: Servers
    
    Required: False
    Position: Named
    Default value: None
    Accept pipeline input: False
    Accept wildcard characters: False
    

    -Version

    Specifies the version of the package to get files for.

    Type: SemanticVersion
    Parameter Sets: (All)
    Aliases:
    
    Required: True
    Position: Named
    Default value: None
    Accept pipeline input: True (ByPropertyName)
    Accept wildcard characters: False
    

    CommonParameters

    This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

    INPUTS

    System.String

    LSRetail.UpdateService.Common.SemanticVersioning.SemanticVersion

    System.Management.Automation.SwitchParameter

    OUTPUTS

    System.Object

    NOTES

    RELATED LINKS

    In this article
    Back to top Generated by DocFX