Substance 3D Automation Toolkit
The Substance 3D Automation Toolkit provides multiples tools, one of them being sbsbaker which is a command line version of the Substance bakers.
For more information, see the dedicated documentation.
recommendation-more-help
substance-3d-help-substance-3d-bake