nmcli device

Manage network interfaces and establish new Wi-Fi connections using NetworkManager. This subcommand can also be called with nmcli d. More information: https://networkmanager.pages.freedesktop.org/NetworkManager/NetworkManager/nmcli.html.

nmcli device status

nmcli device wifi

nmcli --ask device wifi connect {{ssid}}

nmcli device wifi show-password