HASS PI - Looping for a way to enter manually the WLAN data via ssh

Hello, first of all sorry for my bad english.
Actually, it is probably a much sought-after problem.
I have a PI 4 and I am using Mac
I am unable to install the WLAN on Hsso and PI.
Neither with the 32 or 64 bit img or and the USB.

Is there no way to manually enter the WLAN data via ssh?
And if so, there is an example of which directory file name etc. - am NUbbi
Or is it only possible via USB and / or SD card

Thanks for the tips