bcc-code / directus-schema-sync

The better way to sync your Directus schema and data between environments
Apache License 2.0
90 stars 4 forks source link

Impossible to run the install command in a new project #25

Closed karamokoisrael closed 4 months ago

karamokoisrael commented 4 months ago

Describe the Bug

When I try running the install command, I get the following error message => error: unknown command 'schema-sync'

To Reproduce

CREATE a new directus project

ADD directus-extension-schema-sync package

RUN npx directus schema-sync install

Version

10.9.0

Installed Extension Via

NPM Custom

jperestrelo commented 4 months ago

Im also having the same issue

yanmorinokamca commented 4 months ago

With an existing directus version, I had to run directus database migrate:up so that schema-sync show up in the cli commands. Check with npx directus help to see if the commands show up.

u12206050 commented 4 months ago

Seems like this has been resolved, although it would be interesting to know why the npx directus schema-sync install didn't work, as that basically calls the migrate command within itself. Did you get any errors?

karamokoisrael commented 4 months ago

Seems like this has been resolved, although it would be interesting to know why the npx directus schema-sync install didn't work, as that basically calls the migrate command within itself. Did you get any errors?

Thank you, that's what I've done and it works.