Generate UCI Cli config

Is there any commands generating true CLI code via UCI export?
If you do UCI SHOW you get something that will error out if you do put uci set infront of all rows. Some rows need uci add instead of set to create new objects.... like. You also need to add those add lines since it will error out if not there.All lines with [0] or [1] needs to be changed to -1 to get them easy to move around in a deployable file to empty routers.

#Firewall rules
uci add firewall rule
uci set firewall.@rule[-1]=rule
uci set firewall.@rule[-1].name='Block sites'
uci set firewall.@rule[-1].src='lan'
uci set firewall.@rule[-1].src_ip=''
uci set firewall.@rule[-1].target='REJECT'
uci set firewall.@rule[-1].proto='all'
uci set firewall.@rule[-1].dest='wan'
uci commit
1 Like