cli-anything-drawio

Automate Drawio diagram creation and editing via command-line commands.

46.8k|4.4k|Updated Mar 8, 2026
One-click install
npx skills add https://github.com/HKUDS/CLI-Anything --skill cli-anything-drawio-hkuds
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cli-anything-drawio
Source: https://github.com/HKUDS/CLI-Anything/tree/main/drawio/agent-harness/cli_anything/drawio/skills
Command: npx skills add https://github.com/HKUDS/CLI-Anything --skill cli-anything-drawio-hkuds

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill streamlines the creation and modification of diagrams by providing a command-line interface for Drawio, enabling automation and integration into workflows.

Core Features & Use Cases

  • Diagram Management: Create new diagrams, open existing projects, save changes, and access project information.
  • Shape and Connector Editing: Add, remove, move, resize, style, and list shapes and connectors within diagrams.
  • Page Operations: Add, remove, rename, and list pages within diagrams.
  • Export Capabilities: Render diagrams into common file formats like PNG, PDF, and SVG for sharing and presentation.
  • Use Case: Automate diagram generation for technical documentation by scripting shape placement and exporting to PDF without manual GUI interaction.

Quick Start

Start by creating a new diagram project and then export it as a PDF with a single command.

Frequently Asked Questions about cli-anything-drawio

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

FAQPage Schema
How do I automate diagram creation and export from the command line?

Automate diagram creation by using command-line commands to script shape placement, modify pages, and export diagrams to PDF, PNG, or SVG without manual GUI interaction.

Can I batch edit shapes and connectors in drawio via CLI?

Yes, you can batch edit shapes and connectors in drawio via CLI by running commands to add, remove, move, resize, and style elements automatically across your technical documentation projects.

Does the drawio CLI tool require Python to run?

The drawio CLI tool requires Python 3.10 or higher to execute its command-line operations for automating diagram creation, editing, and exporting tasks.

What is the best way to generate technical documentation diagrams without a GUI?

The best way to generate technical documentation diagrams without a GUI is using command-line automation to script diagram creation, manage shapes and pages, and render outputs directly to PDF or SVG.

What file formats can I export diagrams to using CLI automation?

Using CLI automation, you can render and export drawio diagrams into common file formats including PNG, PDF, and SVG for sharing and presentation purposes.

Are there limitations to editing drawio diagrams through command-line scripting?

Editing drawio diagrams through command-line scripting requires both the drawio CLI tool and Python 3.10+, meaning operations are bound by CLI capabilities rather than interactive visual GUI features.