Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Mendix Version Compatibility

Supported Mendix Studio Pro versions, feature availability matrix, and known limitations.

Supported Versions

mxcli supports Mendix Studio Pro versions 9.x through 11.x. Development and nightly testing targets five versions:

Studio Pro VersionMPR FormatNightly TestedStatus
9.xv1NoRead-only support
10.0 – 10.17v1NoSupported
10.18 – 10.23v2NoSupported
10.24 (LTS)v2YesSupported
11.0 – 11.5v2NoSupported
11.6v2YesPrimary development target
11.7 – 11.11v2NoSupported
11.12v2YesSupported
11.13v2YesSupported
11.14v2YesLatest tested

The exact patch versions are in the mendix-version matrix in .github/workflows/nightly.yml, which is authoritative – this table names the minors only.

MPR Format Versions

v1 (Mendix < 10.18)

  • Single .mpr SQLite database file
  • All documents stored as BSON blobs in the Contents column of the Unit table – there is no separate contents table
  • Self-contained – one file holds the entire project

v2 (Mendix >= 10.18)

  • .mpr SQLite file for metadata only – the Unit table has no Contents column
  • mprcontents/<XX>/<YY>/<UUID>.mxunit – one file per document
  • Better suited for Git version control (smaller, per-document diffs)

The library auto-detects the format. No configuration is needed.

Feature Availability Matrix

The tables below show exactly which features are available on each Mendix version. Data is sourced from sdk/versions/mendix-{9,10,11}.yaml.

Domain Model

FeatureMDL Syntax9.x10.0+10.18+11.0+
Persistent entitiesCREATE PERSISTENT ENTITYYesYesYesYes
Non-persistent entitiesCREATE NON-PERSISTENT ENTITYYesYesYesYes
Calculated attributesCALCULATED BY Module.MicroflowYesYesYesYes
Entity generalizationEXTENDS Module.ParentEntityYesYesYesYes
ALTER ENTITYALTER ENTITY ... ADD/DROP/RENAME–YesYesYes
View entitiesCREATE VIEW ENTITY ... AS SELECT––10.21+Yes

Microflows

FeatureMDL Syntax9.x10.0+10.6+11.0+
Basic microflowsCREATE MICROFLOW ... BEGIN ... ENDYesYesYesYes
Loop in branchesLOOP inside IF/ELSEYesYesYesYes
Loops over a list, while loopsLOOP $Item IN $List ..., WHILE ...9.0.4+YesYesYes
Show page with argumentsSHOW PAGE Module.Page (Param = $Value)9.7+YesYesYes
Calls in a task queueCALL MICROFLOW ... IN QUEUE ... [RETRY FIXED (...)], [RETRY EXPONENTIAL (...)], CALL JAVA ACTION ... IN QUEUE ... [RETRY ...]9.10+YesYesYes
Find and filter by expressionFIND $List WHERE ..., FILTER $List WHERE ...9.0.3+YesYesYes
Call external actionCALL EXTERNAL ACTION Module.Service.Action (...)9.19+ (with arguments: –)Yes (with arguments: 10.2+; INCLUDE ASSOCIATIONS: 10.11+)YesYes
Range of a listRANGE $List OFFSET ... LIMIT ...9.24+YesYesYes
SEND REST REQUESTSEND REST REQUEST Module.Service.Op–10.1+YesYes
SEND REST REQUEST arguments, result, body... WITH (...), $R = SEND REST REQUEST ..., ... BODY $Var–10.2+, 10.4+, 10.5+YesYes
Transform JSON with a data transformer$Out = TRANSFORM $Json WITH Module.Transformer–––11.4+
Execute database queryEXECUTE DATABASE QUERY ...9.24+YesYesYes
REST query parametersSEND REST REQUEST with QUERY params–––Yes
DB query runtime connectionEXECUTE DATABASE QUERY ... CONNECTION (...)–––11.1+

