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

  1. Check the version before anything else. GET /server/info with a token returns data.version. Older than 12.6: read the version notes for its major in the directus skill (references/versions-v<major>.md), or without that skill https://directus.com/docs/raw/releases/breaking-changes/version-<major>.md. Newer: read the release notes since 12.6.0 first.
  2. Versions and vendor. GET /server/info on source and target: same exact version (patch included), same DB vendor, both 12.2.0+.
  3. Sync files present? If the repo has directus.config.json and directus/<project>/, pull from the agreed source, not whatever instance is handy.
Installs
19
GitHub Stars
6
First Seen
13 days ago