The CLI provides commands for interacting with your mock APIs in WireMock Cloud.

Listing Mock APIs

You can list your mock APIs using:

wiremock mock-apis list

This will display your mock APIs in a human-readable text format. By default, it shows up to 20 results on the first page.

Options

The list command supports several options to customize the output:

  • --limit=<int> - Set the maximum number of mock APIs to return (default: 20)
  • --page=<int> - Select which page of results to show (default: 1)
  • --query=<text> - Filter mock APIs using a search query
  • -o, --output=(text|json) - Choose between text or JSON output format (default: text)

Examples

List first 5 mock APIs:

wiremock mock-apis list --limit 5

Search for mock APIs containing “test”:

wiremock mock-apis list --query test

Get results in JSON format:

wiremock mock-apis list --output json