Skip to content

cli script

cli

Nzshm-model helpers for model consumers.

Usage:

cli [OPTIONS] COMMAND [ARGS]...

Options:

  --help  Show this message and exit.

config

Write an openquake hazard configuration

This is a work in progress, as it only handles the Source LT, and not GMM LT or general configuration.

Usage:

cli config [OPTIONS]

Options:

  -w, --cache_folder TEXT
  -o, --output_folder TEXT
  -m, --model_id TEXT
  --help                    Show this message and exit.

convert

Convert an old-style source logic tree defined as a python module to a new style JSON logic tree file.

Usage:

cli convert [OPTIONS] MODULE_PATH JSON_PATH

Options:

  -t, --title TEXT
  -v, --version TEXT
  --help              Show this message and exit.

fetch

Fetch SLT sources from toshi

Usage:

cli fetch [OPTIONS]

Options:

  -w, --cache_folder TEXT
  -m, --model_id TEXT
  --help                   Show this message and exit.

unpack

Usage:

cli unpack [OPTIONS]

Options:

  -w, --cache_folder TEXT
  -o, --output_folder TEXT
  -m, --model_id TEXT
  --help                    Show this message and exit.