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:

npm install --global @wiremock/cli

Usage

A list of available commands can be found as follows:

wiremock -h

For any given command, additional help can be found as follows:

wiremock <command> -h

e.g.

wiremock record -h

Current Commands

Login

Most commands require you to have authenticated with WireMock Cloud. You can achieve this by running:

wiremock login

and following the instructions.

Checking if logged in

Running

wiremock whoami

will either report the currently logged in user and exit successfully, or fail reporting that no-one is logged in.

Logout

Running

wiremock logout

will log the current user out.

Record

See detailed documentation at Recording using the WireMock CLI