mb replay [options]

The replay command is a convenience that removes all proxies, effectively switching from record mode to replay mode. Assuming mountebank is running on port 3000, you would run the following command:

mb replay --port 3000

That will reset the imposter configuration by sending a PUT command to /imposters based on the current configuration, excluding the proxies (using the ?removeProxies=true query parameter). The following options are available:

Option Description Default
--port 2525 The port of the running the mountebank server 2525
--host mbserver.local The hostname of the running mountebank server localhost
--rcfile .mbrc The run commands file containing startup configuration (a JSON-equivalent representation of the command line arguments). When the same option is listed in both the rcfile and the command line, the command line option takes precedence. N/A
--help Show help for the command N/A