CLI Reference
moqtap <command> [options]Global options
Section titled “Global options”| Flag | Description |
|---|---|
--json | Output as JSON (where supported) |
--insecure | Accept invalid TLS certificates |
--draft <VERSION> | Force a specific MoQT draft version |
--timeout <MS> | Connection timeout in milliseconds |
--strict | Reject non-conformant messages |
-v, --verbose | Increase log verbosity |
Commands
Section titled “Commands”peek [URL]
Section titled “peek [URL]”Lightweight MoQT client for probing relays. Auto-detects transport (QUIC or WebTransport) and draft version.
# Show relay info and draft versionmoqtap peek moqt://relay.example.com
# Discover published namespacesmoqtap peek moqt://relay.example.com namespaces
# List tracks in a namespacemoqtap peek moqt://relay.example.com tracks <NAMESPACE>
# Fetch data from a trackmoqtap peek moqt://relay.example.com data <NAMESPACE> <TRACK>
# Fetch only the latest groupmoqtap peek moqt://relay.example.com data <NAMESPACE> <TRACK> latestintercept -u <RELAY>
Section titled “intercept -u <RELAY>”Transparent intercepting proxy. Sits between a MoQT client and an upstream relay, forwarding traffic unmodified while parsing every frame inline.
# QUIC listener (default 127.0.0.1:4443) proxying to upstream relaymoqtap intercept -u moqt://relay.example.com
# WebTransport listenermoqtap intercept -u moqt://relay.example.com --listen-wt
# Record session to a .moqtrace filemoqtap intercept -u moqt://relay.example.com --output session.moqtrace
# Filter to control messages onlymoqtap intercept -u moqt://relay.example.com --filter ctrl
# JSON outputmoqtap intercept -u moqt://relay.example.com --format json| Flag | Description |
|---|---|
-u, --upstream <URL> | Upstream relay URL (required) |
--listen-wt | Listen for WebTransport connections instead of QUIC |
--output <PATH> | Save session to a .moqtrace file |
--filter <TYPE> | Filter output: ctrl (control messages only), data (data streams only) |
--session <ID> | Filter to a specific session ID |
--cert <PATH> | Custom TLS certificate |
--key <PATH> | Custom TLS private key |
--format <FMT> | Output format: text (default) or json |
trace <FILE>
Section titled “trace <FILE>”Replay and inspect recorded .moqtrace files.
# Replay a trace filemoqtap trace session.moqtrace
# JSON outputmoqtap trace session.moqtrace --format json
# Hex dump modemoqtap trace session.moqtrace --hexcompletions <SHELL>
Section titled “completions <SHELL>”Generate shell completions.
moqtap completions bashmoqtap completions zshmoqtap completions fishmoqtap completions powershellmoqtap completions elvishConfiguration
Section titled “Configuration”moqtap resolves configuration in this order (first match wins):
- Inline URL argument
MOQTAP_RELAYenvironment variable.moqtap.tomlin the current directory or any parent (walks up like.gitignore)~/.config/moqtap/config.toml(Linux/macOS) or%APPDATA%\moqtap\config.toml(Windows)
URL schemes
Section titled “URL schemes”| Scheme | Transport |
|---|---|
moqt:// | Auto-detect (tries QUIC, falls back to WebTransport) |
https:// | Auto-detect (tries QUIC, falls back to WebTransport) |
quic:// | QUIC only |
wt:// | WebTransport only |
Exit codes
Section titled “Exit codes”| Code | Meaning |
|---|---|
0 | Success |
1 | Error |
2 | Connection error |