How to re-connect back HASS.OS to Wifi

Hi, need some help here.

I am using HomeAssistant in RaspberryPi4 using HA standard UI.
During initial setup of Pi, I successfuly setup Wifi access, using command
~nmcli device wifi connect “YOUR_SSID” password “YOUR_WIFI_PASSWORD”
through SSH terminal.

I have sucessfully setup the following as well,

  1. Duckdns, and I can access through https://XXX.duckdns.org. (with port forwarding)
  2. SSH and Web Terminal addons with RSA key,
  3. Samba Share addons
  4. Putty access with RSA keys

Because recently I heard that Wifi connection is not so secure, so I disable the Wifi by
~nmcli connection delete “ASUS 2.4”

Now when I try to reconnect the Wifi (change of mind) using the nmcli command (through terminal), I encounter such error.
May I know what has gone wrong, I am using the exact same method I used previously to connect the Wifi. But fail to connect now?

Or please let me know if ther are other method to connect my Pi4 to Wifi.
(Please note that I am not using hasbian and I can’t “Sudo this or that”)

Your help is much appreciated.

Hi, thanks, I found the solution and the problem.

Solution: use command “~nmtui” in SSH termial or putty, a DOS GUI will show up, its easy.

How this problem happen ???

First, I delete the connection by:
~nmcli connection delete “SSID”

Then when I reconnect, I type wrongly the password as “passord”
~nmcli device wifi connect “SSID” passord “mypassword”
Then Error: Connection activation failed: (7)

Now, no matter how many time I tried (correctly) even rebooted many time.
~nmcli device wifi connect “SSID” password “mypassword”
Error still persist…

Until I use “nmtui”…GREAT! I learned new things everyday!