In the past this command has worked well for me, when disconnecting from a network without turning off my wifi interface:
nmcli con down id MyWifiName
When I run it now I'm getting:
Error: 'MyWifiName' is not an active connection. Error: no active connection provided.
I might not be connected via nmcli.
Is there another way I can turn off the network? I need to make sure the interface stays on. Otherwise I would try something like
nmcli radio wifi off.
Anyone know another command?