In inkscape you can save an SVG images as an optimized SVG. See for example this SO question.
Is it possible to use this feature to optimize an SVG image using the command line only?
In inkscape you can save an SVG images as an optimized SVG. See for example this SO question.
Is it possible to use this feature to optimize an SVG image using the command line only?
Yes, use Scour directly: https://github.com/scour-project/scour (this is what Inkscape hooks into with the 'Save as ... > Optimized SVG' dialog).