Code Navigation
mxcli provides a suite of cross-reference navigation commands that let you explore relationships between elements in a Mendix project. These commands answer questions like “what calls this microflow?”, “what would break if I change this entity?”, and “what does this element depend on?”
Prerequisites
Cross-reference navigation commands require a full catalog refresh before use:
REFRESH CATALOG FULL
This populates the reference data needed for callers, callees, references, impact, and context queries. A basic REFRESH CATALOG only builds metadata tables and is not sufficient for cross-reference navigation.
Available Commands
| Command | Purpose |
|---|---|
SHOW CALLERS OF | Find what calls a given element |
SHOW CALLEES OF | Find what a given element calls |
SHOW REFERENCES OF | Find all references to and from an element |
SHOW IMPACT OF | Analyze the impact of changing an element |
SHOW CONTEXT OF | Show the surrounding context of an element |
SEARCH | Full-text search across all strings and source |
CLI Subcommands
These commands are also available as CLI subcommands for scripting and piping:
mxcli callers -p app.mpr Module.MyMicroflow
mxcli callees -p app.mpr Module.MyMicroflow
mxcli refs -p app.mpr Module.Customer
mxcli impact -p app.mpr Module.Customer
mxcli context -p app.mpr Module.MyMicroflow --depth 3
mxcli search -p app.mpr "validation"
Typical Workflow
- Refresh the catalog to ensure cross-reference data is current
- Explore references to understand how elements are connected
- Analyze impact before making changes
- Use context to gather surrounding information for AI-assisted development
-- Step 1: Build the catalog
REFRESH CATALOG FULL;
-- Step 2: Understand what uses a microflow
SHOW CALLERS OF Sales.ACT_ProcessOrder;
-- Step 3: Check impact before renaming an entity
SHOW IMPACT OF Sales.Customer;
-- Step 4: Gather context for AI consumption
SHOW CONTEXT OF Sales.SubmitOrder;
How AI Assistants Use This
When you ask an AI assistant to modify an element, it uses these commands to:
- Discover dependencies with
SHOW CALLERSandSHOW REFERENCES - Assess risk with
SHOW IMPACTbefore making changes - Gather context with
SHOW CONTEXTfor informed code generation - Find related elements with
SEARCHto understand patterns