nmcli-device
Manage network interfaces and establish new Wi-Fi connections using NetworkManager. tldr-pages
On Linux
Linux
Print the statuses of all network interfaces
nmcli [dIdentifyPrint the available Wi-Fi access points
nmcli [d [wIdentifyConnect to a Wi-Fi network with the specified SSID (you will be prompted for a password)
nmcli [d [w [c ssid --askIdentifyCreate a Wi-Fi hotspot
nmcli [d [w [ho ifname wlan0 ssid "hotspot_ssid" password "password"IdentifyPrint the password and QR code for the current Wi-Fi network
nmcli [d [w [sIdentifyPrint detailed information about a device
nmcli [d [sh wlan0Identify