Skip to content
Bernard Niset edited this page Sep 18, 2022 · 3 revisions

Mimus Serve is meant to run from the command line and allows the following parameters when running it. This differs from the original WireMock.

$ mimus-serve --help

Mimus Serve

  Mimus Serve

Options

  -h, --help              Display this usage guide.
  -c, --config string     Path to the configuration file.
  -p, --port number       Specify the port to listen on.
  -H, --host string       Specify the host to listen on.
  -l, --logger string     Specify the logger to use.
  -f, --files string      Specify the path where files are located (from bodyFileName)
  -m, --mappings string   Specify the path mappings are located
  -d, --datasets string   Specify the path datasets are located
  -t, --transform         Force transforming responses using templating

Command Line parameters

-c, --config: Path to a configuration file (See Configuration)

-p, --port number: set the port number to listen to. For instance, --port 3000. Defaults to 4000.

-H, --host string: The host or IP adress to bind to. Defaults to localhost.

-l, --logger string: The logger level to use. If this parameter is not specified no logging is done. Logger values can be error, warn, info, debug. For instance, --logger info.

-f, --files string: set the path from which to find files referenced with bodyFileName. Default to ./files.

-m, --mappings string: set the path from which to find mapping files. All files with extension *.json or *.yaml are read to build the mapping configuration. Default to ./mapping.

-d, --datasets string: set the path from which to find dataset files. All files with extension *.json, *.yml or *.yaml are read to create datasets. The name of the file will be the dataset name. Default to ./datasets.

-t, --transform: Force template expansion (handlebars) for all mappings.