A number of answers describe how to modify properties of a wireless connection via nmcli (for example https://unix.stackexchange.com/q/316482/16821).
However, I don't know how to determine which parameter I should modify. There seem to be several options wep-key[0-4] and psk.
I am able to connect to wifi with no problem by passing the --ask option and entering the password manually.
Which parameter(s) to set?