There is a command line interface. I’m currently in the process of integrating this into the pattern sharing website which needs to do a very similar thing to generate SVG thumbnails of pattern pieces and output a pattern for a given set of measurements.
If you run Seamly2D on the command line with -h you’ll find all the documentation you need.