gx, the command-line tool
gx reads and edits DOT and Mermaid files by their structure, not by text search.
Only gx open, gx select, gx selection, and gx fit
need the desktop app. All other commands work in a terminal with no window.
gx nodes, gx arrows- List the nodes, arrows, and groups of a file, with names that the other commands take.
gx set, gx group- Change attributes, groups, and records. gx writes the file.
gx hide, gx tag- Hide elements, collapse groups, and add tags and notes. The library keeps them, and the file stays the same.
gx add, gx ls- Put a file in the library, and list the diagrams and boards of the library.
gx lock- Lock a file, so that the app and gx do not write to it.
gx open, gx watch- Show a file in the desktop app, or stream the changes of a file.
gx select, gx fit- Select elements, or show the whole diagram, in the window that is open now.
gx comes with a skill for coding agents. See the gx skill.