-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwutil.8
More file actions
247 lines (247 loc) · 4.25 KB
/
wutil.8
File metadata and controls
247 lines (247 loc) · 4.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
.\"-
.\" BSD 2-Clause License
.\"
.\" Copyright (c) 2025, Muhammad Saheed <saheed@FreeBSD.org>
.\"
.Dd August 24, 2025
.Dt WUTIL 8
.Os
.Sh NAME
.Nm wutil
.Nd "WiFi utility CLI"
.Sh SYNOPSIS
.Nm
.Op Fl h
.Nm
.Cm interfaces
.Nm
.Cm interface Ar interface
.Nm
.Op Fl c Ar wpa-ctrl-path
.Cm known-networks
.Nm
.Op Fl c Ar wpa-ctrl-path
.Cm known-network Ar SSID
.Nm
.Op Fl c Ar wpa-ctrl-path
.Cm forget Ar SSID
.Nm
.Op Fl c Ar wpa-ctrl-path
.Cm set
.Op Fl p Ar priority
.Op Fl a Brq Ar y | n
.Ar known-SSID
.Nm
.Op Fl c Ar wpa-ctrl-path
.Cm scan
.Nm
.Op Fl c Ar wpa-ctrl-path
.Cm networks
.Nm
.Op Fl c Ar wpa-ctrl-path
.Cm status
.Nm
.Op Fl c Ar wpa-ctrl-path
.Cm disconnect
.Nm
.Op Fl c Ar wpa-ctrl-path
.Cm connect
.Op Fl i Ar username
.Op Fl p Ar password
.Op Fl h
.Op Fl f Ar frequency
.Ar SSID
.Op Ar password
.Sh DESCRIPTION
.Nm
is a WiFi management CLI. It supports station-mode operations like
querying connection
.Cm status ,
.Cm scan Ns ning
access points,
listing available
.Cm networks ,
.Cm connect Ns ing
and
.Cm disconnect Ns ing
from access points. It interacts with
.Xr wpa-supplicant 8
over its control interface
and automatically updates the
.Xr wpa-supplicant.conf 5
and provides commands to
.Cm forget
and
.Cm set
options on
.Cm known-networks .
The utility also supports listing wireless
.Cm interfaces
and displaying details about a specific
wireless
.Cm interface .
The TUI interface is
.Xr wutui 8 .
.Ss Supported Subcommands and Flags
.Bl -tag -width indent
.It Fl h
.It Fl -help
Print usage information and exit.
.It Fl c Ar wpa-ctrl-path Sy Ar subcommand
.It Fl -ctrl-interface Ar wpa-ctrl-path Sy Ar subcommand
Path to
.Xr wpa_supplicant 8
control interface to use for
.Ar subcommand .
.It Xo
.Cm interfaces
.Xc
List wireless interfaces.
.It Xo
.Cm interface
.Ar interface
.Xc
Display details about the
.Ar interface .
.It Xo
.Cm known-networks
.Xc
List all previously connected known-networks.
.It Xo
.Cm known-network
.Ar SSID
.Xc
Display information about the
known-network with the specified
.Ar SSID .
.It Xo
.Cm forget
.Ar SSID
.Xc
Forget and remove the known-network with the specified
.Ar SSID .
.It Xo
.Cm set
.Op Fl p Ar priority
.Op Fl a Brq Ar y | n
.Ar known-SSID
.Xc
.It Xo
.Cm set
.Op Fl -priority Ar priority
.Op Fl -autoconnect Brq Ar yes | no
.Ar SSID
.Xc
Set the
.Ar priority
and
.Ar autoconnect
on a known-network with the specified
.Ar SSID .
.It Xo
.Cm scan
.Xc
Starts scan for available access points.
.It Xo
.Cm networks
.Xc
List available WiFi access points.
.It Xo
.Cm status
.Xc
Display current connection status information.
.It Xo
.Cm disconnect
.Xc
Disconnect from currently connected access point.
.It Xo
.Cm connect
.Op Fl i Ar username
.Op Fl p Ar password
.Op Fl h
.Op Fl f Ar frequency
.Ar SSID
.Op Ar password
.Xc
.It Xo
.Cm connect
.Op Fl -identity Ar username
.Op Fl -password Ar password
.Op Fl -hidden
.Op Fl -frequency Ar frequency
.Ar SSID
.Op Ar password
.Xc
Connect to the
.Ar SSID .
The
.Fl p
flag or argument
can be used to specify the
.Ar password
for a WPA-PSK network.
The
.Fl i
and
.Fl p
flags
can be used to specify the
.Ar username
and
.Ar password
for a WPA-EAP network. To connect to a hidden network, the
.Fl -hidden
flag is used.
The
.Fl f
flag can be used to specify the frequency (in MHz) of the
WiFi channel to use.
.El
.Sh EXAMPLES
Trigger scan for available WiFi access points:
.Dl # wutil scan
.Pp
Trigger scan for available WiFi access points with
.Xr wpa-supplicant 8
control interface path,
.Pa /var/run/wpa_supplicant/wlan0 :
.Dl # wutil -c /var/run/wpa_supplicant/wlan0 scan
.Pp
List scan results:
.Dl # wutil networks
.Pp
Connect to an open network,
.Pa Beastie-WiFi :
.Dl # wutil connect Beastie-WiFi
.Pp
Connect to a WPA-PSK network,
.Pa Beastie-WiFi
with password,
.Pa psswrd :
.Dl # wutil connect Beastie-WiFi psswrd
.Pp
Connect to a WPA-EAP network,
.Pa Beastie-WiFi
with identity,
.Pa beastie :
and password,
.Pa psswrd :
.Dl # wutil connect -i beastie -p psswrd Beastie-WiFi
.Pp
Change priority and enable autoconnect on a known-network,
.Pa Beastie-WiFi :
.Dl # wutil set -p 1 -a y Beastie-WiFi
.Pp
Forget a known-network,
.Pa Beastie-WiFi :
.Dl # wutil forget Beastie-WiFi
.Pp
Disconnect from WiFi:
.Dl # wutil disconnect
.Pp
.Sh SEE ALSO
.Xr wutui 8 ,
.Xr wpa_supplicant 8 ,
.Xr ifconfig 8
.Sh AUTHORS
.An Muhammad Saheed Aq Mt saheed@FreeBSD.org