How to use the WireMock CLI to record stubs from private endpoints
<mock_api_id>
is the ID of the Mock API that should receive the recorded stubs. At present you can get that
value by browsing into a Mock API at https://app.wiremock.cloud and extracting it from the URL - for instance in the URL
https://app.wiremock.cloud/mock-apis/33eye3l9/stubs/1e0d7dc0-06a0-49a2-81a7-f5d6a40bfa3d
, the ID is 33eye3l9
so you
should record as so:
<enter>
to save the
stubs to your Mock API in WireMock Cloud and the CLI will exit.
You can specify the port the server should listen on using -p
or --reverse-proxy-port
:
--batch-size
option to specify how frequently requests should be recorded during the session. This
requires you to specify the ID of the Mock API you want to save to via the --to
option when launching the session.