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 a Wi-Fi network with the specified SSID (you will be prompted for a password)
$ nmcli --ask device wifi connect [ssid]
copy


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

Copied to clipboard