Packages
  • 18 Nov 2024
  • 5 Minutes to read
  • Dark
    Light
  • PDF

Packages

  • Dark
    Light
  • PDF

Article summary

Get-LiquitPackage

Synopsis

This command displays a list of all packages defined within the Liquit Workspace zone, or you can select a specific package.

Syntax

 Get-LiquitPackage 
    [-LiquitContext <LiquitContext>]  
    [<CommonParameters>]

 Get-LiquitPackage 
    [-EntityRef] <EntityRef[]> 
    [-LiquitContext <LiquitContext>]  
    [<CommonParameters>]

 Get-LiquitPackage 
    [-Type] <string[]> 
    [-LiquitContext <LiquitContext>]  
    [<CommonParameters>]

 Get-LiquitPackage 
    [[-Group] <Group[]>]
    [-LiquitContext <LiquitContext>]  
    [<CommonParameters>]
    
Get-LiquitPackage 
    [[-User] <User[]>]
    [-LiquitContext <LiquitContext>]  
    [<CommonParameters>]    

Examples

Example 1

 Get-LiquitPackage | Select id, name

This command displays a table with all packages, with their ID and name columns.

Example 2

 Get-LiquitPackage -type Web

This command selects all packages of the web type.

Example 3

 Get-LiquitPackage -id 00000000-0000-0000-0000-000000000000

This command selects a specific package.

Example 4

Often, you need a package ID, for example, when working with PowerShell or when calling a package via ShellAPI. You can use the following script:

Get-LiquitPackage -Name "LSS - 7-Zip (x64)".id

New-LiquitPackage

Synopsis

This command creates a new package.

Syntax

 New-LiquitPackage 
    [-Name] <string> 
    [-Type] <string> 
    [-DisplayName <string>] 
    [-Excerpt <string>]
    [-Description <string>] 
    [-Notes <string>] 
    [-Website <string>] 
    [-Priority <int>]
    [-Enabled <bool>] 
    [-Offline <bool>]
    [-AutoLaunchable <bool>] 
    [-Featured <bool>]
    [-Web <bool>] 
    [-Icon <Content>] 
    [-LiquitContext <LiquitContext>] 
    [-WhatIf] 
    [-Confirm]
    [<CommonParameters>]

Example

    New-LiquitPackage -name PowerShellPackage -type Web -Web $true -icon (New-LiquitContent -path C:\path\file.jpg)

This command creates a new package with the name "PowerShellPackage", of the "Web" type. The package will be available without an Agent.

Parameters

NameValueDescriptionRequiredDefault value
Name<string>Provide a name for the package.Yes
Type<string>Provide a type for the package. Although this is a string value, the following types have custom images:
  • Install
  • Custom
  • Launch
  • Remote
  • Remote Control
  • Web
Yes
DisplayName<string>The name displayed in the Catalog for the user.No
Excerpt<string>A shorter version of the application description, displayed on the application tiles.
Description<string>Provide a description for the package.No
Notes<string>Fill in the internal notes as needed.
Website<string>Provide users a website associated with the application.
Priority<int>Determines the execution order when multiple packages are assigned to an event (on a user or device entitlement); the order of execution is from low to high.No1000
Enabled<bool>Determines whether or not the package is enabled.NoTrue
Offline<bool>Determines whether or not the package is available in offline mode.NoFalse
AutoLaunchable<bool>When enabled, users can choose to start this package on logon by enabling the Autolaunch option in the context menu of the app.NoTrue
Featured<bool>When enabled, users can choose to start this package on logon by enabling the Autolaunch option in the context menu of the app.NoFalse
Web<bool>Determines whether or not a package is available without an Agent.NoFalse
Icon<content>Upload an icon to the package.No
LiquitContext<LiquitContext>Determines the selected zone.NoDefault

Set-LiquitPackage

Synopsis

This command lets you edit the properties of a package.

Syntax

 Set-LiquitPackage 
    [-Package] <Package[]> 
    [-Name <string>] 
    [-Type <string>] 
    [-DisplayName <string>] 
    [-Excerpt <string>]
    [-Description <string>]
    [-Notes <string>] 
    [-Website <string>]
    [-Priority <int>]
    [-Enabled <bool>] 
    [-Offline <bool>]
    [-AutoLaunchable <bool>]
    [-Featured <bool>]
    [-Web <bool>]
    [-Icon <Content>] 
    [-LiquitContext <LiquitContext>] 
    [-WhatIf] 
    [-Confirm]  
    [<CommonParameters>]

Example

	$package = Get-LiquitPackage -id 00000000-0000-0000-0000-000000000000
    Set-LiquitPackage -Package $package -Type Launch -Name PowerShellPackage -DisplayName "PowerShell Package" -Description "Description" -Enabled $true

