downgrade cli version

How can I downgrade cli version?? I'm currently on version 2.34.3 and I want to downgrade to version 2.31.8 to see if that solves the unwanted revoke statements generated when trying to pull storage schema. I'm on macOS and when running brew install supabase/tap/supabase@2.31.8 it says that theres no available formula or cask with that name.
6 Replies
patito1009
patito1009OP2mo ago
will try that with brew then I tryed installing supabase with npm but that didn't worked I'll let you now if it works
garyaustin
garyaustin2mo ago
Sorry, not something I use.
garyaustin
garyaustin2mo ago
May not work with Brew...
No description
silentworks
silentworks2mo ago
Yes always use npx, brew is just a nightmare to try and downgrade with. You can even pin the version in your devDependencies in your package.json. What issue did you have with npm? normally when it doesn't work it's a filesystem permission issue which doesn't allow npm to install executables, this is something you will have to rectify at your operating system level.
patito1009
patito1009OP2mo ago
I didn't even bothered to check. I had previously installed the cli using brew, when trying to downgrade I uninstalled cli from brew and then quickly tried to install using npm but it threw an error. Then, I needed to quickly setup a local supabase instance for another project not related to the one where I need to downgrade so I just re installed latest version with brew. Today I will be trying to install cli using npm and see if I manage to fix my problems with migrations using v2.31. I'll keep you updated, thanks!

Did you find this page helpful?