> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wiremock.io/llms.txt
> Use this file to discover all available pages before exploring further.

# CLI and Runner changelog

> What changed in each release of the WireMock CLI and WireMock Runner, including new features, behaviour changes and fixes.

This page lists the user-visible changes in each release of the WireMock CLI (`@wiremock/cli` on npm) and the
WireMock Runner (`wiremock/wiremock-runner` on Docker Hub). The CLI and the Runner are released together and share
a version number. Only versions that were published to npm are listed.

To upgrade the CLI, run `npm install -g @wiremock/cli@latest`. To upgrade the Runner, pull the image tag for the
version you want.

**0.55.0**

1 December 2026

### Data sources in local projects

Mock APIs whose stubs use CSV data sources now work end to end in a local project. See
[Data sources in a project](https://docs.wiremock.io/cli/data-sources.md#data-sources-in-a-project) and
[Data sources in the Runner](https://docs.wiremock.io/runner/serve.md#data-sources).

* `wiremock mock-apis pull` saves each data source that the pulled stubs use to `data-sources/<key>.csv`, and adds
  a `data_sources` entry to `wiremock.yaml`. In the stubs it writes, it refers to each data source by its local
  key in place of its WireMock Cloud ID.
* `wiremock run` and the Runner serve CSV data sources locally. With `--watch`, they reload a CSV file when you
  save it, without a restart.
* `wiremock mock-apis push` creates or updates the data sources that the pushed stubs use, and writes each one's
  `cloud_id` back to `wiremock.yaml`. Your stub files are not changed.
* Database data sources are not served locally.

### Behaviour changes

* **Pushing a stub that uses a data source now needs that data source in `wiremock.yaml`.** If a project was
  pulled with an older version, its stubs still refer to data sources by Cloud ID, and the push fails with
  `references data source '<id>', which is not defined in wiremock.yaml`. To fix this, pull the mock API again
  with this version.
* **Stubs that use a database data source can no longer be pushed from a project.** Edit those stubs in WireMock
  Cloud instead.
* **Use this version everywhere a project runs once you have pulled with it.** Older versions can't resolve a
  data source's local key, so stubs that use a data source will not match in an older `wiremock run` or Runner
  image.
* `wiremock templates sync` now fails when a service has a `path` in `wiremock.yaml` and there is no
  `stub-mappings.yaml` file at that path. Before, it published the template with no stubs.

### Improvements

* `wiremock run` starts faster for projects with many services.

**0.54.0**

27 October 2026

### Running the CLI in CI

You can now configure the CLI with environment variables, so that a CI job needs no interactive login and no
config file.

| Variable | What it does |
| - | - |
| `WMC_API_TOKEN` | The API token to use. It takes precedence over a stored login. |
| `WMC_API_ENDPOINT` | The WireMock Cloud API endpoint to use. It takes precedence over the stored setting. |
| `WMC_CONFIG_DIR` | The directory the CLI keeps its config in. It is created if it doesn't exist. |
| `WMC_LOG_DIR` | The directory the CLI writes its logs to. It is created if it doesn't exist. |
| `WMC_CLIENT` | The name of the integration that is calling the CLI, such as a CI plugin. |

Give each build its own `WMC_CONFIG_DIR` and `WMC_LOG_DIR` to stop concurrent builds on one agent from sharing
settings. `wiremock whoami` and `wiremock config set` tell you when the token from the environment is in use.

### New options

* `wiremock run --random-ports` serves every service on a free port in place of its configured one, so that two
  runs of the same project don't clash.
* `wiremock run --exit-on-stdin-close` stops the services and exits when stdin is closed, so that a parent
  process can stop the CLI however it ends.
* `wiremock run` prints a message when all services are ready to receive requests.
* `--state-file <path>` on `wiremock run` and `wiremock mock-apis push` writes a JSON file that describes the mock
  APIs, including their base URLs.
* `--render <source>:<target>` on the same commands renders a Handlebars template file with the base URLs of the
  mock APIs. Use it to generate the config file that your tests read.
* `wiremock templates search` searches the API templates available to you.

**0.53.2**

26 October 2026

### Improvements

* When a command fails, the CLI now prints the error details that WireMock Cloud reported in place of
  "An unexpected error occurred". Connection failures print their cause.
* Every tool in the CLI's MCP server now declares whether it is read-only or destructive. AI clients no longer
  treat read-only tools as destructive, and clients that require these declarations, such as ChatGPT, accept the
  tools.

### Fixes

* A response body with a non-UTF-8 charset in its `Content-Type` header is no longer corrupted when its body
  file is written and read back, for example on a pull followed by a push.

### Security

* The CLI and Runner Docker images no longer trust the compromised eMudhra certificate authorities, and now run
  on Java 27.
* When the npm package downloads its own Java runtime, it now downloads Java 27, replaces any older runtime it
  downloaded before, and removes trust in the same certificate authorities. A Java installation of your own is
  not changed.

**0.53.0**

2 October 2026

### License files in the Runner

* The Runner now reads a license file, using the same rules as the CLI. It looks for
  `/etc/wiremock-runner/license.txt`, or for the path in the new
  [`WMC_LICENSE_FILE`](https://docs.wiremock.io/runner/environment-variables#wmc_license_file) environment variable.
* With an unlimited license, the Runner starts and serves mocks with no connection to WireMock Cloud. It makes no
  usage checks and reports no usage.
* The Runner refuses to start when `WMC_LICENSE_FILE` is blank or names a file that doesn't exist, or when the
  license file can't be read or isn't a recognisable license.

### Fixes

* A garbled or unreadable `license.txt` no longer crashes the CLI. It is treated as an invalid license.
* When the Runner can't reach WireMock Cloud at startup, it now exits with a clear message. Switching to
  `record-many` mode while WireMock Cloud is unreachable returns a `502` response and leaves the current mode
  running.

**0.52.0**

25 September 2026

### Response bodies in separate files

* The CLI now writes each stub's response body to a file in the service's `__files` directory, and refers to it
  from the stub with `bodyFileName`. This keeps `stub-mappings.yaml` small and makes bodies easier to edit and
  review. Stubs that already have an inline body in an existing file keep it.

### Improvements

* `wiremock mock-apis pull` no longer writes WireMock Cloud's internal metadata or `persistent: true` to the
  stubs it saves, so `stub-mappings.yaml` contains only what you authored. Your own metadata is kept.
* `StubMappingTransformer` extensions in the extensions folder are now loaded, and are applied to the stubs
  created by a local recording.
* The npm package is smaller.

### Fixes

* `wiremock run` now exits straight away on a startup error that can't be recovered from, in place of retrying.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.