This command updates an existing package and renames it "PowerShellPackage"; users will see this package as "PowerShell Package" in the Catalog or Workspace tabs. The description of the package will be "Description".

Parameters

NameValueDescriptionRequiredDefault value
Name<string>Provide a name for the package.Yes
Type<string>Provide a type for the package. Although this is a string value, the following types have custom images:
  • Install
  • Custom
  • Launch
  • Remote
  • Remote Control
  • Web
Yes
DisplayName<string>Provide a display name for the package.No
Excerpt<string>A shorter version of the application description, displayed on the application tiles.
Description<string>Provide a description for the package.No
Notes<string>
Website<string>Provide users a website associated with the application.
Priority<int>Determines the execution order when multiple packages are assigned to an event (on a user or device entitlement); the order of execution is from low to high.
Enabled<bool>Determines whether or not the package is enabled.NoTrue
Offline<bool>Determines whether or not the package is available in offline mode.NoFalse
AutoLaunchable<bool>When enabled, users can choose to start this package on logon by enabling the Autolaunch option in the context menu of the app.
Featured<bool>When enabled, users can choose to start this package on logon by enabling the Autolaunch option in the context menu of the app.
Web<bool>Determines whether or not a package is available without an Agent.NoFalse
Icon<content>Upload an icon to the package.No
LiquitContext<LiquitContext>Determines the selected zone.NoDefault

Copy-LiquitPackage

Synopsis

This command copies a package.

Syntax

 Copy-LiquitPackage 
    [-Snapshot] <PackageSnapshot> 
    [-Name] <string> 
    [-Publish {Development | Test | Acceptance | Production}] 
    [-LiquitContext <LiquitContext>] 
    [-WhatIf] 
    [-Confirm]
    [<CommonParameters>]

Example

	$package = Get-LiquitPackage -id 00000000-0000-0000-0000-000000000000
	$snapshot = $package | Get-LiquitPackageSnapshot -id 00000000-0000-0000-0000-000000000000
    Copy-LiquitPackage -snapshot $snapshot -Name PowerShellPackage

This command creates a new package with a copy of the selected snapshot.

Parameters

NameValueDescriptionRequiredDefault value
Snapshot<PackageSnapshot>The snapshot you wish to copy.Yes
Name<string>The name of the new package.Yes
Publish{Development | Test | Acceptance | Production}Choose the stage where you want to publish the snapshot.NoDevelopment
LiquitContext<LiquitContext>Determines the selected zone.NoDefault

Import-LiquitPackage

Synopsis

This command lets you import a resource and deliver it as a package.

Syntax

 Import-LiquitPackage 
    [-Resource] <Resource> 
    [-Name] <string> 
    [-Publish {Development | Test | Acceptance | Production}] 
    [-Type {Default | Managed | Unmanaged}]
    [-LiquitContext <LiquitContext>] 
    [-IgnoreMissingDependencies]
    [-Update]
    [-WhatIf] 
    [-Confirm]
    [<CommonParameters>]

Example

    $connector = Get-LiquitConnector -id 00000000-0000-0000-0000-000000000000
    $resource = Get-LiquitResource -Connector $connector -id 00000000-0000-0000-0000-000000000000
    Import-LiquitPackage -Resource $resource

This command creates a new package with a copy of the selected snapshot.

Parameters

NameValueDescriptionRequiredDefault value
Resource<Resource>The resource to use as a basis for a new package or when updating one.Yes
Name<string>The alternative name for the package.No
Publish{Development | Test | Acceptance | Production}Choose the stage where you want to publish the snapshot.NoDevelopment
Type{Default | Managed | Unmanaged}The type of package to be created:
  • Default - it takes the type you set in Connectors > Overview > Default package type.
  • Managed - the package is managed by the connector; several options cannot be changed in order to allow easy updates.
  • Unmanaged - the package will be created based on the resource and you can make any changes to it.
NoDefault
IgnoreMissingDependenciesIgnore missing dependencies on creation/update.No
UpdateUpdate an existing package with the same name, otherwise an error is generated if a package with the same name exists.No
LiquitContext<LiquitContext>Determines the selected zone.NoDefault

Remove-LiquitPackage

Synopsis

This command removes a package from the Liquit Workspace.

Syntax

 Remove-LiquitPackage 
	[-Package] <Package[]> 
	[-LiquitContext <LiquitContext>] 
	[-WhatIf]
 	[-Confirm]  
	[<CommonParameters>]

Example

	 $package = Get-LiquitPackage -id 00000000-0000-0000-0000-000000000000
	 Remove-LiquitPackage -package $package

This command removes the selected package from the Liquit Workspace.

Parameters

NameValueDescriptionRequiredDefault value
Package<Package[]>The package you wish to remove.Yes
LiquitContext<LiquitContext>Determines the selected zone.NoDefault

Was this article helpful?

What's Next