Skip to content
Volodymyr Ladnik edited this page Sep 25, 2018 · 1 revision

CLI Mimic is a headless version of Mimic, that doesn't provide most of the Desktop version functionality, but it can run on CI servers, impersonate the same services and report request/response data.

How To Use

  1. After you defined all services you need in the Desktop version of Mimic, you can export them as a json file by navigating through File>"Export Services..." in the main menu and selecting the ones you need. Mimic will export service definitions and all responses associated with them.
  2. Then you can commit generated JSON file into your repo test fixtures folder.
  3. You can install CLI version of Mimic into you CI container with npm install -g @creditkarma/mimic-cli command. It will add mimic command into your shell
  4. By running mimic path/to/exported/services.mimic you can start the same services in the CI environment.
  5. Besides that CLI Mimic will report all request/response data into STDOUT and errors into STDERR, which you can log or discard.
Clone this wiki locally