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
. You can also get help on the specific command like
the report command: StaticalPrismCmd.exe -h report
. Furthermore, you can get help on a specific report:
StaticalPrismCmd.exe report onprem-usages -h
.
You can specify a workspace as either a directory or a .code-workspace
file.
When integrating a report into a Continuous Integration pipeline, consider using options --log-file
and --strict
.
Object dependencies report
Analyzes a workspace and produces a tab-separated cross-reference of object dependencies with dependency types.
Use StaticalPrismCmd.exe -h report object-dependencies
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 -h report unreferenced-objects
for available options.
Example: StaticalPrismCmd.exe report unreferenced-objects "C:\workspace\LearnPrism" -o "c:\reports\learn\object-dependencies.csv"
OnPrem usages report
Analyzes a workspace, builds a Code graph and produces a tab-separated list of
references to procedures and objects that are OnPrem annotated.
Use StaticalPrismCmd.exe -h report onprem-usages
for available options.
Example: StaticalPrismCmd.exe report unreferenced-objects "C:\workspace\LearnPrism" -o "c:\reports\learn\onprem-usages.csv --log-file c:\tmp\onprem-usages.log --strict"
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 -h open
for all available options.
Example: StaticalPrismCmd.exe open "C:\workspace\LearnPrism"