excalidraw-cli
CLI tool to generate editable Excalidraw diagrams from DSL, JSON or DOT with auto-layout and image export.
Tested on Linux
Use it
Linux x86_64
You need first
- Runtimes:
node - System packages:
Node.js
install via npm global
npm install -g @swiftlysingh/excalidraw-cli
Check that it works
excalidraw-cli --version && excalidraw-cli --helpThe output should contain “1.5.0”.
First thing to try
excalidraw-cli create --format dot --inline 'digraph { A [label="Start"]; B [label="Process"]; A -> B; }' -o /tmp/flow.excalidraw && echo "DOT_OK" && ls -lh /tmp/flow.excalidrawWhat it does
- Create diagrams from text-based DSL, JSON API and Graphviz DOTTested
- Auto-layout diagrams using ELK.js with multiple flow directionsNot tested
- Export diagrams to PNG and SVG with dark mode and custom backgroundsNot tested
- Programmatic API for integration into other tools and agent workflowsNot tested
How far pickfit got
Linux x86_64
- Installs
- Starts
- 1 of 4 features work
- Works offline
macOS and Windows: the project says it runs there; pickfit hasn’t tried it.
Good for
- generate Excalidraw flowcharts from text DSL for agents and scripts
- export Excalidraw files to PNG and SVG images
How pickfit tested it
Each run starts from a clean machine and follows the steps above. How pickfit verifies
Linux x86_64
Its main function works
- Replayed from scratch
- Works offline
- Checked on 2 Nov 2026
- Version 1.5.0