
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.
| Command | Description |
|---|---|
new | Create a new blank diagram |
open | Open an existing .drawio project file |
save | Save the current project |
info | Show detailed project information |
xml | Print the raw XML of the current project |
presets | List available page size presets |
Shape
Shape operations: add, remove, move, resize, style.
| Command | Description |
|---|---|
add | Add a shape to the diagram |
remove | Remove a shape by ID |
list | List all shapes on a page |
label | Update a shape's label text |
move | Move a shape to new coordinates |
resize | Resize a shape |
style | Set a style property on a shape |
info | Show detailed info about a shape |
types | List all available shape types |
Connect
Connector operations: add, remove, style.
