How to change the default Raspberry Pi 3 wi-fi settings from command line on a BiBli Robot

Wondering how to change a Raspberry Pi to connect to a new wi-fi network?

Login using:

ssh pi@ipaddress
(or simply connect to your HDMI monitor and a USB keyboard)
pw: raspberry

pi@bigboy:/  cd /etc/wpa_supplicant

pi@bigboy/etc/wpa_supplicant $ ls

pi@bigboy:/etc/wpa_supplicant $ sudo nano wpa_supplicant.conf

(edit the file to include the new network ssid and password and reboot)