How to use the WireMock CLI to record in a non-interactive way
0.28.0
, the WireMock CLI supports running recording commands in non-interactive mode, making it ideal
for CI/CD pipelines and automated environments where user interaction is not possible or desired. The CLI automatically
detects whether it’s running in an interactive terminal and adjusts its behavior accordingly.
summary
- shows incoming requests during recordingoff
- minimal console output for cleaner logs. This can still be
overridden with the --request-log-level
option.pkill
for Terminationpkill
with the SIGTERM signal:
record
command, but the same approach applies to record-many
. They also show output
redirection to a log file.