drawio-cli

Automates creation and export of .drawio files via the draw.io CLI.

Updated Dec 29, 2025
One-click install
npx skills add https://github.com/yu-iskw/dbt-artifacts-parser-ts --skill drawio-cli
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: drawio-cli
Source: https://github.com/yu-iskw/dbt-artifacts-parser-ts/tree/main/.claude/skills/drawio-cli
Command: npx skills add https://github.com/yu-iskw/dbt-artifacts-parser-ts --skill drawio-cli

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Diagram creation and export can be time-consuming and error-prone when done manually. The drawio-cli enables consistent, script-driven diagram work by generating native .drawio files and embedded XML exports.

Core Features & Use Cases

  • Generate editable .drawio files from the command line for diagrams like flowcharts, architecture diagrams, sequences, ER models, and network diagrams.
  • Export diagrams to PNG, SVG, or PDF with embedded XML for easy sharing and re-importing into draw.io.
  • Support workflow patterns including writing, exporting, and reviewing results within automated pipelines.

Quick Start

Create a new diagram or export an existing one to PNG, SVG, or PDF using the draw.io CLI.

Frequently Asked Questions about drawio-cli

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I export draw.io diagrams to SVG or PDF from the command line?

You can export draw.io diagrams to SVG or PDF from the command line by using the draw.io CLI to generate native .drawio files with embedded XML. This approach supports formats like PNG, SVG, and PDF for automated outputs.

Can I automate architecture diagram creation without opening the draw.io interface?

Yes, you can automate architecture diagram creation without the interface by generating editable .drawio files from the command line. The draw.io CLI uses mxGraphModel XML to script flowcharts, ER models, and network diagrams automatically.

What is an embedded XML export in draw.io and why use it?

An embedded XML export in draw.io packages the diagram source within output formats like PNG, SVG, or PDF. This mechanism enables easy sharing and allows files to be re-imported directly into draw.io for future editing.

Does the draw.io CLI support generating sequence diagrams and ER models?

Yes, the draw.io CLI supports generating sequence diagrams and ER models. It processes mxGraphModel XML to produce native .drawio files for various diagram types, including flowcharts, wireframes, and UI sketches.

What is the best way to create script-driven flowcharts for automated pipelines?

The best way to create script-driven flowcharts for automated pipelines is using a command line interface. The draw.io CLI provides a guided workflow for writing, exporting, and reviewing diagram results consistently within automated environments.