| name | mezmo-cli |
| description | Investigates Mezmo logs, streams live Mezmo data, inspects accounts, views, and categories, manages view/category resources, and uses the Mezmo assistant via the mzm CLI. Use when the user wants Mezmo platform work done from the terminal. |
Mezmo CLI
Use mzm for Mezmo platform workflows from the terminal.
Prerequisites
- Confirm
mzm is installed before attempting Mezmo work: mzm version
- Confirm
MZM_ACCESS_KEY is set before any API call: printenv MZM_ACCESS_KEY
- If either prerequisite is missing, tell the user what is missing and stop. Do not invent an unsupported fallback transport.
Quick Start
mzm get account
mzm get category
mzm get view
mzm log search "level:error" --from "1h ago" --to "now"
mzm log tail --app production --level error
mzm log search --with-view "production-errors" --from "1h ago"
mzm ask "How do I filter logs by timestamp?"
Working Style
- Start read-only. Prefer
mzm get ..., mzm log search, and mzm log tail before any mutation.
- Inspect the current state before editing or deleting views/categories. Resolve names to IDs first when the change is high-risk.
- Prefer structured output when another command or script will consume the result:
mzm get view -o json
mzm get view -q
mzm get account -q
- Use saved views for repeat investigations instead of retyping the same filters.
- Use
mzm ask when the user wants Mezmo product guidance or wants to continue an existing Mezmo assistant thread with mzm ask --continue.
Reference Files