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
Verb | Description |
---|---|
sign | Signs one or more MSIX packages. |
pack | Packs a folder of files, containing a manifest and creates MSIX package out of it. |
unpack | Unpacks an MSIX package to the specified folder. |
newcert | Creates a new certificate for package signing (self-signed) |
trust | Imports a selected certificate (.cer/.pfx) or imports a certificate from a selected MSIX package to the Trusted People store. |
appattach | Creates VHD file from a selected MSIX package (for MSIX app attach). |
edit | Edits a package specified by the first argument. |
newmodpack | Creates a new modification package. |
help | Displays the help. |
version | Displays 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.
Feature request: it would be very helpful to extend MSIXHeroCLI.exe functionality with enabling file addition, removal, and update in MSIX packages. Another useful extension would be unattended manifest update. This could significantly enhance and simplify exaction of various post-processing tasks, such as PSF integration.
Opened feature request at https://github.com/marcinotorowski/MSIX-Hero/issues/78