Configure wpa_supplicant via SSH via commands / config files

There is a command - connmanctl
But I never used this.
Sorry, that´s all I know about this.