Theme

Base Usage

CLI

Mimus Serve is a command-line tool that provides a range of parameters to customize its behavior. These parameters allow you to configure various aspects of the tool's functionality, which sets it apart from the original WireMock.

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.

Previous
Roadmap