Publish-PSUStaticApp
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
RELATED LINKS
Last updated
Was this helpful?