# CLI tools to help development

**URL:** <https://forums.buildingsmart.org/t/cli-tools-to-help-development/2525>\
**Category:** Tooling\
**Created:** [March 22, 2020, 1:43pm UTC](https://forums.buildingsmart.org/t/cli-tools-to-help-development/2525 "2020-03-22T13:43:59Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![aothms](https://avatars.discourse-cdn.com/v4/letter/a/c67d28/32.png) [@aothms](https://forums.buildingsmart.org/u/aothms)\
**Post date:** [March 25, 2020, 2:17pm UTC](https://forums.buildingsmart.org/t/cli-tools-to-help-development/2525/5 "2020-03-25T14:17:03Z")

</div>

> some functions to check for IFC legality, accessible within IfcOpenShell-python, but they are not wrapped into a CLI app as far as I know.

`validate.py` checks basic attribute types and cardinalities. You can call it from the command line with `python -m ifcopenshell.validate <ifcfile>` [https://github.com/IfcOpenShell/IfcOpenShell/blob/v0.6.0/src/ifcopenshell-python/ifcopenshell/validate.py](https://github.com/IfcOpenShell/IfcOpenShell/blob/v0.6.0/src/ifcopenshell-python/ifcopenshell/validate.py)

There is also the `mvd` submodule there [https://github.com/IfcOpenShell/IfcOpenShell/tree/v0.6.0/src/ifcopenshell-python/ifcopenshell](https://github.com/IfcOpenShell/IfcOpenShell/tree/v0.6.0/src/ifcopenshell-python/ifcopenshell) that is probably be able to be ran from the command line. I’m not really sure what entry points for command line usage it defines, but that should be easy to adapt.

---

_[View the full topic](https://forums.buildingsmart.org/t/cli-tools-to-help-development/2525)._
