mx exe - show-app-version

0
Ive been looking for a way to programmatically get / set the app version for our Mendix apps   And I found this : https://docs.mendix.com/refguide/mx-command-line-tool/adaptable/#show-app-version   Looked perfect  - unfortunately I've tried a couple of times. It just seems to hang for a while then return without any feedback / silently fails   Any ideas ? 
asked
1 answers
0

Hi Matt,

 

If mx show-app-version or mx set-app-version hangs or silently fails, try this checklist:

  1. Match versions – The mx CLI must match the Mendix .mpr file version. Use the mx from the same Studio Pro install folder as your app version.

  2. Test responsiveness – Run mx show-app-version --help to confirm the CLI is working, then check the return code (%ERRORLEVEL% or $?).

  3. Run locally first – Test outside CI/CD to see if it’s an environment issue.

  4. Check Java & PATH – Ensure a compatible JDK is available and correctly configured.

  5. Kill lingering processes – Some builds leave java.exe or watchman running, which can cause hangs. In PowerShell:

    Get-Process | Where-Object { $_.Name -eq "watchman" } | Stop-Process

These steps often resolve silent failures when using mx commands in scripts or pipelines.

answered