Content
  • 04 Mar 2024
  • 1 Minute to read
  • Dark
    Light
  • PDF

Content

  • Dark
    Light
  • PDF

Article summary

Manage the content in the Content Store, that can be used as icons or as uploaded content associated with actions.

Get-LiquitContent

Synopsis

This command downloads a file or folder from the Content Store.

Syntax

 Get-LiquitContent 
	[-ID] <guid[]> 
	[-LiquitContext <LiquitContext>]  
	[<CommonParameters>]

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

Example

 Get-LiquitContent -id 00000000-0000-0000-0000-000000000000

Parameters

NameValueDescriptionRequiredDefault value
ID<guid[]>The ID of the content that needs to be downloaded.Yes
EntityRef<EntityRef[]>Represents the item it is assigned to. e.g. if the content is for a package, then this is the reference of the package.No
LiquitContext<LiquitContext>Determines the selected zone.NoDefault

New-LiquitContent

Synopsis

This command uploads a file or folder to the Content Store.

Syntax

 New-LiquitContent 
	[-Path] <string> 
	[-FileName <string>]
 	[-Resize]
	[-LiquitContext <LiquitContext>] 
	[-WhatIf] 
	[-Confirm]  
	[<CommonParameters>]

Examples

Example 1: Upload folder

 New-LiquitContent -Path "C:\test\"

This command uploads all files and folders located in C:\test\ to the Content Store.

Example 2: Upload file

 New-LiquitContent -Path "C:\test\test.txt"

This command uploads the test.txt file located in C:\test\ to the Content Store.

Example 3: Upload icon

 New-LiquitContent -Path "C:\test\icon.png" -Resize $true

This command uploads icon.png located in C:\test\ to the Content Store.

Parameters

NameValueDescriptionRequiredDefault value
Path<Certifcate[]>The path of the file or folder you want to upload.Yes
FileName<string>The filename that will be used to store the file on the server.No
LiquitContext<LiquitContext>Determines the selected zone.NoDefault

Export-LiquitContent

Synopsis

This command exports the selected content.

Syntax

 Export-LiquitContent 
	[-Content] <Content> 
	[-Path] <string> 
	[-Extract]
	[-LiquitContext <LiquitContext>] 
	[-WhatIf] 
	[-Confirm]  
	[<CommonParameters>]

Examples

Example 1: Export-LiquitContent

 $content  = Get-LiquitContent -ID 00000000-0000-0000-0000-000000000000
 Export-LiquitContent -content $content  -path C:\temp\ExportContent.pxf

Example 2: Export-LiquitContent

 Export-LiquitContent -Content (Get-LiquitPackage -id 00000000-0000-0000-0000-000000000000).icon -path package.ico

Parameters

NameValueDescriptionRequiredDefault value
Content<Content>The content you want to export.Yes
Path<string>The path where the content needs to be stored locally.Yes
LiquitContext<LiquitContext>Determines the selected zone.NoDefault

Was this article helpful?

What's Next