This tutorial shows how to check the quality of your Mendix project.
Before running a script, check its syntax:
mxcli check scripts/02-create-entity.mdlFor deeper validation that checks entity/microflow references exist:
mxcli check scripts/03-create-microflow.mdl -p App.mpr --referencesRun the built-in linter to find issues:
mxcli lint -p App.mprOutput formats:
mxcli lint -p App.mpr --format json # Machine-readable
mxcli lint -p App.mpr --format sarif # For IDE integrationGet a scored best-practices report:
mxcli report -p App.mprDifferent output formats:
mxcli report -p App.mpr --format markdown
mxcli report -p App.mpr --format json
mxcli report -p App.mpr --format htmlRun the same validation that Studio Pro uses:
~/.mxcli/mxbuild/*/modeler/mx check App.mprThis catches issues like:
- Missing required attributes
- Invalid association targets
- Security configuration errors
- Widget property mismatches
Find all references to an entity to understand impact before changes:
mxcli -p App.mpr -c "SHOW REFERENCES OF MyFirstModule.Task"
mxcli -p App.mpr -c "SHOW IMPACT OF MyFirstModule.Task"Search across all strings in the project:
mxcli -p App.mpr -c "SEARCH 'Customer'"