Exit codes
ndui uses stable, documented exit codes so scripts and CI can react precisely.
| Code | Meaning |
|---|---|
0 | Success |
1 | Generic error |
2 | Usage error (bad flags, missing required args) |
10 | Registry unreachable and no usable cache |
11 | Manifest failed schema validation |
20 | Project structure is incompatible with Studio (e.g. unsupported SDK) |
21 | Program.cs non-standard; CLI could not safely edit |
30 | ndui doctor found blocking errors |
Use ndui --json to get a machine-readable envelope alongside the exit code.