svgo
SVG Optimizer: optimizing Scalable Vector Graphics files. tldr-pages
On several platforms
Several platforms
SVG Optimizer: optimizing Scalable Vector Graphics files. Based in Node.js. It applies a series of transformation rules (plugins), which can be toggled individually.
Optimize a file using the default plugins (overwrites the original file)
svgo test.svgIdentifyOptimize a file and save the result to another file
svgo test.svg --output test.min.svgIdentifyOptimize all SVG files within a directory (overwrites the original files)
svgo --folder path/to/directory_with_svg_filesIdentifyOptimize all SVG files within a directory and save the resulting files to another directory
svgo --folder path/to/input_directory --output path/to/output_directoryIdentifyOptimize SVG content passed from another command, and save the result to a file
cat test.svg | svgo --input - --output test.min.svgIdentifyOptimize a file and print out the result
svgo test.svg --output -IdentifyShow available plugins
svgo --show-pluginsIdentify