The mmif shell commandΒΆ

mmif-python comes with a command line interface (CLI) that allows you to handle MMIF files. Many of these commands are designed to handle MMIF files in the context of CLAMS workflows.

The CLI scripts are installed as subcommands of the mmif shell command. Run the following to see the available commands or the MMIF version:

$ mmif --help
usage: mmif [-h] [-v] {describe,rewind,source,summarize} ...

options:
  -h, --help            show this help message and exit
  -v, --version         show program's version number and exit

sub-command:
  {describe,rewind,source,summarize}
    describe            Describe the workflow specification from a MMIF file or a collection of
                        MMIF files.
    rewind              provides CLI to rewind a MMIF from a CLAMS workflow.
    source              provides CLI to create a "source" MMIF json.
    summarize           Create a JSON Summary for a MMIF file.

Please take a look at the individual command documentation for more details on each command:

$ mmif <SUBCOMMAND> --help