2020-03-06 17:10:05 +00:00
|
|
|
# nmcli device
|
|
|
|
|
2023-08-02 06:26:52 +01:00
|
|
|
> Manage network interfaces and establish new Wi-Fi connections using NetworkManager.
|
2022-07-30 13:23:57 +01:00
|
|
|
> This subcommand can also be called with `nmcli d`.
|
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`
|
|
|
|
|
2023-08-02 06:26:52 +01:00
|
|
|
- Connect to a Wi-Fi network with the specified SSID (you will be prompted for a password):
|
2020-03-06 17:10:05 +00:00
|
|
|
|
2023-08-02 06:26:52 +01:00
|
|
|
`nmcli --ask device wifi connect {{ssid}}`
|
2021-01-28 10:08:26 +00:00
|
|
|
|
2023-08-02 06:26:52 +01:00
|
|
|
- Print the password and QR code for the current Wi-Fi network:
|
2021-01-28 10:08:26 +00:00
|
|
|
|
|
|
|
`nmcli device wifi show-password`
|