This extension adds the cli command schema-merge
to the directus except it uses a modified .yml format which should cause fewer merge conflicts during git merges.
Note: This extension is very much under development. Even though I've tested it, I haven't had it in production for a long time. And it is touching your database 🤷🏻♂️.
- Install the extension:
npm install directus-extension-schema-merge
. - Export your schema:
directus schema-merge snapshot --output schema.yml
: - Import your schema
directus schema-merge apply schema.yml