Files
Managor cdc2806adb nmcli-device: add hotspot example (#21892)
* Update nmcli-device.md

* Update pages/linux/nmcli-device.md

Co-authored-by: Ivan Baluta <ivanbaluta.dev@gmail.com>

---------

Co-authored-by: Ivan Baluta <ivanbaluta.dev@gmail.com>
2026-04-10 09:01:25 +02:00

29 lines
906 B
Markdown

# nmcli device
> Manage network interfaces and establish new Wi-Fi connections using NetworkManager.
> More information: <https://networkmanager.pages.freedesktop.org/NetworkManager/NetworkManager/nmcli.html#device>.
- 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]}}`
- Create a Wi-Fi hotspot:
`nmcli {{[d|device]}} {{[w|wifi]}} {{[ho|hotspot]}} ifname {{wlan0}} ssid "{{hotspot_ssid}}" password "{{password}}"`
- 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}}`