configure preference by macro or command line.

I have a bunch of user configs in witch i need to change some settings could i do it by macro or command line?
I need to change the auto-correct option for quotes in a language.
But i have no idea where to find the documentation about how to write that as a command line or macro.