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.dev/docs/api/latest/nmcli.html.

nmcli device status

nmcli device wifi

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

nmcli device wifi show-password