# Export diagrams to SVG from cli

**URL:** <https://scilab.discourse.group/t/export-diagrams-to-svg-from-cli/677>\
**Category:** Xcos\
**Created:** [October 20, 2024, 5:06pm UTC](https://scilab.discourse.group/t/export-diagrams-to-svg-from-cli/677 "2024-10-20T17:06:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wra](https://avatars.discourse-cdn.com/v4/letter/w/c67d28/32.png) [@wra](https://scilab.discourse.group/u/wra)\
**Post date:** [October 20, 2024, 5:06pm UTC](https://scilab.discourse.group/t/export-diagrams-to-svg-from-cli/677/1 "2024-10-20T17:06:01Z")

</div>

Hello there.

Is there a way to export a diagram from an .zcos file to SVG? I do not mean the plots (with xs2svg) but the diagram. I know about CTRL+E, but would like to do it directly from the command line.

A little background: I have an assignment in school and I want to have everything in one bash file so when I change something I don’t have to remember to re-export the diagram. The shell script regenerates all diagrams I have in plantuml, octave and generates the PDF from LaTeX but I don’t seem to be able to create appropriate diagram from Xcos - so it is a manual step for now.
