An AI bot suggested the directus command to get the current schema and apply it on a different server using these commands:
docker compose exec directus npx directus schema snapshot /directus/schema.yaml
docker compose exec directus npx directus schema apply /directus/schema.yaml
In the documentation I can’t find any reference to this command. But I did find an archived GitHub repo with a Directus CLI at GitHub - directus/cli: Directus Client CLI · GitHub
My question: is this command officially supported? I think we could use it to save and update server configurations between developers and test/production servers.
OK, understood. I tried the API's first, but applying a snapshot from instance A on instance B did not produce the same result. So I was looking for an alternative that does a better job.
– rob