Join Slack
Powered by
Hi! Is there anyway to use the prisma CLI to check...
# prisma-client
n
Niv Oppenhaim
09/07/2022, 9:16 AM
Hi! Is there anyway to use the prisma CLI to check if the remote schema matches the local one?
h
Harshit
09/08/2022, 9:15 AM
Hmm, you can introspect the remote schema and then compare it with the local version.
🦜 1
Harshit
09/08/2022, 9:16 AM
You can also use migrate diff:
https://www.prisma.io/docs/reference/api-reference/command-reference#migrate-diff
Harshit
09/08/2022, 9:17 AM
npx prisma migrate diff --from-url <> --to-url <>
3
Views
Open in Slack
Previous
Next