When prisma deploy is executed and the server and cli version have a different minor version (a different x in 1.x), the CLI should print a warning that this may result in unwanted behavior.
Warning with yellow text can be emitted as
Warning: your Prisma server and Prisma CLI versions are out of sync, they should be on the same minor version.
Prisma CLI version: 1.x
Prisma server version: 1.y
Here, x, y would be filled dynamically.
But we can imagine a scenario where the user is on an older version of server for reasons (matching production etc) and they would want the warning disabled. If users want this then we can introduce an environment variable PRISMA_NO_VERSION_WARNING or something to make this warning go away.
In my opinion it should not be possible to disable this warning.
This RFC https://github.com/prisma/rfcs/pull/9 has the detailed discussion around this feature.
This is available in the latest stable 1.31.1. Please install this via npm install -g prisma.
I am closing this issue, please open a new issue again if necessary.
Most helpful comment
In my opinion it should not be possible to disable this warning.