Skip to content

Command Reference

江河 edited this page Jul 1, 2026 · 1 revision

Command Reference

Use mqgov <noun> <verb> --help for exact flags. Use -o json for machine-readable output.

Metadata

mqgov version
mqgov capabilities -o json
mqgov doctor -o json
mqgov install <agent> --skills

Topic

mqgov topic list -o json
mqgov topic describe <topic> -o json
mqgov topic create <topic> --partitions 3 --yes
mqgov topic alter <topic> --partitions 6 --yes --ticket <t>
mqgov topic purge <topic> --dry-run -o json
mqgov topic purge <topic> --yes --ticket <t> --allow-topic-purge
mqgov topic delete <topic> --yes --ticket <t> --allow-topic-delete

Group

mqgov group list -o json
mqgov group lag <group> <topic> -o json
mqgov group reset-offset <group> <topic> --to latest --dry-run -o json
mqgov group reset-offset <group> <topic> --to latest --yes --ticket <t> --allow-offset-reset

Message and DLQ

mqgov message peek <topic> --count 5 -o json
mqgov message tail <topic> --max-messages 10 -o json
mqgov message mirror <source-topic> --to-context <ctx> --to-topic <topic> --limit 100 --dry-run -o json
mqgov message produce <topic> --body "hello" --yes

mqgov dlq list -o json
mqgov dlq peek <dlq> --count 5 -o json
mqgov dlq redrive <dlq> --target <live-topic> --dry-run -o json
mqgov dlq purge <dlq> --dry-run -o json

ACL and Schema

mqgov acl list -o json
mqgov acl grant --principal User:svc --resource-type topic --resource-name orders --pattern literal --operation read --permission allow --yes --ticket <t>
mqgov acl revoke --principal User:svc --resource-type topic --resource-name orders --pattern literal --operation read --permission allow --yes --ticket <t> --allow-destructive-acl

mqgov schema list -o json
mqgov schema describe <subject-or-topic> --version latest -o json
mqgov schema check <subject-or-topic> --schema-file ./next.avsc --schema-type AVRO -o json
mqgov schema register <subject-or-topic> --schema-file ./next.avsc --schema-type AVRO --yes -o json
mqgov schema delete <subject-or-topic> --yes --ticket <t> --allow-schema-delete -o json

Fleet and Audit

mqgov fleet status --all -o json
mqgov fleet topics --contexts dev,staging --pattern orders -o json
mqgov audit query --since 24h -o json
mqgov audit verify --strict -o json
mqgov audit prune --before 30d --confirm -o json

Clone this wiki locally