How to change the font smoothing setting from the command line?

Solution 1:

It's defaults -currentHost write -globalDomain AppleFontSmoothing -int <1-3> as far as I remember