pack
Package a directory of Mockzilla services into a .mockz archive to share or distribute mock setups. The manifest embeds service metadata and git info, enabling others to serve it locally or from a URL.
Instructions
Pack a directory of mockzilla services into a .mockz archive for easier distribution or sharing. The archive carries a manifest (name, description, mounts, modes, git source) so the runtime can register every service without re-walking the tree. Hand the resulting .mockz to anyone — they can serve it with serve_locally, even from a URL. Use this when the user wants to share a working mock setup, snapshot one for a teammate, or publish it.
Defaults: output is <basename>.mockz next to dir. Git metadata (remote, ref, commit) is auto-embedded when dir is inside a git tree — pass skip_git: true to suppress.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | Yes | Directory containing services / specs to pack. | |
| name | No | Display name embedded in the archive manifest. | |
| output | No | Output .mockz path. Defaults to <basename>.mockz next to dir. | |
| skip_git | No | Don't auto-embed git remote/ref/commit in the manifest. | |
| description | No | Free-text description embedded in the manifest. | |
| min_version | No | Minimum mockzilla version required to load this archive (e.g. '2.5.3'). Useful when the archive relies on newer features. |