1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/linux/nmcli-device.md

22 lines
638 B
Markdown
Raw Normal View History

# nmcli device
2023-08-02 07:26:52 +02:00
> Manage network interfaces and establish new Wi-Fi connections using NetworkManager.
> This subcommand can also be called with `nmcli d`.
2024-10-10 10:22:22 +02:00
> More information: <https://networkmanager.pages.freedesktop.org/NetworkManager/NetworkManager/nmcli.html>.
- Print the statuses of all network interfaces:
`nmcli device status`
- Print the available Wi-Fi access points:
`nmcli device wifi`
2023-08-02 07:26:52 +02:00
- Connect to a Wi-Fi network with the specified SSID (you will be prompted for a password):
2023-08-02 07:26:52 +02:00
`nmcli --ask device wifi connect {{ssid}}`
2023-08-02 07:26:52 +02:00
- Print the password and QR code for the current Wi-Fi network:
`nmcli device wifi show-password`