Setting up Access Point using only uci commands

I have an AP with OpenWRT on it. It does not have a web interface and I have to do it using uci commands only. I have a main Router that provides Internet and assigns IP address and all. I want this OpenWRT AP to be a dumb extension of that router that provides wireless connectivity. Right now, I have 1 port set as WAN and 2 ports as LAN. Additionally, I do not want to lose access to the AP's interface. I tried 1 solution but that made me lose access to the AP. Some help with this will be greatly appreciated, especially with the uci commands. Thank you.

should we guess what the non-working solution was ?

https://openwrt.org/docs/guide-user/network/wifi/wifiextenders/bridgedap

My bad, this is what I tried

to bridge all ports on wan

uci del network.lan.ifname
uci set network.wan.ifname='eth0 eth1 eth2'
uci commit network
/etc/init.d/network reload

to bind ssid with wan bridge

uci set wireless.@wifi-iface[0].network='wan'
uci set wireless.@wifi-iface[1].network='wan'
uci commit wireless
wifi