Bin name: open-wifi. Version: 0.0.3 (matches projects/packages/open-wifi/package.json).
open-wifi <command> [options]
Every command accepts the global flags below; each command also prints its own
help with open-wifi <command> --help.
| Global flag | Effect |
|---|---|
--json |
Emit one wae.cli-result/v0 JSON envelope on stdout instead of text |
--locale <id> |
Choose a locale: en-US (default) or zh-Hans |
--no-interactive |
Never prompt (none of the commands prompt today) |
Scan nearby access points and print a table. Filters nothing: one row per BSSID.
open-wifi scan
open-wifi scan --jsonHuman output: a header (source, interface, count) followed by columns
SSID BSSID SIGNAL CHANNEL BAND SECURITY RADIO.
Scan once, then print per-channel occupancy and the recommended channel per band.
open-wifi channels
open-wifi channels --jsonHuman output: a table (BAND CHANNEL COUNT AVG SIGNAL OCCUPANCY) plus a
recommendations: list. 2.4 GHz is limited to channels 1, 6 and 11.
Print the neighbours the operating system already knows about.
open-wifi devices
open-wifi devices --jsonColumns: IP MAC INTERFACE STATE. No probe is sent.
Ping one host and measure loss, round-trip time and optional DNS resolution.
open-wifi diagnose
open-wifi diagnose --host 192.168.1.1
open-wifi diagnose --host example.com --count 8 --dns example.com
open-wifi diagnose --json| Option | Default | Meaning |
|---|---|---|
--host <host> |
1.1.1.1 |
Host name or address to ping |
--count <n> |
4 |
Echo requests to send, clamped to 1..=20 |
--dns <name> |
none | Name whose resolution time is measured |
--count must be a positive integer; anything else exits with a usage error.
Scan once, then audit the passive beacon facts of one SSID.
open-wifi audit --ssid HomeNet
open-wifi audit --ssid HomeNet --json--ssid <name> is required. The SSID must be spelled as scan prints it; a
missing SSID produces an ssid-not-found info finding instead of a failure.
Each finding prints its severity, code, message and remediation, followed by the
disclaimer that names what the audit did not check.
Render a saved or fresh scan as Markdown or JSON.
open-wifi report
open-wifi report --format md --out survey.md
open-wifi report --input saved-scan.json --format json --out survey.json
open-wifi report --format json| Option | Default | Meaning |
|---|---|---|
--input <file> |
none | Read a saved ScanReport JSON instead of scanning |
--format <fmt> |
md |
md or json |
--out <file> |
none | Write the rendered report here instead of stdout |
Without --out, the rendered text goes to stdout. With --out, the command
writes the file and emits { format, out, bytes } as its result.
open-wifi version
open-wifi version --jsonHuman output: open-wifi 0.0.3 · engine 0.0.3 (the engine part is omitted when
no addon is installed). JSON: { "package": "0.0.3", "engine": "0.0.3" | null }.
open-wifi capabilities
open-wifi capabilities --jsonPrints the engine identity, supported features, the platform helper command for
each report, the checks this build does not attempt and the authorised-use
statement. This command fails with capability/not-implemented when no addon is
installed, because the matrix belongs to the engine.
open-wifi guiOpens the native window when this build bundles window assets under
dist/gui. The CLI-only build in this repository does not, so the command
reports a missing folder and exits non-zero.
# Survey, then plan a channel
open-wifi report --format md --out survey.md
open-wifi channels
# Check the gateway and a name resolver
open-wifi diagnose --host 192.168.1.1 --count 6 --dns example.com
# Audit one SSID from the current scan
open-wifi audit --ssid "Office 5G"
# Machine-readable results for a script
open-wifi scan --json | jq '.data.accessPoints | length'| Code | Meaning |
|---|---|
0 |
The command completed. |
1 |
Execution or protocol failure, including a missing addon. |
2 |
Usage error: unknown command/option, missing required option. |
3 |
Capability error: the environment cannot serve the request. |
4 |
A prompt was canceled (no current command prompts). |
5 |
An external action is required (reserved; not used today). |
With --json, stdout carries exactly one object:
{
"schema": "wae.cli-result/v0",
"ok": true,
"data": { "interface": "Wi-Fi", "accessPoints": [], "source": "netsh" }
}Failures use the same schema with "ok": false and an error object carrying
the stable code and message. Never parse the human table; use --json.