You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a58bb72
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: README.md
+24-2Lines changed: 24 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,6 +45,16 @@ Do you want to create your own policies? Please refer to our guide [Create new p
45
45
46
46
## Subcommands Reference
47
47
48
+
> Configuration-driven commands: subcommand-specific options are read from merged config (`default.yaml` + system `mxlint.yaml` + project `mxlint.yaml`). You can also pass `--config <path>` to apply a specific config file with the highest precedence. Use global `--verbose` on the root command to enable debug logging for any subcommand.
49
+
50
+
Global verbose examples:
51
+
52
+
```bash
53
+
mxlint-cli --verbose lint
54
+
mxlint-cli -v export-model
55
+
mxlint-cli -v serve
56
+
```
57
+
48
58
### export-model
49
59
50
60
Export Mendix model to yaml files. The output is a text representation of the model. It is a one-way conversion that aims to keep the semantics yet readable for humans and computers.
The `lint` command supports configuration files loaded in this order:
71
81
72
-
1. Default config: `config.yaml` baked into the executable at compile time
82
+
1. Default config: `default.yaml` baked into the executable at compile time
73
83
2. System config:
74
84
- Windows: `%USERPROFILE%/mxlint.yaml`
75
85
- Unix/Linux/macOS: `~/.config/mxlint.yaml`
76
86
- Optional override: `MXLINT_SYSTEM_CONFIG`
77
87
3.`$PROJECT/mxlint.yaml` (current working directory)
88
+
4. Optional explicit config via `--config <path>` (highest precedence, file must exist)
78
89
79
-
Project config has higher precedence than system config.
90
+
Project config has higher precedence than system config, and `--config` has the highest precedence.
80
91
81
92
Example:
82
93
@@ -130,6 +141,17 @@ mxlint-cli lint [flags]
130
141
131
142
---
132
143
144
+
### config
145
+
146
+
Show the active merged configuration and where config sources were found/used.
147
+
148
+
**Usage:**
149
+
```bash
150
+
mxlint-cli config
151
+
```
152
+
153
+
---
154
+
133
155
### serve
134
156
135
157
Run a server that exports model and lints whenever the input MPR file changes. Works in standalone mode and via integration with the Mendix Studio Pro extension.
0 commit comments