commands.sh

nmcli device

linux

Manage network interfaces and establish new Wi-Fi connections using NetworkManager.

More info →

Options (6)

boolean

Print the statuses of all network interfaces

Example: nmcli {{[d|device]}}
boolean

Print the available Wi-Fi access points

Example: nmcli {{[d|device]}} {{[w|wifi]}}
boolean

Connect to a Wi-Fi network with the specified SSID (you will be prompted for a password)

Example: nmcli {{[d|device]}} {{[w|wifi]}} {{[c|connect]}} {{ssid}} {{[-a|--ask]}}
-a, --askboolean

Connect to a Wi-Fi network with the specified SSID (you will be prompted for a password)

Example: nmcli {{[d|device]}} {{[w|wifi]}} {{[c|connect]}} {{ssid}} {{[-a|--ask]}}
boolean

Print the password and QR code for the current Wi-Fi network

Example: nmcli {{[d|device]}} {{[w|wifi]}} {{[s|show-password]}}
boolean

Print detailed information about a device

Example: nmcli {{[d|device]}} {{[sh|show]}} {{wlan0}}

Examples (5)

Print the statuses of all network interfaces

nmcli [d|device]

Print the available Wi-Fi access points

nmcli [d|device] [w|wifi]

Connect to a Wi-Fi network with the specified SSID (you will be prompted for a password)

nmcli [d|device] [w|wifi] [c|connect] ssid [-a|--ask]

Print the password and QR code for the current Wi-Fi network

nmcli [d|device] [w|wifi] [s|show-password]

Print detailed information about a device

nmcli [d|device] [sh|show] wlan0
made by @shridhargupta | data from tldr-pages