Nmcli
Did have an issue with nmcli, even when entering SSID and Password the connection was refused with ‘secrets were required but not provided’
Found solution on StackExchange
nmcli con delete <SSID>
and setup connection with
nmcli dev wifi connect <SSID> password <password>
nmcli
is preferred to nmtui
where each time the SSID must be selected and password entered.
Some other basic nmcli stuff
nmcli device wifi list
Asahi series