# WTFnet Commands This document lists CLI commands and supported flags. Output defaults to text; use `--json` for structured output. ## Global flags - `--json` / `--pretty`: emit JSON output (pretty-print if requested) - `--no-color` / `--quiet`: disable ANSI colors / reduce stdout output - `-v` / `-vv` / `--verbose`: increase log verbosity - `--log-level `: set log level - `--log-format `: set log format - `--log-file `: write logs to file - `NETTOOL_LOG_FILTER` or `RUST_LOG` can override log filters (ex: `maxminddb::decoder=debug`) ## sys - `sys ifaces`: list network interfaces - `sys ip` flags: `--all` (include link-local), `--iface ` (filter by interface) - `sys route` flags: `--ipv4`, `--ipv6`, `--to ` (filter by destination) - `sys dns`: show DNS configuration ## ports - `ports listen` flags: `--tcp`, `--udp`, `--port ` (filter by port) - `ports who `: find owning processes for a port - `ports conns` flags: `--top `, `--by-process` (summaries) ## neigh - `neigh list` flags: `--ipv4`, `--ipv6`, `--iface ` ## cert - `cert roots`: list trusted root certificates - `cert baseline `: write baseline JSON - `cert diff `: diff against baseline JSON ## geoip - `geoip lookup `: lookup GeoIP - `geoip status`: show GeoIP database status ## probe - `probe ping ` flags: `--count `, `--timeout-ms `, `--interval-ms `, `--no-geoip` - `probe tcping ` flags: `--count `, `--timeout-ms `, `--socks5 `, `--prefer-ipv4`, `--no-geoip` - `probe trace ` flags: `--max-hops `, `--per-hop `, `--timeout-ms `, `--udp`, `--port `, `--rdns`, `--no-geoip` ## dns - `dns query ` flags: `--server `, `--transport `, `--tls-name `, `--socks5 `, `--prefer-ipv4`, `--timeout-ms ` - `dns detect ` flags: `--servers `, `--transport `, `--tls-name `, `--socks5 `, `--prefer-ipv4`, `--repeat `, `--timeout-ms ` - `dns watch` flags: `--duration `, `--iface `, `--filter ` - `dns leak status` flags: `--profile `, `--policy ` - `dns leak watch` flags: `--duration `, `--iface `, `--profile `, `--policy `, `--privacy `, `--out `, `--summary-only`, `--iface-diag` (list capture-capable interfaces) - `dns leak report` flags: ``, `--privacy ` ## http - `http head|get ` flags: `--timeout-ms `, `--follow-redirects `, `--show-headers`, `--show-body`, `--max-body-bytes `, `--http1-only`, `--http2-only`, `--http3` (feature `http3`), `--http3-only` (feature `http3`), `--geoip`, `--socks5 ` ## tls - `tls handshake|cert|verify|alpn ` flags: `--sni `, `--alpn `, `--timeout-ms `, `--insecure`, `--socks5 `, `--prefer-ipv4`, `--show-extensions`, `--ocsp` ## discover - `discover mdns` flags: `--duration `, `--service ` - `discover ssdp` flags: `--duration ` - `discover llmnr` flags: `--duration `, `--name ` - `discover nbns` flags: `--duration ` ## diag - `diag` flags: `--out `, `--bundle `, `--dns-detect `, `--dns-timeout-ms `, `--dns-repeat ` ## calc - `calc subnet | ` - `calc contains ` - `calc overlap ` - `calc summarize `