Manually add wifi networks via SSH

Is there any way to add additional wifi network configurations via SSH?

I want to add a network to my OSMC build that isn’t currently in range. I already have the network name and password. So want to set it up ahead of time.

Not trivially. You could rename your access point and key to match the destination network

Thanks.

I guess I can always setup a virtual AP point on my router to temporarily enter the same login details.