Command-line Interface

Quick Reference

Commands

Cli Differences

In datamodel 0.2.1, the command-line tools switched from argparse to click for improved cli handling and consolidation of sub-commands under an umbrella cli. The behavior and syntax is mostly the same with the exception of the following:

  • commands are no longer snake case, but rather two separate words. i.e. datamodel_generate -> datamodel generate

  • each -k, --keywords argument to datamodel generate must now be specified individually, as click does not allow the equivalent of narg="*". See click multiple vs argparse nargs. i.e. -k plate=8485 ifu=1901 -> -k plate=8485 -k ifu=1901

For backwards compatibility, we retain the original snake_case scripts, which call the underlying click command. If you pip-install the datamodel product, you can call ``