I understand that I can set up multiple WiFis by adding to /etc/wpa_supplicant/wpa_supplicant.conf (as prescribed in Setting WiFi Up Via The Command Line).
Let's say I have two WiFis registered: wifi_A and wifi_B
When I unplug router wifi_A, and reboot my raspberry to command line, it automatically connects to wifi_B. When I unplug router wifi_B, and reboot my raspberry to command line, it automatically connects to wifi_A. So far so good.
But, let's say both routers are available, how can I set priorities? E.g. I'd like my Raspberry to connect to wifi_B upon reboot?
My second question is: Let's say I am in the command line mode and I am currently connected to wifi_B. How can I connect to wifi_A instead?