Mock Config logoMock config

Run

Start mock-config-server from the command line

Usage

npx mock-config-server [options]

Starts a mock server in the current directory using a configuration file mock-server.config.(js|ts).

If the package is already installed, you can use the short command mcs

Options

OptionShortDescriptionDefault value
--baseUrl-bSpecify the base URL path from config. Must start with /./
--port-pSpecify the server port from config.31299
--staticPath-sSpecify the static assets path from the config. Must start with /.
--config-cSet path to the config file.mock-server.config.(js|ts)
--watch-wEnables server restart when config file changes.false
--help-hDisplay help for the command.
--version-vDisplay the mock-config-server version.

On this page