Emonbase wifi but router needs wpa to connect

Just received my emonbase and emonTX but struggling to get the emonbase up. My router requires a wpa password to issue an IP address, which I need to run the emonbase, but it won’t connect without the password. How do I enter this password from the command line? Do I need to edit the configuration file?

Managed to sort it out. Had to add the SSID and pwd to the wpa_supplicant.conf file. It then connected and I was able to load the IP address into my desktop browser and continue the setup.