Skip to content

Quick Start

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

Quick Start

Install the CLI:

npm install -g mqgov-cli
mqgov version
mqgov doctor -o json

Create and select a broker context:

mqgov ctx set dev --backend kafka --brokers 127.0.0.1:9092
mqgov ctx use dev
mqgov ctx test

Read and preview safely:

mqgov topic list -o json
mqgov topic describe orders -o json
mqgov message peek orders --count 5 -o json
mqgov message tail orders --max-messages 10 -o json
mqgov group reset-offset billing orders --to latest --dry-run -o json

Apply a governed high-risk operation:

mqgov group reset-offset billing orders --to latest --yes --ticket OPS-123 --allow-offset-reset
mqgov audit query --since 1h -o json

Use --protected for production contexts. Protected contexts raise dangerous operations by one tier.

Clone this wiki locally