WireMock CLI
How to use the WireMock CLI
Overview
The WireMock CLI offers ways to get benefits of WireMock Cloud that are hard or impossible to achieve using the web interface.
The WireMock CLI is currently in beta. New commands and functionality are being added regularly.
Installation
You can install the WireMock CLI using npm:
Usage
A list of available commands can be found as follows:
For any given command, additional help can be found as follows:
e.g.
Current Commands
Login
Most commands require you to have authenticated with WireMock Cloud. You can achieve this by running:
and following the instructions.
Checking if logged in
Running
will either report the currently logged in user and exit successfully, or fail reporting that no-one is logged in.
Logout
Running
will log the current user out.
Record
See detailed documentation at Recording using the WireMock CLI