title: How to save SVG file with Inkscape CLI?
body: <p>I'm working with Inkscape in cli no (<code>--without-gui</code> or <code>-z</code>) to :</p>
  
  <ol>
  <li>Select multiple nodes by id (<code>hanzi</code>, <code>pinyin</code>) ;</li>
  <li>Create an union of them ;</li>
  <li>Save as a new file (<code>test-union-cli.svg</code>).</li>
  </ol>
  
  <h2>Command</h2>
  
  <p>So I use this command:</p>
  
  <pre><code>inkscape -z -f ./䖠-x45A0.svg \
      --select=hanzi --select=pinyin \
      --verb SelectionUnion --verb FileSaveCopyAs \
      --verb=FileClose test-union-cli.svg
  </code></pre>
  
  <h2>Output error</h2>
  
  <blockquote>
    <p>** (inkscape:27462): CRITICAL *<em>: Inkscape::XML::Document</em> sp_repr_read_file(const gchar*, const gchar*): assertion
    `Inkscape::IO::file_test( filename, G_FILE_TEST_EXISTS )' failed</p>
    
    <p>** (inkscape:27462): CRITICAL *<em>: Inkscape::XML::Document</em> sp_repr_read_file(const gchar*, const gchar*): assertion
    `Inkscape::IO::file_test( filename, G_FILE_TEST_EXISTS )' failed</p>
    
    <p>** (inkscape:27462): WARNING **: Specified document test-union-cli.svg cannot be opened (does not exist or not a valid SVG file)</p>
  </blockquote>
  
  <p>The file <code>test-union-cli.svg</code> is not supposed to exists. So what am I doing wrong here?</p>