Command-line interface
The command-line executable, StaticalPrismCmd.exe is registered as a so-called execution alias by
the MSIX installer, so by magic, if you type StaticalPrismCmd.exe in a command shell you will get the
correct MSIX installed version regardless of the PATH environment variable.
For help, run StaticalPrismCmd.exe -h. Add -h after a command for help on that command,
such as StaticalPrismCmd.exe report -h, or on a specific report:
StaticalPrismCmd.exe report onprem-usages -h. The help also lists the exit codes.
You can specify a workspace as a directory, a .code-workspace file or an .app package.
When integrating a report into a Continuous Integration pipeline, consider using options --log-file
and --strict.
The commands that run the MCP server are described in MCP server.
Solution metrics report
Analyzes a workspace and produces an Excel file of solution metrics, such as object counts by module and object type.
Use StaticalPrismCmd.exe report solution-metrics -h for available options.
Example:
StaticalPrismCmd.exe report solution-metrics "C:\workspace\LearnPrism" -o "c:\reports\learn\solution-metrics.xlsx"
Object dependencies report
Analyzes a workspace and produces a tab-separated cross-reference of object dependencies with dependency types.
Use StaticalPrismCmd.exe report object-dependencies -h for available options.
Example:
StaticalPrismCmd.exe report object-dependencies "C:\workspace\LearnPrism" -o "c:\tmp\object-dependencies.csv"
Unreferenced objects report
Analyzes a workspace and produces a tab-separated list of unreferenced objects.
Use StaticalPrismCmd.exe report unreferenced-objects -h for available options.
Example:
StaticalPrismCmd.exe report unreferenced-objects "C:\workspace\LearnPrism" -o "c:\reports\learn\unreferenced-objects.csv"
OnPrem usages report
Analyzes a workspace, builds a full Code graph and produces a tab-separated list of
references to procedures and objects that are OnPrem annotated.
Use StaticalPrismCmd.exe report onprem-usages -h for available options.
Example:
StaticalPrismCmd.exe report onprem-usages "C:\workspace\LearnPrism" -o "c:\reports\learn\onprem-usages.csv" --log-file "c:\tmp\onprem-usages.log" --strict
Parse errors report
Analyzes a workspace and produces a text file listing the parse errors found in its AL files.
Use StaticalPrismCmd.exe report parse-errors -h for available options.
Example:
StaticalPrismCmd.exe report parse-errors "C:\workspace\LearnPrism" -o "c:\reports\learn\parse-errors.txt"
License command
license shows the current license status: whom the license is for, when it expires, whether it is
a trial, and the machine code. license install installs a license key and prints the resulting
status. Give the key once: as an argument, from a file with --key-file, or from standard input
with --stdin. A key that is invalid, expired or not valid on this machine is rejected with a
non-zero exit code.
Example:
StaticalPrismCmd.exe license
StaticalPrismCmd.exe license install --key-file "c:\keys\prism-for-al.txt"
Package cache command
Inspects and clears the package cache that Prism for AL and StaticalPrismCmd.exe share. No workspace
is required. package-cache list lists cached packages with their size and state, and
package-cache clear deletes cached packages that nothing is using. Select packages with options
such as --publisher and --name, or use --all for the whole cache, and
add --dry-run to see what would be deleted first. Use --format json for output a
script can read.
Example:
StaticalPrismCmd.exe package-cache list
StaticalPrismCmd.exe package-cache clear --publisher Microsoft --dry-run
Open command
Opens the Prism for AL application on a workspace. If Prism for AL is already running, no new instance is used,
If the workspace is already open, then it is not reopened.
Use StaticalPrismCmd.exe open -h for all available options.
Example:
StaticalPrismCmd.exe open "C:\workspace\LearnPrism"