Saving SQL snippets now works in the local Studio! This has been a top community request for a long time, and we’re happy to finally release it.
You can save SQL snippets directly while working in the local Studio via the CLI. Snippets are stored in supabase/snippets, making them easy to commit to Git and share with your team working in the same repo—or ignore entirely with .gitignore if you prefer.
Your saved snippets automatically appear in Studio, just like they do in the hosted Dashboard.
This feature is available since CLI v2.72.7. You can check the version by running supabase -v.