1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-30 00:35:30 +02:00
tldr/pages/linux/nmcli-device.md
2025-07-19 22:37:29 +00:00

659 B

nmcli device

Manage network interfaces and establish new Wi-Fi connections using NetworkManager. More information: https://networkmanager.pages.freedesktop.org/NetworkManager/NetworkManager/nmcli.html.

  • 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]}}