Menu Close

Command Line Interface (CLI) Reference

MSIX Hero version 1.0 and newer support command line switches for silent execution of tasks. This page is a reference and a guide showing how to automate typical tasks with program’s CLI.

Getting started

To use command line interface of MSIX Hero, install the program from .appinstaller or .msix file (or from winget, which actually pulls the .msix file and installs it). MSIX Hero registers an application execution alias MSIXHeroCLI.exe, which is globally available and always starts the currently installed CLI executable.

Calling the program directly without any arguments displays a short help about available options. In other cases, every action offered by the CLI is encapsulated in a verb.

Available verbs

signSigns one or more MSIX packages.
packPacks a folder of files, containing a manifest and creates MSIX package out of it.
unpackUnpacks an MSIX package to the specified folder.
newcertCreates a new certificate for package signing (self-signed)
trustImports a selected certificate (.cer/.pfx) or imports a certificate from a selected MSIX package to the Trusted People store.
appattachCreates VHD file from a selected MSIX package (for MSIX app attach)
newmodpackCreates a new modification package.
helpDisplays the help.
versionDisplays the information about MSIX Hero version.

To execute a verb, simply write its name as the first argument, for example:

MSIXHeroCLI.exe version
MSIXHeroCLI.exe pack
MSIXHeroCLI.exe help

Most of verbs show a contextual help and information about missing arguments if started without any parameters. To show a help about a particular verb, append --help to it, for example:

MSIXHeroCLI.exe trust --help
MSIXHeroCLI.exe pack --help
MSIXHeroCLI.exe sign --help

Many verbs require parameters, some of them optional and some required. Unless the documentation states otherwise, parameter positions are not relevant.

When describing syntax, square brackets around a parameter mean that the parameter is optional.

Detailed information and examples

Leave a Reply

Your email address will not be published. Required fields are marked *