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.
- 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