directus-migrate
- Only migrates the data models for
collections
,fields
, andrelations
. No items (data) is migrated.- Does not remove data models.
- Use with caution, backup your data before attempting this.
Usage:
npx directus-migrate config.json
Example config:
{
"dry": false,
"source": {
"url": "https://directus-source.domain.tld",
"token": "source admin user token"
},
"target": {
"url": "https://directus-target.domain.tld",
"token": "target admin user token"
}
}