Convert Latex Tikz diagram to SVG

LaTeX Tikz diagram can be converted to SVG vector graphics conversion at full quality from the command line (no GUI). Convert LaTeX Tikz diagram to SVG by generating PDF from LaTeX as usual:

pdflatex mydoc.tex

Use Inkscape from Terminal to convert PDF to SVG at full vector quality:

inkscape -l out.svg in.pdf