This chapter describes all available options in the @mocks-server/main package distribution, which includes an NPM binary file and plugins for administrating the server using a REST API and an interactive CLI:
Path as <String>Path to the folder containing behaviors and fixtures to be used by the server. By default is
<Number>Port number for the Mocks Server to be listening. Default is 3100.
<String>Host for the server. Default is "0.0.0.0" (Listen to any local host).
<String>Logs level. Can be one of "silly", "debug", "verbose", "info", "warn", "error".
<Boolean>Watch behaviors folder and restart server on changes. Default is
<String>Default selected behavior when server is started.
<NumberResponses delay time in milliseconds.
<Boolean>Start interactive CLI. Default is
Each plugin can add his own options when it is registered in the mocks-server. If you are starting the server programmatically using the @mocks-server/core without adding plugins, only "Main options" will be available.
For another plugins options, please refer to their own documentation.