2020-03-06 17:10:05 +00:00
|
|
|
# nmcli device
|
|
|
|
|
|
|
|
> Hardware device management with NetworkManager.
|
2022-03-09 04:31:08 +00:00
|
|
|
> More information: <https://networkmanager.dev/docs/api/latest/nmcli.html>.
|
2020-03-06 17:10:05 +00:00
|
|
|
|
|
|
|
- Print the statuses of all network interfaces:
|
|
|
|
|
|
|
|
`nmcli device status`
|
|
|
|
|
|
|
|
- Print the available Wi-Fi access points:
|
|
|
|
|
|
|
|
`nmcli device wifi`
|
|
|
|
|
|
|
|
- Connect to the Wi-Fi network with a specified name and password:
|
|
|
|
|
|
|
|
`nmcli device wifi connect {{ssid}} password {{password}}`
|
2021-01-28 10:08:26 +00:00
|
|
|
|
|
|
|
- Print password and QR code for the current Wi-Fi network:
|
|
|
|
|
|
|
|
`nmcli device wifi show-password`
|