CLI reference

Flags and subcommands for mzp / mizpah.

mizpah and mzp are the same binary.

Global / stream flags

FlagDescription
--service / -s / MIZPAH_SERVICEService name for this stdin stream (default: OTEL_SERVICE_NAME / SERVICE_NAME / project manifests such as package.json, Cargo.toml, pyproject.toml, go.mod, … / git root / directory)
--hostBind/connect host (default 127.0.0.1)
--port / -pBind/connect port (default 3149)
--max-bytesRing buffer cap in bytes (default 1073741824, hub only)
--ttl-hoursDrop logs older than this many hours (default 24, hub only; 0 disables)
--no-openDo not open a browser when starting as hub
--project / MIZPAH_PROJECTProject directory for Check with Claude/Cursor (default: hub cwd)

Durable on-disk buffer (optional) is configured in config.toml as persistDir — not a CLI flag. Segments are encrypted at rest automatically; see Storage security.

Subcommands

CommandDescription
mzp attach / attach shellEnable shell stdout/stderr capture for new interactive shells
mzp attach browserCDP console + network (alias: mzp browser attach)
mzp attach cursor / attach claudeInstall observe-only agent hooks
mzp detach / detach shell / cursor / claude / allDisable shell and/or remove agent hooks (hub left running)
mzp hub startStart a detached hub if one is not already healthy
mzp hub stopStop the hub for this port (via PID file)
mzp hub restartStop then start (clears the in-memory buffer)
mzp openOpen the web UI (hub must already be reachable)
mzp ingest / mzp filesIngest local files/globs (gzip/bzip2; optional --follow; SSH user@host:path unless secure)
mzp queryCEL query (or --group-by aggregate) against the hub
mzp sqlRun a SELECT against the hub snapshot
mzp scriptRun a line-oriented script (query / aggregate)
mzp tuiMinimal terminal UI against a running hub
mzp setupEnsure hub, install MCP configs, print skill next steps (--with-skill, --skip-mcp-install)
mzp doctorReadiness checks (binary, hub, MCP configs, npx)
mzp whyIncident summary for the last N minutes (--minutes, default 15)
mzp run -- <cmd…>Ensure hub, run command, forward stdout/stderr, emit process.exit
mzp mcpStdio MCP server (auto-starts loopback hub; or MIZPAH_URL)
mzp mcp installMerge MCP config into Cursor / Claude / Codex
mzp mcp uninstallRemove those MCP entries

See attach, streaming, storage security, and MCP for behavior details.