OpenSCAD 2018 Command line
You can specify variable values from command line using:


openscad     ...\
             ... \
             [ -D var=val [..] ] \
             ... \
             ... \
             filename


See the OpenSCAD Manual.