Below its version, each of these is refused by check -p and by exec before anything is written, with MDL-VERSION01, wherever it sits in the flow and in what an alter microflow or alter nanoflow inserts. The versions are the Mendix Model SDK’s own for the type each writes; before this, check -p passed them and the write refused them part-way through the script (ako/mxcli#1811). A FIND or FILTER BY Member = value writes the older find and filter every version has.

Pages

FeatureMDL Syntax9.x10.0+10.18+11.0+
Basic pagesCREATE PAGE ... { ... }YesYesYesYes
ALTER PAGEALTER PAGE ... SET/INSERT/DROP–YesYesYes
Pluggable widgetsDATAGRID, GALLERY, COMBOBOX, IMAGE–YesYesYes
Conditional visibilityVisible: <expression>–––Yes
Conditional editabilityEditable: <expression>–––Yes
Responsive column widthsTabletWidth: 6, PhoneWidth: 12–––Yes
Page parameters (entity)Params: ( $Item: Module.Entity )9.4+YesYesYes
Page parameters (primitive)Params: ( $Qty: Integer )–––11.6+
Page variablesVariables: ( ... )–10.20+10.20+Yes
Snippet parametersCREATE SNIPPET ... (Params: ( ... ))9.21+YesYesYes
Workflow actions on a buttonaction: open user task, open workflow, call workflow ...; complete task '...'9.0.2+; 9.19+YesYesYes
Design properties (Atlas v3)DesignProperties: (...)–––Yes
::: tip Widget Templates Pluggable widget templates are currently extracted from Mendix 11.6. When used on 10.x projects, the MPK augmentation system reconciles property differences. Some CE0463 (“widget definition changed”) errors may still occur.
::

Security

FeatureMDL Syntax9.x10.0+
Module rolesCREATE MODULE ROLEYesYes
User rolesCREATE USER ROLEYesYes
Entity access rulesGRANT READ/WRITE ON ...YesYes
Demo usersCREATE DEMO USERYesYes

Integration

FeatureMDL Syntax10.0+10.1+10.4+10.6+11.0+
OData clientCREATE CONSUMED ODATA SERVICEYesYesYesYesYes
Business events (9.24+)CREATE BUSINESS EVENT SERVICEYesYesYesYesYes
REST client with no operationCREATE CONSUMED REST SERVICE ... ( ... ) { }–YesYesYesYes
REST client basic authenticationauthentication: basic (...)–10.2+YesYesYes
REST client operations... { OPERATION ... }––YesYesYes
REST client from an OpenAPI documentCREATE CONSUMED REST SERVICE ... ( OpenAPI: ... )–––10.21+Yes
REST client headersHeaders: ('Name': 'Value')––YesYesYes
Database ConnectorCREATE DATABASE CONNECTIONYesYesYesYesYes
Database Connector queriesCREATE DATABASE CONNECTION ... { QUERY ... }–––10.12+Yes
Scheduled eventsCREATE SCHEDULED EVENT ... ( Repeat: ... )Yes (9.12+)YesYesYesYes
Module JAR dependencies, exclusionsALTER MODULE ... ADD JAR DEPENDENCY, ... ADD EXCLUSIONYes; 10.12+YesYesYesYes
REST client query paramsQUERY $param: Type––––Yes

A REST client operation’s body: json from $X is stored as Mendix 11’s JSON body (Rest$JsonBody) on 11.0+. Mendix 10 has no JSON body, so there it is written as the string body Mendix 10 has, holding the same text, and describe reads it back as body: template. Before this, mxcli wrote the JSON body on Mendix 10 too, and Studio Pro could not open the project.

Workflows

FeatureMDL Syntax9.x10.0+
Basic workflowsCREATE WORKFLOW, ALTER WORKFLOW9.0.2+Yes
User tasksUSER TASK ... OUTCOMES (...)9.19+Yes
A workflow parameterPARAMETER $WorkflowContext: Module.Entity9.18+Yes
A jumpJUMP TO ...9.0.5+Yes
Calling a workflow from a workflowCALL WORKFLOW ...; with (WorkflowContext = ...)9.6+; 9.18+Yes
An overview pageOVERVIEW PAGE ...9.11+Yes
AnnotationsANNOTATION '...'9.15+Yes
Multi-user tasksMULTI USER TASK ...9.22+Yes
Multi-user task rules majority and thresholdDECIDE BY MAJORITY ..., DECIDE BY THRESHOLD ...NoYes
Waiting for all usersAWAIT ALL USERSNo10.2+
Deciding by a microflowDECIDE BY MICROFLOW ...No10.3+
Group targetingTARGETING GROUPS XPATH ..., TARGETING GROUPS MICROFLOW ...No11.2+
Parallel splitsPARALLEL SPLITYesYes
Waiting for a notificationWAIT FOR NOTIFICATIONNoYes
Waiting for a timerWAIT FOR TIMERNo10.6+
A timer boundary event of no kindBOUNDARY EVENT TIMER ...No10.14+ (MDL-WF07 refuses it from 11.0)
Interrupting and non-interrupting timer boundary eventsBOUNDARY EVENT [NON] INTERRUPTING TIMER ...No10.20+
Locking and unlocking a workflowLOCK WORKFLOW ..., UNLOCK WORKFLOW ...NoYes
Starting a workflow, setting a task outcome, opening a user task or a workflow (microflow)CALL WORKFLOW, SET TASK OUTCOME, OPEN USER TASK, OPEN WORKFLOW9.0.2+Yes
Aborting and restarting a workflow (microflow)WORKFLOW OPERATION ABORT ..., WORKFLOW OPERATION RESTART ...9.2+Yes
Pausing and continuing a workflow (microflow)WORKFLOW OPERATION PAUSE ..., WORKFLOW OPERATION CONTINUE ...9.3+Yes
Getting workflow data (microflow)GET WORKFLOW DATA ... AS ...9.10+Yes
Retrying and unpausing a workflow (microflow)WORKFLOW OPERATION RETRY ..., WORKFLOW OPERATION UNPAUSE ...9.12+Yes
Notifying a workflow (microflow)NOTIFY WORKFLOW ... TARGET ...NoYes
Getting an object’s workflows, or a workflow’s activity records (microflow)GET WORKFLOWS FOR ..., GET WORKFLOW ACTIVITY RECORDS ...No10.4+

Every write refuses an element whose type the project’s Mendix version does not have yet, naming the type, the version that introduced it and the project’s version (“this Mendix 9.24.30 project cannot store Workflows$WaitForNotificationActivity (Mendix 10.0.0+)”). The versions are each type’s own, from the Mendix Model SDK. Below their versions, the wait activities, the timer boundary events, a lock or unlock naming a workflow, and the workflow actions of a microflow (in create microflow and in what alter microflow inserts) are also refused up front, by check -p and by exec before anything is written, with MDL-VERSION01 (ako/mxcli#1787). So is a workflow itself on 9.0.0 and 9.0.1, which predate Workflows$Workflow (9.0.2): create workflow, create or modify workflow and alter workflow (ako/mxcli#1809), and what a workflow states whose version is later still, listed above: on a stamped 9.x project the write refuses every workflow with a parameter below 9.18 and every user task below 9.19 (ako/mxcli#1811). Before this, such a type was written, and the project did not load (TypeCacheUnknownTypeException, ako/mxcli#1774). Where an older version stores the same thing in another shape (the parallel split’s end marker, user tasks), that shape is written instead, as listed under “Properties Stored in an Older Shape”.

Below Mendix 11.3 a workflow’s main flow has no stored start or end activity: 11.1 and 11.2 keep them implicit, and 10.x and 11.0 do not have the start activity type at all. mxcli writes the shape the project’s version stores, and the header’s annotation '…' is then the workflow’s own note rather than the start activity’s; describe prints it the same way on every version. Before this, mxcli wrote the 11.3 shape on every version: a 10.24 or 11.0 project no longer loaded, and 11.1 and 11.2 failed mx check with CE6671 and CE6689 (ako/mxcli#1754).

FeatureMDL Syntax9.x10.0+
Navigation profilesALTER NAVIGATION ...YesYes
Menu itemsMENU ITEM ...YesYes
Home pagesHOME PAGE Module.PageYesYes
A progressive web app’s settingsPROGRESSIVE WEB APP ( ... )9.0.3+Yes
A native profile’s home pageCREATE OR MODIFY NAVIGATION NativePhone HOME PAGE ...9.4+Yes
Menu item iconsMENU ITEM '...' ( ..., Icon: Module.Collection.icon )9.20+Yes
A not-found pageNOT FOUND PAGE Module.PageNo10.13+

Each “+” version above that is not a whole major is the Model SDK’s version of a type or property mxcli writes for the feature, with no older shape; below it, check -p and exec refuse the statement with MDL-VERSION01 before anything is written (ako/mxcli#1811).

OQL (View Entity queries)

FeatureMDL Syntax10.18+11.0+
Basic SELECTSELECT, FROM, WHEREYesYes
Aggregate functionsCOUNT, SUM, AVG, MIN, MAX, GROUP BYYesYes
String aggregateSTRING_AGG(expr, 'separator')10.24.22+ only11.2+
SubqueriesInline subqueries in SELECT/WHEREYesYes
JOIN typesINNER/LEFT/RIGHT/FULL JOINYesYes

MPR Format & Infrastructure

FeatureMinimum VersionNotes
MPR v2 (mprcontents/)10.18Per-document files for Git compatibility
Association storage format11.0New BSON encoding for associations
Portable app format11.6New deployment format

BSON Differences Across Versions

The Mendix metamodel evolves across versions. The reflection data shows ~42% type growth from Mendix 9.0 to 11.6. Key structural differences:

View Entities (10.x vs 11.x)

View entities arrived in Mendix 10.18 with the query stored inline. mxcli stores it in a separate ViewEntitySourceDocument, which the entity’s source names; both are 10.21 types, so create view entity needs 10.21 and is refused by check -p below it (ako/mxcli#1811); before, check -p passed it on 10.18 to 10.20 and the write refused it. The BSON structure also differs between 10.x and 11.x. In Mendix 10.x, the OqlViewEntitySource object has an Oql field that stores the OQL query inline (in addition to the separate ViewEntitySourceDocument). Mendix 11.0 removed the inline Oql field. The writer detects the project version and includes the inline field for 10.x projects.

Page Parameters (9.4+, with an 11.5 tail)

Page parameters are not an 11.x feature. Pages$PageParameter and Page.parameters were introduced in 9.4.0, and Pages$PageSettings.parameterMappings — the arguments a SHOW PAGE passes — in 9.7.0 (measured from the Mendix Model SDK’s StructureVersionInfo records). mxcli refused them on 10.x until mendixlabs/mxcli#1121; the 11.0 floor in the version registry came from an illustrative sample table in a proposal, not from a measurement.

What is version-specific is the optional/default-value half: PageParameter.IsRequired and PageParameter.DefaultValue arrived in 11.5.0. MDL cannot express either — every parameter it writes is required with no default — so the writer omits both below 11.5. Emitting them anyway is the “never invent a key” failure: mxbuild accepts unknown properties, and Studio Pro throws InvalidOperationException at MprProperty.cs.

Design Properties (Atlas v2 vs v3)

Atlas UI v3 (Mendix 11.0+) introduced new design properties like “Card style” and “Disable row wrap” for containers. These don’t exist in the Atlas v2 theme bundled with 10.x, causing CE6083.

Properties Stored in an Older Shape

Some properties kept their meaning and changed how they are stored. mxcli builds the current shape and, on every write, rewrites it into the shape the project’s version stores. describe reads both shapes (ako/mxcli#1209, ako/mxcli#1163). The older shapes were measured on Studio Pro-authored 9.24 documents and with mx convert 9.24.30:

PropertyBelowStored as
A widget’s design property10.2Type (Toggle / DropDown), StringValue, BooleanValue on the entry, instead of a typed Value
A data view’s page or snippet parameter10.0PageParameter / SnippetParameter names on the data source, instead of a SourceVariable
A data view’s editability10.7Editable: true|false, instead of Editability
A text box’s, text area’s or date picker’s placeholder10.11Placeholder text, instead of a PlaceholderTemplate
Any data source’s ForceFullObjects10.8Not stored
The PersistentId of a workflow, activity, outcome or boundary event10.21Not stored
The end of a parallel split path (Workflows$EndOfParallelSplitPathActivity, a type introduced in 10.21)10.21Not stored: a path holds its activities and nothing more (Studio Pro 9.4)
A user task (Workflows$SingleUserTaskActivity / MultiUserTaskActivity, types introduced in 10.12)10.12A Workflows$UserTask whose UserTaskCompletion is a SingleInputCompletion, or a MultiInputCompletion holding the rule, the participants and, from 10.2, AwaitAllUsers (Studio Pro 9.24, ako/mxcli#1771)
A user task’s targeting (targeting users xpath […], targeting users microflow …, none)11.2A UserSource (XPathBasedUserSource, MicroflowBasedUserSource, EmptyUserSource) holding the same value, instead of a UserTargeting (ako/mxcli#1771)
A constant’s value in a configuration (alter settings constant … in configuration)10.9A flat Value string on the override, instead of a Settings$SharedValue under SharedOrPrivateValue
A page’s flow call argument that is the enclosing object (call microflow M.F(P = $currentObject), call nanoflow …)10.10Not stored: Studio Pro infers it. A page parameter, snippet parameter or widget argument is stored as before, as a Variable

What an older shape cannot hold is refused, naming the element, rather than dropped:

  • a Spacing, colour-picker or toggle-button-group design property below 10.2;
  • conditional data view editability below 10.7;
  • a placeholder with parameters below 10.11;
  • a data view fed by another widget below 10.0;
  • a private constant value in a configuration below 10.9;
  • a page’s flow call argument that is any other expression (a literal, an attribute path) below 10.10;
  • a user task targeting groups (targeting groups xpath …, targeting groups microflow …) below 11.2, where a task targets users only;
  • a multi-user task below 9.22, decide by majority or decide by threshold below 10.0, decide by microflow below 10.3, await all users below 10.2, and a boundary event on a user task below 10.14. The user-task features are also refused up front, by check -p and by exec before anything is written, with MDL-VERSION01 (ako/mxcli#1771);
  • an aggregate over an expression (sum $L of …), reduce, all or any below 10.0. The plain count, sum, average, minimum and maximum are written on every version (ako/mxcli#1163).

Before this, describe on 9.24 printed none of these properties, so a describe → exec round trip removed them. Writing a data view on 9.24 was refused outright.

A published OData service is not an older shape of the same document. Before 10.4 it is a different document (Rest$PublishedODataService, not ODataPublish$PublishedODataService2), which mxcli does not write. create published odata service is refused below 10.4 with MDL-VERSION01, by check -p and by exec before anything is written. Mendix 9.24 cannot load a project that holds the 10.4 document.

Widget Type Definitions

Pluggable widget PropertyTypes change between Mendix versions. A widget template extracted from 11.6 may have more or fewer properties than the widget installed in a 10.24 project. The widget augmentation system handles this by reconciling templates against the project’s .mpk files.

The schema itself also gained keys over time. A key the project’s version does not declare is left out of the schema mxcli writes, by the same version data the property floor uses. For example, a return type’s AssignableTo arrived in 9.20, so a 9.0–9.19 schema stores EntityProperty, IsList and Type, as Studio Pro 9.1 and 9.4 do (ako/mxcli#1163).

Widget Template Versions

Embedded widget templates are extracted from Mendix 11.6 and cover:

WidgetTemplateWidget ID
Combo boxcombobox.jsoncom.mendix.widget.web.combobox.Combobox
Data grid 2datagrid.jsoncom.mendix.widget.web.datagrid.Datagrid
Gallerygallery.jsoncom.mendix.widget.web.gallery.Gallery
Imageimage.jsoncom.mendix.widget.web.image.Image
Text filterdatagrid-text-filter.jsoncom.mendix.widget.web.datagridtextfilter.DatagridTextFilter
Number filterdatagrid-number-filter.jsoncom.mendix.widget.web.datagridnumberfilter.DatagridNumberFilter
Date filterdatagrid-date-filter.jsoncom.mendix.widget.web.datagriddatefilter.DatagridDateFilter
Dropdown filterdatagrid-dropdown-filter.jsoncom.mendix.widget.web.datagriddropdownfilter.DatagridDropdownFilter

MPK Augmentation

When opening a project, mxcli checks the project’s widgets/ folder for .mpk packages. If a widget’s installed version differs from the embedded template, the augmentation system:

  1. Extracts the XML property definition from the .mpk
  2. Adds properties found in .mpk but missing from the template
  3. Removes properties in the template but not in the .mpk
  4. Preserves the BSON structure (IDs, nesting, cross-references)

This reduces CE0463 (“widget definition changed”) errors from widget version drift. See Widget Templates for details.

Version Gates in MDL Scripts

MDL scripts can use -- @version: directives to conditionally execute features based on the target Mendix version. This is used in the doctype integration tests to skip features incompatible with older versions:

-- Runs on all versions
CREATE ENTITY MyModule.Customer (Name: String(200));

-- @version: 11.0+
-- Only runs on Mendix 11.0 and later
CREATE VIEW ENTITY MyModule.ActiveCustomers (...) AS
  SELECT c.Name FROM MyModule.Customer AS c WHERE c.IsActive;

-- @version: 10.6..10.24
-- Only runs on Mendix 10.6 through 10.24
CREATE ENTITY MyModule.LegacyConfig (...);

-- @version: any
-- Resets to unconditional (runs on all versions)
CREATE ENTITY MyModule.Universal (...);

Directive formats:

  • -- @version: 11.0+ – minimum version (run on 11.0 and later)
  • -- @version: 10.6..10.24 – version range (inclusive)
  • -- @version: ..10.24 – maximum version only
  • -- @version: any – reset to unconditional

The directive applies to all lines until the next -- @version: directive.

MxBuild Compatibility

The mx validation tool must match the project’s Mendix version:

# Auto-download the correct MxBuild version
mxcli setup mxbuild -p app.mpr

# Check the project
mxcli docker check -p app.mpr

MxBuild is downloaded on demand and cached in ~/.mxcli/mxbuild/{version}/.

Platform Support

mxcli runs on:

PlatformArchitecture
Linuxamd64, arm64
macOSamd64, arm64 (Apple Silicon)
Windowsamd64, arm64

No CGO or C compiler is required – the binary is fully statically linked using pure Go dependencies.