LinuxCommandLibrary

nmcli-device

Hardware device management with NetworkManager.

TLDR

Print the statuses of all network interfaces

$ nmcli device status
copy


Print the available Wi-Fi access points
$ nmcli device wifi
copy


Connect to the Wi-Fi network with a specified name and password
$ nmcli device wifi connect [ssid] password [password]
copy


Print password and QR code for the current Wi-Fi network
$ nmcli device wifi show-password
copy

Copied to clipboard