1SVGO(1) User Commands SVGO(1)
2
3
4
6 svgo – nodejs-based tool for optimizing SVG vector graphics files
7
9 svgo [options] [INPUT...]
10
12 Arguments
13 INPUT Alias to --input
14
15 Options
16 -v, --version
17 output the version number
18
19 -i, --input <INPUT...>
20 Input files, ”-“ for STDIN
21
22 -s, --string <STRING>
23 Input SVG data string
24
25 -f, --folder <FOLDER>
26 Input folder, optimize and rewrite all *.svg files
27
28 -o, --output <OUTPUT...>
29 Output file or folder (by default the same as the input), ”-“
30 for STDOUT
31
32 -p, --precision <INTEGER>
33 Set number of digits in the fractional part, overrides plugins
34 params
35
36 --config <CONFIG>
37 Custom config file, only .js is supported
38
39 --datauri <FORMAT>
40 Output as Data URI string (base64), URI encoded (enc) or unen‐
41 coded (unenc)
42
43 --multipass
44 Pass over SVGs multiple times to ensure all optimizations are
45 applied
46
47 --pretty
48 Make SVG pretty printed
49
50 --indent <INTEGER>
51 Indent number when pretty printing SVGs
52
53 --eol <EOL>
54 Line break to use when outputting SVG: lf, crlf. If unspeci‐
55 fied, uses platform default.
56
57 --final-newline
58 Ensure SVG ends with a line break
59
60 -r, --recursive
61 Use with --folder. Optimizes *.svg files in folders recur‐
62 sively.
63
64 --exclude <PATTERN...>
65 Use with --folder. Exclude files matching regular expression
66 pattern.
67
68 -q, --quiet
69 Only output error messages, not regular status messages
70
71 --show-plugins
72 Show available plugins and exit
73
74 --no-color
75 Output plain text without color
76
77 -h, --help
78 Display help for command
79
80
81
82 October 2021 SVGO(1)