For the complete documentation index, see llms.txt. This page is also available as Markdown.

Publish-PSUStaticApp

Publishes a static app based on the PowerShell Universal app framework.

SYNOPSIS

Publishes a static app based on the PowerShell Universal app framework.

SYNTAX

Publish-PSUStaticApp -Definition <ScriptBlock> -DestinationPath <String> [-Force]
 [<CommonParameters>]

DESCRIPTION

Publishes a static app based on the PowerShell Universal app framework. Static apps can be hosted outside of PowerShell Universal.

EXAMPLES

Example 1

PS C:\> Publish-PSUStaticApp -Definition { New-UDApp -Content { New-UDTypography "Hello!" } } -DestinationPath 'C:\MyStaticApp'

Creates a static app in the path C:\MyStaticApp based on the definition provided.

PARAMETERS

-Definition

The definition of the static app. This is a script block that contains the definition of the app. The script block should contain a call to New-UDApp with the content of the app.

-DestinationPath

The path to the directory where the static app will be published. This path must be a valid file system path.

-Force

If specified, the cmdlet will overwrite any existing files in the destination path without prompting for confirmation.

CommonParameters

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

INPUTS

None

OUTPUTS

System.Object

NOTES

Last updated

Was this helpful?