hkuds avatar

Cli Anything Drawio

This is a Python CLI that wraps Draw.io so you can script diagram creation and editing from the command line or let Claude build diagrams programmatically. It handles the full workflow: creating projects, adding shapes and connectors, styling elements, managing pages, and exporting to PNG, PDF, or SVG. Ships with an interactive REPL mode for manual use and a JSON output flag for agent consumption. The undo/redo support and session state management are nice touches for iterative work. You'll need Draw.io already installed on your system, and it requires Python 3.10 or higher. Honestly most useful when you need to generate diagrams in bulk or let an AI assemble technical diagrams based on structured data rather than clicking through a GUI.

skills.sh installs
712
GitHub stars
58.5K
last updated
Aug 21, 2026

Install

$ npx -y skills add hkuds/cli-anything --skill cli-anything-drawio --agent claude-code

Installs into .claude/skills of the current project.

Files

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.

Sponsors

Details

Repository
github.com/hkuds/cli-anything
Category
CLI & Terminal
First seen
Jun 3, 2026

More from hkuds/cli-anything

All 51
1posit-dev avatarcliposit-dev/skillsComprehensive R package for command-line interface styling, semantic messaging, and user communication. Use this skill when working with R code that needs to: (705skills.sh installs
2pproenca avatarshellpproenca/dot-skillsShell scripting best practices for writing safe, portable, and maintainable bash/sh scripts. Use when writing, reviewing, or refactoring shell scripts, Dockerfi704skills.sh installs
3hkuds avatarcli-anything-gimphkuds/cli-anythingCommand-line interface for Gimp - A stateful command-line interface for image editing, built on Pillow. Designed for AI agents and pow...672skills.sh installs
4hkuds avatarcli-anything-inkscapehkuds/cli-anythingCommand-line interface for Inkscape - A stateful command-line interface for vector graphics editing, following the same patterns as the GI...651skills.sh installs
5hkuds avatarcli-anything-comfyuihkuds/cli-anythingCommand-line interface for ComfyUI - AI image generation workflow management via ComfyUI REST API. Designed for AI agents and power users who need to queue work586skills.sh installs
6hkuds avatarcli-anything-kdenlivehkuds/cli-anythingCommand-line interface for Kdenlive - A stateful command-line interface for video editing, following the same patterns as the Blender CLI ...580skills.sh installs