Skills

CLI Anything Drawio

Command-line interface for Drawio - A CLI harness for **Draw.io**, create, edit, and...

Install

npx skills add HKUDS/CLI-Anything --skill cli-anything-drawio -g -a claude-code -y
Repository
HKUDS/CLI-Anything58k
Category
Engineering
Updated
1mo ago
License
Apache-2.0
Context cost
Lightabout 1,143 tokens
Runs scripts
No, instructions only

What it does

Command-line interface for Drawio - A CLI harness for **Draw.io**, create, edit, and export diagrams from the command line....

cli-anything-drawio

A CLI harness for Draw.io, create, edit, and export diagrams from the command line.

Installation

This CLI is installed as part of the cli-anything-drawio package:

pip install cli-anything-drawio

Prerequisites:

  • Python 3.10+
  • drawio must be installed on your system

Usage

Basic Commands

# Show help
cli-anything-drawio --help

# Start interactive REPL mode
cli-anything-drawio

# Create a new project
cli-anything-drawio project new -o project.json

# Run with JSON output (for agent consumption)
cli-anything-drawio --json project info -p project.json

REPL Mode

When invoked without a subcommand, the CLI enters an interactive REPL session:

cli-anything-drawio
# Enter commands interactively with tab-completion and history

Command Groups

Project

Project management: new, open, save, info.

CommandDescription
newCreate a new blank diagram
openOpen an existing .drawio project file
saveSave the current project
infoShow detailed project information
xmlPrint the raw XML of the current project
presetsList available page size presets

Shape

Shape operations: add, remove, move, resize, style.

CommandDescription
addAdd a shape to the diagram
removeRemove a shape by ID
listList all shapes on a page
labelUpdate a shape's label text
moveMove a shape to new coordinates
resizeResize a shape
styleSet a style property on a shape
infoShow detailed info about a shape
typesList all available shape types

Connect

Connector operations: add, remove, style.

Read the whole SKILL.md on GitHub

More in Engineering