2025-03-14 21:59:59 -06:00
|
|
|
# nmcli device
|
|
|
|
|
|
|
|
|
|
> Manage network interfaces and establish new Wi-Fi connections using NetworkManager.
|
2025-09-14 18:48:49 -06:00
|
|
|
> More information: <https://networkmanager.pages.freedesktop.org/NetworkManager/NetworkManager/nmcli.html#device>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Print the statuses of all network interfaces:
|
|
|
|
|
|
2025-09-14 18:48:49 -06:00
|
|
|
`nmcli {{[d|device]}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Print the available Wi-Fi access points:
|
|
|
|
|
|
2025-09-14 18:48:49 -06:00
|
|
|
`nmcli {{[d|device]}} {{[w|wifi]}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Connect to a Wi-Fi network with the specified SSID (you will be prompted for a password):
|
|
|
|
|
|
2025-09-14 18:48:49 -06:00
|
|
|
`nmcli {{[d|device]}} {{[w|wifi]}} {{[c|connect]}} {{ssid}} {{[-a|--ask]}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Print the password and QR code for the current Wi-Fi network:
|
|
|
|
|
|
2025-09-14 18:48:49 -06:00
|
|
|
`nmcli {{[d|device]}} {{[w|wifi]}} {{[s|show-password]}}`
|
|
|
|
|
|
|
|
|
|
- Print detailed information about a device:
|
|
|
|
|
|
|
|
|
|
`nmcli {{[d|device]}} {{[sh|show]}} {{wlan0}}`
|