# Model validation output from CLI

**URL:** <https://forum.sensmetry.com/t/model-validation-output-from-cli/516>\
**Category:** Feature Requests\
**Created:** [June 28, 2026, 12:17am UTC](https://forum.sensmetry.com/t/model-validation-output-from-cli/516 "2026-06-28T00:17:48Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Richard\_Wallace](https://yyz2.discourse-cdn.com/flex008/user_avatar/forum.sensmetry.com/richard_wallace/32/307_2.png) [@Richard\_Wallace](https://forum.sensmetry.com/u/Richard_Wallace)\
**Post date:** [June 28, 2026, 12:17am UTC](https://forum.sensmetry.com/t/model-validation-output-from-cli/516/1 "2026-06-28T00:17:48Z")

</div>

This note is about the example at [https://docs.sensmetry.com/automator/first\_example.html#automator-first-example](https://model%20validation%20first%20example) .

The text reads:

## **Model Validation**

Before working with the model, it’s important to validate it. To validate your model, open a terminal in the directory containing your model and run:

```auto
python -m syside check example_model.sysml

```

This command will check for any semantic errors or warnings in your model. After running, you should see the following output:

```auto
Checks passed!

```

While the python invocation works, no output is produced the “Checks passed!” does not occur.

To ensure I was actually having the check executed, I made some errors in the file

part Chassis {

part Suspension : xxxMechanical;

part Body : Mechanical;

}

and the **python -m syside check example\_model.sysml** invocation returned:

> ```auto
> python -m syside check example_model.sysml
> example_model.sysml:12:29: ←[38;2;220;080;080merror←[0m (reference-error): No Type named 'xxxMechanical' found.
> 12 | part Suspension : xxxMechanical;
> | ←[38;2;220;080;080m^^^^^^^^^^^^^←[0m
> 
> ```

Which was expected. Does the web page need updating or is there some user error that suppressed the “Checks passed!” message?

Cheers,

Richard Wallace

---

<div class="post-metadata">

**Author:** ![Daumantas](https://yyz2.discourse-cdn.com/flex008/user_avatar/forum.sensmetry.com/daumantas/32/19_2.png) [@Daumantas](https://forum.sensmetry.com/u/Daumantas)\
**Post date:** [June 29, 2026, 1:18pm UTC](https://forum.sensmetry.com/t/model-validation-output-from-cli/516/2 "2026-06-29T13:18:59Z")

</div>

Hi Richard,

Thanks for the suggestion. Indeed, there is currently no default output on success, while failures only print diagnostics. Success and failure are determined by the exit code instead. Otherwise, you can pass `-s/--stats` option to print per file diagnostic counts and totals.

I will add a minimal output for the next release.

---

<div class="post-metadata">

**Author:** ![Richard\_Wallace](https://yyz2.discourse-cdn.com/flex008/user_avatar/forum.sensmetry.com/richard_wallace/32/307_2.png) [@Richard\_Wallace](https://forum.sensmetry.com/u/Richard_Wallace)\
**Post date:** [June 29, 2026, 7:37pm UTC](https://forum.sensmetry.com/t/model-validation-output-from-cli/516/3 "2026-06-29T19:37:50Z")

</div>

Hi Daumantas,

Try as I might, I don’t see a way to pass “-s/–stats” from the CLI. Could you please expand your answer to show this as a complete command line? Thank you.

---

<div class="post-metadata">

**Author:** ![Daumantas](https://yyz2.discourse-cdn.com/flex008/user_avatar/forum.sensmetry.com/daumantas/32/19_2.png) [@Daumantas](https://forum.sensmetry.com/u/Daumantas)\
**Post date:** [June 30, 2026, 5:48am UTC](https://forum.sensmetry.com/t/model-validation-output-from-cli/516/4 "2026-06-30T05:48:49Z")

</div>

It is a CLI option, e.g.

```sh
syside check --stats

```

It can be passed anywhere on the command line, before, after, or in between positional paths.

---

<div class="post-metadata">

**Author:** ![Richard\_Wallace](https://yyz2.discourse-cdn.com/flex008/user_avatar/forum.sensmetry.com/richard_wallace/32/307_2.png) [@Richard\_Wallace](https://forum.sensmetry.com/u/Richard_Wallace)\
**Post date:** [June 30, 2026, 3:45pm UTC](https://forum.sensmetry.com/t/model-validation-output-from-cli/516/5 "2026-06-30T15:45:39Z")

</div>

Thank you Daumantas,

What was tripping me up was the `-s/` in the original reply. I didn’t realize you meant for the trailing slash as an “or” between the two. From [CLI Commands](https://docs.sensmetry.com/modeler/cli/commands.html) , the option after `check` was either`-s`, or `--stats`. I’ve verified that this does work. Best to point to that web page for answers to silly CLI questions, like mine.

Also note that the output from the command is using ANSI terminal encoding. It would be best to document that for the CLI.

For Windows systems, the command, as administrator, would be:

`REG ADD HKCU\Console /v VirtualTerminalLevel /t REG_DWORD /d 1`

There is a `--color no` option which does not use the ANSI encoding which would preclude the Windows Registry edit.

Cheers,  
Richard

---

<div class="post-metadata">

**Author:** ![Daumantas](https://yyz2.discourse-cdn.com/flex008/user_avatar/forum.sensmetry.com/daumantas/32/19_2.png) [@Daumantas](https://forum.sensmetry.com/u/Daumantas)\
**Post date:** [July 1, 2026, 5:50am UTC](https://forum.sensmetry.com/t/model-validation-output-from-cli/516/6 "2026-07-01T05:50:13Z")

</div>

> [@Richard\_Wallace](#):
>
> Best to point to that web page for answers to silly CLI questions, like mine.

Up to date `help` is also available on the CLI through either `syside <command>... -h/--help` or `syside help <command>...`.

> [@Richard\_Wallace](#):
>
> Also note that the output from the command is using ANSI terminal encoding.

Technically, the colour output is chosen automatically based on what the standard streams point to, e.g. coloured if `stdout` is a terminal (TTY), and plain text otherwise.

---

<div class="post-metadata">

**Author:** ![Richard\_Wallace](https://yyz2.discourse-cdn.com/flex008/user_avatar/forum.sensmetry.com/richard_wallace/32/307_2.png) [@Richard\_Wallace](https://forum.sensmetry.com/u/Richard_Wallace)\
**Post date:** [August 16, 2026, 7:20pm UTC](https://forum.sensmetry.com/t/model-validation-output-from-cli/516/7 "2026-08-16T19:20:46Z")

</div>

Thank you Daumantas,

What was tripping me up was the “/s” in the original reply. From [CLI Commands](https://docs.sensmetry.com/modeler/cli/commands.html) , the option after check was either`-s`, or `--stats`I’ve verified that this does work.
