A single-file CLI utility for syncing MODX Revolution elements — chunks, snippets, plugins, templates, and TVs — with files on disk. Keeps your elements in version control and lets you edit them in a real editor instead of the manager.
Each element type maps to a folder under _elements/. The script walks those folders and creates or updates the corresponding rows in the MODX database. By default, imported elements are registered as static elements linked back to their source files, so MODX reads the file on every parse — no reimport needed after a code change.
Three subcommands cover the full workflow: