
Mendix cli tool, a headless way to work with Mendix projects. Enables Mendix projects for use with 3rd party agentic coding tools like Claude Code and Copilot. Includes a starlark linter for quality validation.
Repo mendixlabs/mxcli, read from GitHub 15 min ago. mendixlabs has not joined Take My Repo.
Nightly build from main — 2026-11-23
Commit: 811702bfd
811702b docs(changelog): release v0.33.1
a3fb30f Merge pull request #1925 from ako/main
28591fe Merge pull request #2533 from ako/claude/mxcli-dev-upstream-pr-wm0592
ef384b8 Merge pull request #2530 from ako/fix/2524-batch-accepts-verdicts
96bc3c8 Merge pull request #2527 from ako/claude/gifted-fermi-2udffj
c22b97d Merge origin/main into the v0.33.0 sync branch
6ad0893 Merge pull request #2532 from ako/claude/issue-triage-prioritization-24rqgv
d29d952 brain: --from-json items take accepts, changes and partly_meets
dab8af1 fix(check): MDL-WIDGET56 judges a widget's mode with the values exec writes
e472dd8 docs(report): the journey-log record's pages proves a page-only requirement
0cac148 style: gofmt splice_handler_test.go with the pinned toolchain's gofmt
a7fe8e0 Merge mendixlabs/mxcli main (v0.33.0 release) into ako/mxcli main
85e5855 docs(changelog): release v0.33.0
70a6ba4 style: gofmt splice_handler_test.go
6dc3e38 Merge pull request #2521 from ako/fix/dropdown-filter-ce0463
a8b6ac5 Merge remote-tracking branch 'origin/main' into fix/dropdown-filter-ce0463
d5f5eef Merge pull request #1920 from ako/main
2ea6756 fix: drop-down filter emptyOptionCaption follows its visibility (#2518)
c4bae6e Merge pull request #2517 from ako/claude/gifted-fermi-2udffj
54ce4a5 fix(report map): integration ports by outbound clients, name or documentation
This is an automated pre-release build. Use tagged releases for production.
Nightly build from main — 2026-11-23
Commit: 811702bfd
811702b docs(changelog): release v0.33.1
a3fb30f Merge pull request #1925 from ako/main
28591fe Merge pull request #2533 from ako/claude/mxcli-dev-upstream-pr-wm0592
ef384b8 Merge pull request #2530 from ako/fix/2524-batch-accepts-verdicts
96bc3c8 Merge pull request #2527 from ako/claude/gifted-fermi-2udffj
c22b97d Merge origin/main into the v0.33.0 sync branch
6ad0893 Merge pull request #2532 from ako/claude/issue-triage-prioritization-24rqgv
d29d952 brain: --from-json items take accepts, changes and partly_meets
dab8af1 fix(check): MDL-WIDGET56 judges a widget's mode with the values exec writes
e472dd8 docs(report): the journey-log record's pages proves a page-only requirement
0cac148 style: gofmt splice_handler_test.go with the pinned toolchain's gofmt
a7fe8e0 Merge mendixlabs/mxcli main (v0.33.0 release) into ako/mxcli main
85e5855 docs(changelog): release v0.33.0
70a6ba4 style: gofmt splice_handler_test.go
6dc3e38 Merge pull request #2521 from ako/fix/dropdown-filter-ce0463
a8b6ac5 Merge remote-tracking branch 'origin/main' into fix/dropdown-filter-ce0463
d5f5eef Merge pull request #1920 from ako/main
2ea6756 fix: drop-down filter emptyOptionCaption follows its visibility (#2518)
c4bae6e Merge pull request #2517 from ako/claude/gifted-fermi-2udffj
54ce4a5 fix(report map): integration ports by outbound clients, name or documentation
This is an automated pre-release build. Use tagged releases for production.
Headline: Data grid drop-down filters build without CE0463, and v0.33.0's MDL-WIDGET56 stops warning about widget modes a statement did not choose. A patch release: two pluggable-widget fixes, and brain capture --from-json accepts the decision options the flags already had.
check no longer reports the required properties of a widget mode the statement did not choose (ako#2523) — a combo box bound with attribute: was warned (MDL-WIDGET56) about 12 properties of the association and database modes, and a data grid drop-down filter about refEntity, refSearchAttr and linkedDs; mxbuild builds both clean. The widget's hide rules are now judged with the values exec writes for unset properties, a property set through its MDL keyword counts as set, and the drop-down filter's association-mode hide rules are read. A combo box in association mode still reports the caption attribute it needs (CE0642).emptyOptionCaption was written with an empty text, where Studio Pro stores none while filterable or multiSelect hides it and the widget's default text ("None") while it is visible. Rules that the widget editor writes as (a || b) && hide(…) are now read, and a visible text property that is left unset gets the widget's default text. Measured on mx check 11.14.0: 68 pages copied from the testapp went from 9 × CE0463 to 0.brain capture --from-json takes accepts, changes and partly_meets (ako#2524) — an item carrying any of them was refused as an unknown field, so a decision that accepts a lint finding, or changes or partly meets a requirement, could only be captured one at a time with the flags. They are string arrays in the flags' <value>[:<reason>] form, validated per item before anything is queued with the flags' own refusals, and written exactly as the flags write them. brain staged --json now reports accepts and verdicts, as brain list --json does.Full Changelog: v0.33.0...v0.33.1
Headline: check catches far more type and reference errors before the build, native mobile apps get their navigation and widgets, and four new lint rules read the model's design. Values, variables and list operations are type-checked in microflows, a dropped attribute a document still uses is refused, and mxcli writes keys in Studio Pro's order so a first open no longer rewrites what mxcli wrote. create navigation NativePhone builds a native profile with its bottom bar, and native mobile pluggable widgets build without CE0463. New lint rules MPR016-MPR019 report overlapping domain model boxes, a one-valued Boolean flag, a model element named in a string literal and an unindexed XPath attribute; published REST services and business events gain operation-level editing; and nightly builds can be pinned and rolled back.
create navigation NativePhone, with its bottom bar (#1912) — a native profile (Navigation$NativeNavigationProfile, which has no Kind) can now be created, and the profile's { } block writes its bottom bar (NativePages$BottomBarItem), so a home page whose layout needs a bottom bar no longer stops at CE6108. The bottom bar is flat and page-only: a nested group or an OnClick other than show page is refused. An icon is a glyph (Icon: glyph <code>, Forms$GlyphIcon); a collection or image icon is refused. The shape is pinned against one Studio Pro-authored NativePhone profile (see newNativeProfileBson), so replacing a stored bottom bar is refused when one of its items holds anything else — another type, a key mxcli does not write, a non-glyph icon — instead of dropping it. Hybrid profiles remain unsupported.
alter published rest service … add operation in resource '<name>' { … } and drop operation <method> ['<path>'] in resource '<name>' (ako#2449, #1903) — one operation of a stored resource, written as create writes it, added or removed without restating the service; the resource's other operations, and everything MDL cannot spell about them, are written back as stored. An operation the resource already has, or a resource it does not have, is refused by check and exec.
A business event message's operations are its children, and one message can both publish and subscribe (ako#2490) — message X (…) { publish (Entity: M.P); subscribe (Entity: M.C, Microflow: M.H); }; writes one message with both flags and two operations; a consumed service's subscription is consume X (Entity: …, Microflow: …);. Declaring a message twice, once per operation (the only way before), stored two messages of one name and the deployment failed ("An item with the same key has already been added"); check and exec now refuse it. The keyword clauses publish entity … microflow … and consume X entity … microflow … still parse as deprecated aliases (MDL-DEPR075, MDL-DEPR076), and fmt --upgrade rewrites them.
Lint MPR019: an attribute an XPath constraint filters on with no index leading with it (ako#2407) — every such query scans the table, and nothing else reports it: mx check is clean and demo data hides it. Severity info, because whether an index earns its place depends on table size and write rate, which the model does not know; it names a candidate rather than asserting a defect.
Coverage is tested against an index's leading attribute, not membership: a composite index on (Status, Date) does nothing for a query on Date alone, and treating membership as coverage would make the rule wrong rather than merely quiet. Only attributes of the entity the XPath targets are considered — one reached across an association belongs to the other entity, and reporting it here would blame the wrong document.
Attributes carrying a Unique validation rule are treated as covered. That is an admission rather than a claim: whether Mendix also creates a database index to enforce uniqueness was not established, and it decides the question. Without the exclusion the only findings on the 900-unit Studio Pro-authored testdata/testapp were two attributes both declared unique — so at info severity, where a false candidate costs more trust than a missed one costs performance, the exclusion keeps every finding the rule makes a true one. uniqueAttributes records how to settle it.
Sort orders are not covered, though #2407 lists them: no sort column exists on any catalog table, so they need the flow and page models read. XPath constraints are the richest source and are catalogued, so they are v1 on their own.
Measured: the planted defect reports the unindexed attribute and the one that is only the second column of a composite index, while the single-column indexed attribute is not reported; adding an index leading with the reported attribute clears exactly that finding. 0 findings on testdata/pedapp, testdata/testapp-views and testdata/testapp.
Lint MPR018: a model element named inside a string literal (ako#2405) — a flow that passes 'Module.SomeFlow' as text has no reference for any checker to follow, so renaming or moving that element passes Studio Pro, mxbuild and mxcli check --references and fails at runtime. mxcli has a particular stake in it: it makes renaming cheap and scriptable, and check --references is sold as the thing that catches a stale reference. Measured on the premise itself: mxbuild reported 28 errors before the rename and 28 after, naming the renamed microflow in neither.
Two verdicts. A literal that resolves to a real element is a warning — the rename trap. A literal whose module exists but whose name resolves to nothing is info, since a string may legitimately look like a qualified name.
The precision comes from two deliberate narrowings. It reads string literals, not whole expressions: an expression's own references are dotted too ($Var/Mod.Assoc/Attr, Mod.Enum.Value) and those are real references Studio Pro renames, so scanning expressions would report every association path in a project. And it reads only the fields that hold a value — Expression, Argument, Value, matched by name through reflection so a new action type is covered when it is added — never the sibling fields that hold references (Parameter, JavaActionCallAction.JavaAction, MicroflowCall.Microflow), which would flag every call. One further test removes nearly all remaining noise: the dotted prefix must be a module the project actually has, which excludes prose, paths, URLs, CSS selectors and Java packages such as com.mendix.core.Core without enumerating any of them.
Measured: 0 findings on testdata/pedapp, on testdata/testapp-views, and on the 900-unit Studio Pro-authored testdata/testapp — the last being the real sample, since ctx.Microflows() is platform-filtered and a Marketplace-heavy project mostly measures nothing. The planted defect is reported, ordinary prose and a Java class name are not, and after renaming the named flow the warning correctly becomes the dangling-name info.
check warns about a required pluggable-widget setting left unset (MDL-WIDGET56) — a native gallery without a data source, a slider without an attribute or a repeater without content passed check and exec, then failed the build with CE0642 ("Property 'X' is required"), or CE4899 for a text. check now reads the installed package and warns about each required setting the script leaves out. A setting with a usable default, or one the widget hides in its current configuration, is not reported. Measured on the 39 native widgets placed with no settings: check reports exactly the 30 settings that mx check 11.13.0 reports.
check warns about a pluggable widget on a page of the other platform (MDL-WIDGET55) — a web widget such as combobox, datagrid or image on a native page, or a native one such as nativeslider or nativegallery on a web page. Both passed check and exec before. The platform comes from the widget's package (embedded template or the project's .mpk). A page is judged only when its layout's platform is known, from the script or the project. It is a warning: what mxbuild reports for either case is not measured.
Lint MPR017: a Boolean flag a decision tests but which can only ever hold one value (ako#2403) — the branch it guards is unreachable, and the flow reads as though it has a safety interlock when it has none. Nothing else reports it: the model is valid and the build is clean.
The test is the attribute's reachable value set — its default plus every literal any Create/Change activity assigns — not "is it ever written". The defect this comes from is a reset flag that is written, only ever to false, so a "never written" rule would have missed the case it was raised for; and a default of true with the only write false is two values, so that guard can change state once and is correctly not reported. Four exclusions keep a write the rule cannot see from reading as no write: bound to a page widget (a user may type into it), assigned from an expression rather than a literal, calculated, or not read in any condition. Writes are collected from every module including Marketplace ones, while only the project's own attributes are reported. Boolean only for now — enumerating "the literals I could see" is a far weaker claim for other types.
Blocked by ako#2417 on a project's first lint run. AttributesFor fails with "no such table: attributes" when lint builds the catalog rather than loading it, so the rule cannot see attributes until a second run. Rather than report a clean project, it refuses: "MPR017 could not run: read N entities but no attributes". The guard distinguishes "no entities, nothing to check" from "entities but no readable attributes" and is to be deleted when #2417 is fixed.
Lint MPR016: entities whose boxes cover each other on the domain model diagram (ako#2406) — the sibling of MPR008, which does this for microflow activities. The diagram is the first thing someone opening an unfamiliar app reads, and a box behind another box is a member list they never see; neither Studio Pro's check nor mxbuild reports it, because the model is valid. A pair is named as a pair, and a cluster that collides transitively is ONE finding however large — a model with every entity on one spot is 1 finding, not 325 pairs. The repair is the command the finding names, mxcli layout --only-overlapping.
Box geometry is dmlayout's own estimator (an entity stores only its top-left Location; Studio Pro derives the box when it draws, so the size is estimated from the name and member list), so the rule and the placer agree by construction rather than by being kept in step. The PREDICATE is new and deliberately not the placer's: Rect.TooClose keeps boxes a 20px clearance apart, which is what placing needs, while a finding must be true — two entities 10px apart are badly laid out and do not overlap. Rect.Intersects has no margin, and a test pins the difference.
Measured: 0 findings on testdata/pedapp and testdata/testapp-views, and 0 on 24 entities of varied name length and attribute count (0 to 21) created with no @position, so dmlayout's auto-placement, full Plan and --only-overlapping repair all satisfy the rule. Planted overlaps — a pair, a tall entity reaching the box below it, and a pile of four — are each reported, and mxcli layout --only-overlapping takes the project back to 0 by moving 5 of 10 entities. Platform modules are skipped: a rule that reads the model does not inherit the catalog's notPlatformModule filter, and before that was added the rule reported 41 System entities (LintContext.OwnedModuleNamesByID is the Go counterpart of that SQL).
check and exec refuse an agent with a Model but no SelectedModel (ako#2289) — MDL-AGENT02 is now an error, not a warning, when the agent names a Model: Studio Pro reports it as AE018 ("Model version is required for an agent"), and Agent Editor 2.2+ refuses to import any agent at startup while one is present. Behaviour change: a script that exec used to apply with a warning is now refused until it states SelectedModel: '<model id>' (or is run with --no-check). It stays a warning for an agent with no Model. A create or modify that leaves the key out still keeps a stored selected model and is not flagged, and the project check stays silent for AgentEditorCommons before 2.2. The skill, syntax help, docs and examples now give every agent with a Model a SelectedModel.docker check and fix widgets say when update-widgets resets a value instead of resyncing a widget (ako#2507) — a CE0463 caused by a script value in a property the widget's editorConfig hides was labelled "stale widget definition — mxcli fix widgets fixes it", and fix widgets cleared it by resetting the value to the widget's default without a word. docker check now names the properties update-widgets resets on that widget, and fix widgets lists every value it replaced.
widget describe says when a widget's hide rules could not be read (ako#2507) — a widget whose editorConfig.js hides properties through its own helper listed "(none discovered)", which read as "hides nothing", and a script value in such a property was CE0463 with no pointer to why. It now says the editorConfig.js is there and none of its hide calls is one mxcli reads.
check types an if with a date token in a branch as a DateTime (ako#2508) — if $P/CreatedAt = empty then [%CurrentDateTime%] else $P/CreatedAt assigned to a DateTime member was refused as a String (E009), and mxbuild builds it. An if is now typed by its branches, a date token among them.
check rejects a JSON structure custom name that Mendix refuses (ako#1258) — a custom name map or item of name such as 1bad, has space, Größe, _, an empty string, or a reserved word in any case (Owner, ChangedDate, Type, Id, class, null) passed check and exec, and the build reported CE9524 "invalid custom name". New MDL-JSON03, which needs no project. A member whose JSON key is invalid ($type, research%3Aread) still needs no custom name: its default is sanitised. Measured on MxBuild 11.16.1 over 90 names.
Lint MPR017 and MPR019 no longer report external entities, and MPR017 counts mappings as writes (ako#2501, ako#2502) — MPR019 told the owner of a frontend app to add 39 indexes, every one on an external entity whose table lives in the publishing app. MPR017 reported "can only ever be false" for an attribute assigned by a database-connection query's Map:, by an import mapping, or by an external service, none of which is a Change activity. External entities are skipped by both, and an import mapping's value elements and a query's mapped columns count as unknown writes. Export mappings, message definitions and view entities are not yet covered.
A published REST service rewrite says which operations it removes (ako#2449, #1903) — create or modify published rest service naming only a new operation deleted the stored ones, and exec said only "Modified". check and exec now warn with the operations removed (MDL-REST06), and check refuses alter … add resource with a stored resource's name and drop resource of a missing one, as exec does.
import … link works through a self-association stored as a table (ako#1686) — both junction columns were named after the one entity, so the insert failed (column "myfirstmodule$personid" … does not exist). The column names now come from mendixsystem$association, and without a row a self-association's two are numbered as Mendix names them (…personid1 parent, …personid2 child, measured on 11.12.6).
A statement appended after an activity with an error handler goes after the handler's rejoin (ako#2489) — create or modify microflow spliced it between the activity and the merge its handler rejoins, so the error path skipped the new statement, and the next exec of the unchanged script was refused (MDL-V1-REBUILD). It now goes after the merge, and the script re-runs unchanged.
check names the missing entity step in [Assoc.Attr …] (ako#2491, #1916) — an XPath constraint that joins an association and its far end's attribute with a dot ([Car_Assignment.ReturnedOn = empty]) was reported as an unknown association, and MDL047 suggested a not(…) that kept the dotted name. With -p, the access-rule and retrieve checks now say the entity step is missing and give the path ([Repro.Car_Assignment/Repro.Assignment/ReturnedOn = empty]); without a project, MDL047's suggestion offers that reading too.
A hand-written create external entity maps its attributes to the contract (ako#2497) — every attribute was stored as a local value, with no key and $top/$skip off, so mx check reported CE6612 on each attribute, CE6010 and CE6630 on a contract the bulk import builds clean. Each stated attribute is now the contract's property of that name, as the bulk import maps it. A name, type, missing key or capability that contradicts the contract is refused, and a statement with no attribute list imports them all.
OData enum properties are imported (ako#2477, #1913) — create external entities dropped a property typed as a vendor EnumType, and adding it back by hand was CE6612 (or CE4597 with an ordinary enumeration). It is now an enumeration attribute of an enumeration generated from the contract, as Studio Pro makes one. create or modify enumeration keeps such an enumeration's link to the contract, and alter entity … add attribute on an external entity is refused up front (CE6612).
describe --format elk page keeps a data grid's slot widgets (ako#2465, #1910) — a DataGrid2's column content, column filters, control bar and empty-state placeholder were missing from the JSON tree. Columns now carry children and filter, and the grid carries slots (a gallery's filters too).
check refuses a data view in a layout and a misplaced sidebar toggle (
Nightly build from main — 2026-11-22
Commit: 6176c6661
6176c66 Merge pull request #1919 from ako/main
447cd19 Merge pull request #2513 from ako/fix/ce9524-json-custom-name
055c9bc Merge pull request #2512 from ako/claude/gifted-fermi-2udffj
e003724 skill: shorten the CE9524 custom-name note to fit the skill size bound
f28a747 check: reject a JSON structure custom name Mendix refuses (CE9524, MDL-JSON03)
a85babc Merge pull request #2511 from ako/claude/verify-lint-resolved
3677acc fix(catalog): task queues and constants are not module dependencies
2d4fe1f Merge pull request #2510 from ako/fix/2501-2502-lint-external-and-mapped
4c66339 Merge pull request #2509 from ako/claude/gifted-fermi-2udffj
83aecde fix(verify): the lint stage reports fixed baseline findings as resolved
1568267 Merge branch 'mendixlabs:main' into main
fa34f15 fix(report all): give each kind a context, and survive a kind that panics
105c5fa lint: skip external entities in MPR017/MPR019, count mappings as writes in MPR017 (#2501, #2502)
8bf6011 Merge pull request #2499 from ako/claude/issue-triage-prioritization-24rqgv
21c3dad published rest: quote resource names in the operation refusals with mdlQuoted (#2449)
a089511 published rest: add and drop one operation of a stored resource (#2449)
1179408 published rest: say which operations a rewrite removes; check the alter's resources (#2449)
479051c import: name a self-association's junction columns as Mendix does (#1686)
80cd4bf splice: append after an error handler's rejoin, not before it (#2489)
0cc64df check: name the missing entity step in an [Assoc.Attr …] XPath (#2491)
This is an automated pre-release build. Use tagged releases for production.
Nightly build from main — 2026-11-21
Commit: 591bcd73e
591bcd7 Merge pull request #1915 from ako/main
fe8201f Merge pull request #2483 from ako/claude/issue-triage-prioritization-24rqgv
b949309 Merge remote-tracking branch 'origin/main' into claude/issue-triage-prioritization-24rqgv
3ff2f02 Merge pull request #2479 from ako/claude/verify-open-counts
1ad92fe Merge pull request #2475 from ako/claude/gifted-fermi-2udffj
c4ab2e7 mxcli new: say the first Studio Pro open may convert the project
8ad573f Merge pull request #2480 from ako/claude/issue-triage-prioritization-24rqgv
5e1ef91 fix(report): address the PizzaV1 review of #2475
f840223 Merge remote-tracking branch 'origin/main' into claude/issue-triage-prioritization-24rqgv
c54fa37 feat(verify): say what the pre-existing findings are
f3a524b Write every unit's keys in Studio Pro's order
def69a5 feat(report traceability): one table of every requirement
4630fe2 feat(report performance): min–max per step, and steps grouped by finding
b97c48d Merge pull request #2472 from ako/claude/gates-follow-baseline
78a494e Merge pull request #2473 from ako/claude/issue-triage-prioritization-24rqgv
a5ff311 Merge remote-tracking branch 'origin/main' into claude/issue-triage-prioritization-24rqgv
9f6ed9a Merge pull request #2471 from ako/fix/2468-verify-apply-note
beb577d Merge branch 'main' into fix/2468-verify-apply-note
4a123b4 Merge pull request #2469 from ako/fix/2468-catalog-variable-member-refs
babc790 Merge branch 'main' into fix/2468-catalog-variable-member-refs
This is an automated pre-release build. Use tagged releases for production.