Run a simulation locally
Every simulation can run on your own machine, on the same engine that serves it in the cloud, with the same endpoints and behavior. Local runs work offline, fit into CI, and stay entirely on your machine.
Open Run locally at the bottom of the simulation's sidebar:
The view writes every command for you, filled in with your simulation's own link:
Two sources to run from
- Share URL: the short link from Share links. The commands fetch the package from the URL, so a refreshed link means an updated mock on the next start.
- Local file: the downloaded
.mockzfile, run from disk. No network needed at all.
A .mockz file is a plain gzipped tar archive of configuration: a manifest, each service's OpenAPI spec with its settings, your static endpoints. No code, nothing executable; unpack it with tar and read it if you like.
CLI
mockzilla https://mockz.io/fxygibahThe mock serves on port 2200 by default; override with --port.
If the CLI is not installed yet, the view carries the install commands, and the docs cover them too.
See Install the CLI.
Docker
docker run -p 2200:2200 mockzilla/mockzilla:latest https://mockz.io/fxygibahSame run, no install: the mockzilla/mockzilla image carries the engine. Use -p to remap the local port. For a .mockz file, mount it into the container; the Local file mode writes that command for you.
Docker Compose
The view also writes a docker-compose.yml block, so the mock runs alongside the rest of your stack:
services:
mockzilla:
image: mockzilla/mockzilla:latest
ports:
- "2200:2200"
command: ["api", "https://mockz.io/fxygibah"]