Get-UscUpdates
SYNOPSIS
Gets available updates for specified package or instance.
SYNTAX
Default
Get-UscUpdates [-PackageId] <String> [[-VersionQuery] <VersionQuery>] [-Server <Server[]>]
[-InstanceName <String>] [-UpdateInstanceMode <UpdateInstanceMode>] [-Directory <String>] [<CommonParameters>]
Hashtable
Get-UscUpdates [-Server <Server[]>] -InputHashtable <Hashtable> [-InstanceName <String>]
[-UpdateInstanceMode <UpdateInstanceMode>] [-Directory <String>] [<CommonParameters>]
File
Get-UscUpdates [-Server <Server[]>] -Path <String> [-InstanceName <String>]
[-UpdateInstanceMode <UpdateInstanceMode>] [-Directory <String>] [<CommonParameters>]
DESCRIPTION
Use Get-UscUpdates to list available updates for specified package or instance.
EXAMPLES
Example 1
PS C:\> Get-UscUpdates -Id 'go-current-client'
Id : go-current-client
PreviousVersion : 0.15
Version : 0.18
InstanceName :
Selected : True
Command : Update
This example returns an entry if there is an update available for the package go-current-client.
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
-InputHashtable
Type: Hashtable
Parameter Sets: Hashtable
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
-InstanceName
Specifies an instance name for the package.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-PackageId
{{ Fill PackageId Description }}
Type: String
Parameter Sets: Default
Aliases: Package, Id
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
-Path
Specifies a path to a package, either a ZIP archive or a directory, to check for updates.
Type: String
Parameter Sets: File
Aliases:
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.
If multiple servers are specified, the first server that contains the specified package will be used.
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
-UpdateInstanceMode
Specifies how to update an existing instance.
Merge: Merges the specified package(s) with the packages in existing instance. Replace: Replaces the packages in existign instance with the specified packages(s). This may result in packages being removed.
Type: UpdateInstanceMode
Parameter Sets: (All)
Aliases:
Accepted values: Merge, Replace
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-VersionQuery
Specifies a version query to check for updates.
Type: VersionQuery
Parameter Sets: Default
Aliases: Version
Required: False
Position: 2
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.VersionQuery System.Collections.Hashtable