directus-environment-sync
Installation
SKILL.md
Directus Environment Sync
Environment Sync pulls an instance's Schema and Configuration into JSON sync files you commit, then diffs and pushes those files to other instances. Pull overwrites the files in scope. Push applies only what is on disk, never the source instance. Requires Directus 12.2.0 or later on every instance.
Verified against Directus v12.6.0 (CLI source packages/cli, @directus/cli 12.4.0) and the Environment Sync docs.
First checks
- Check the version before anything else.
GET /server/infowith a token returnsdata.version. Older than 12.6: read the version notes for its major in thedirectusskill (references/versions-v<major>.md), or without that skillhttps://directus.com/docs/raw/releases/breaking-changes/version-<major>.md. Newer: read the release notes since 12.6.0 first. - Versions and vendor.
GET /server/infoon source and target: same exact version (patch included), same DB vendor, both 12.2.0+. - Sync files present? If the repo has
directus.config.jsonanddirectus/<project>/, pull from the agreed source, not whatever instance is handy.