Problem
Understanding a module currently requires many sequential queries:
SHOW ENTITIES IN Module → get entity list
DESCRIBE ENTITY Module.X × N → get each entity definition
SHOW MICROFLOWS IN Module → get microflow list
DESCRIBE MICROFLOW Module.Y × M → get each microflow definition
- Same for pages, snippets, enumerations...
For a module with 10 entities, 20 microflows, and 15 pages, this is 45+ separate commands.
Proposal
A single command that exports all definitions in a module:
./mxcli dump -p app.mpr --module Sales
./mxcli dump -p app.mpr --module Sales --json
./mxcli dump -p app.mpr --module Sales --format mdl > sales-dump.mdl
Scope options
# Full module dump (default)
./mxcli dump -p app.mpr --module Sales
# Selective dump
./mxcli dump -p app.mpr --module Sales --only entities,microflows
./mxcli dump -p app.mpr --module Sales --exclude pages
Output
The dump would include complete MDL definitions for all elements in the module — essentially running DESCRIBE on every entity, microflow, page, snippet, enumeration, and association, concatenated into a single output.
Benefits
- 1 command replaces 45+ — dramatic reduction in round-trips
- Complete context in one shot — AI agents can load an entire module into context at once
- Exportable — MDL format output can be version-controlled or diffed
- Pairs well with
--json output (#N) for structured consumption
Priority
Medium-high — highest single-command impact for AI exploration efficiency, but depends on --json (#N) for maximum benefit.
Problem
Understanding a module currently requires many sequential queries:
SHOW ENTITIES IN Module→ get entity listDESCRIBE ENTITY Module.X× N → get each entity definitionSHOW MICROFLOWS IN Module→ get microflow listDESCRIBE MICROFLOW Module.Y× M → get each microflow definitionFor a module with 10 entities, 20 microflows, and 15 pages, this is 45+ separate commands.
Proposal
A single command that exports all definitions in a module:
./mxcli dump -p app.mpr --module Sales ./mxcli dump -p app.mpr --module Sales --json ./mxcli dump -p app.mpr --module Sales --format mdl > sales-dump.mdlScope options
Output
The dump would include complete MDL definitions for all elements in the module — essentially running DESCRIBE on every entity, microflow, page, snippet, enumeration, and association, concatenated into a single output.
Benefits
--jsonoutput (#N) for structured consumptionPriority
Medium-high — highest single-command impact for AI exploration efficiency, but depends on
--json(#N) for maximum benefit.