nmcli-device
TLDR
Show status of all network interfaces
$ nmcli device
List available Wi-Fi networks$ nmcli device wifi
Connect to a Wi-Fi network$ nmcli device wifi connect ssid --ask
Show password and QR code for current Wi-Fi$ nmcli device wifi show-password
Show detailed information about a device$ nmcli device show wlan0
SYNOPSIS
nmcli device {status|show|set|connect|reapply|modify|disconnect|delete|monitor|wifi|lldp} [ARGUMENTS]
DESCRIPTION
nmcli device manages network interfaces using NetworkManager. It can show device status, connect to networks, manage Wi-Fi connections, and control interface state.
PARAMETERS
-a, --ask
Prompt for password when connecting--rescan auto|no|yes
Control Wi-Fi scanning before listingifname
Network interface name (eth0, wlan0, etc.)
COMMANDS
status
Print status of all network devicesshow [ifname]
Display detailed information about a deviceset ifname [property value]
Set device properties (autoconnect, managed)connect ifname
Connect a devicereapply ifname
Reapply connection settings to a devicedisconnect ifname
Disconnect a devicedelete ifname
Delete a software devicemonitor [ifname]
Monitor device activitywifi list
List available Wi-Fi access pointswifi connect ssid
Connect to a Wi-Fi networkwifi rescan
Request a Wi-Fi scanwifi show-password
Show password for current Wi-Fi connectionlldp [list]
Show LLDP neighbors
CAVEATS
Wi-Fi operations require the NetworkManager daemon to be running and the device to be managed. Use --ask with wifi connect to interactively enter the password.
HISTORY
Part of the nmcli command-line interface for NetworkManager. Provides device-level network management.


