Search Results for

    Show / Hide Table of Contents

    Get-UscPackageVersion

    SYNOPSIS

    Gets versions available for a package.

    SYNTAX

    Version Range (Default)

    Get-UscPackageVersion -PackageId <String> [-VersionRange <VersionRange>] [-IncludeDependencies]
     [-IncludePreReleases] [-Descending] [-Server <Server[]>] [-Directory <String>] [<CommonParameters>]
    

    Version

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

    Version Query

    Get-UscPackageVersion -PackageId <String> [-VersionQuery <VersionQuery>] [-IncludeDependencies]
     [-Server <Server[]>] [-Directory <String>] [<CommonParameters>]
    

    DESCRIPTION

    Use Get-UscPackageVersion to get versions for a package and basic information.

    EXAMPLES

    Example 1

    PS C:\> Get-UscPackageVersion -Id 'ls-central-app'
    Id             Version Instance Name
    --             ------- -------- ----
    ls-central-app 15.0.0      True LS Central
    ls-central-app 15.1.0      True LS Central
    ls-central-app 15.2.0      True LS Central
    ls-central-app 15.3.0      True LS Central
    ...
    

    This example returns a list of versions available for specified package.

    Example 2

    PS C:\> Get-UscPackageVersion -Id 'ls-central-app' -Version '16.0.0'
    Id             Version Instance Name
    --             ------- -------- ----
    ls-central-app 16.0.0      True LS Central
    

    This example returns the specific version.

    Example 3

    PS C:\> Get-UscPackageVersion -Id 'ls-central-app' -VersionRange '>=17.0 <18.0'
    Id             Version Instance Name
    --             ------- -------- ----
    ls-central-app 17.0.0      True LS Central
    ls-central-app 17.1.0      True LS Central
    ls-central-app 17.2.0      True LS Central
    ls-central-app 17.2.3      True LS Central
    ls-central-app 17.3.0      True LS Central
    ls-central-app 17.4.0      True LS Central
    

    This example returns all versions available for the specified version range.

    Example 4

    PS C:\> Get-UscPackageVersion -Id 'ls-central-app' -VersionQuery '^ >=17.0 <18.0'
    Id             Version Instance Name
    --             ------- -------- ----
    ls-central-app 17.4.0      True LS Central
    

    This example returns the version selected with specified version query.

    PARAMETERS

    -Descending

    Orders the output list in descending order.

    Type: SwitchParameter
    Parameter Sets: Version Range
    Aliases:
    
    Required: False
    Position: Named
    Default value: None
    Accept pipeline input: False
    Accept wildcard characters: False
    

    -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
    

    -IncludeDependencies

    Includes dependencies for each version.

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

    -IncludePreReleases

    Returns list with pre-releases included.

    Type: SwitchParameter
    Parameter Sets: Version Range
    Aliases:
    
    Required: False
    Position: Named
    Default value: None
    Accept pipeline input: False
    Accept wildcard characters: False
    

    -PackageId

    Specifies the package ID to get versions for.

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

    -Server

    Specifies a server or list of servers to search for specified package.

    If multiple servers are specified, only versions from the first server that contains the specified package will be included in the list returned.

    If ommited, servers from Servers.json are used.

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

    -Version

    Specifies a version to be returned.

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

    -VersionQuery

    Specifies a version query to select a package version.

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

    -VersionRange

    Specifies a version range to be returned.

    Type: VersionRange
    Parameter Sets: Version Range
    Aliases:
    
    Required: False
    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 LSRetail.UpdateService.Common.SemanticVersioning.VersionRange LSRetail.UpdateService.Common.SemanticVersioning.VersionQuery

    OUTPUTS

    System.Object

    NOTES

    RELATED LINKS

    In this article
    Back to top Generated by DocFX