
Supabase has updated its local development environment to give teams more control over how they manage SQL snippets. The change moves snippet storage into a dedicated directory that can be tracked with version control.
The update shifts SQL snippets from an opaque storage location into the supabase/snippets directory within local projects. Teams can now commit these snippets to Git for shared use across the organization, or add the directory to .gitignore to keep queries private. The announcement on LinkedIn emphasized the flexibility: developers choose whether to version their snippets based on their workflow.
Why This Matters
For teams working with Supabase's local CLI, this solves a practical problem. Previously, SQL snippets created in the editor existed outside the project structure, making them difficult to share or reproduce across environments. With file-based storage, snippets become portable artifacts that can be reviewed, versioned, and distributed like any other code.
The change is particularly relevant for teams using Supabase as part of a Git-based workflow. Database queries often need the same review and collaboration as application code. By placing snippets in a standard directory, developers can include them in pull requests, track changes over time, and ensure consistency across development, staging, and production environments.
Typical use cases include:
- Sharing diagnostic queries for debugging production issues
- Maintaining a library of common data transformations
- Onboarding new team members with annotated query examples
- Documenting complex schema migrations with SQL explanations
Teams that prefer to keep exploratory queries private can simply exclude the directory from version control. The flexibility accommodates both collaborative and individual workflows without forcing a single approach.
Local Development Focus
This update targets Supabase's local development experience, which allows developers to run a full Postgres environment on their machine using Docker. The local CLI has become a key part of the platform's appeal, especially for teams that want to work offline or avoid cloud dependencies during development, as previously covered in the context of AI coding tools.
The snippet directory joins other file-based conventions in Supabase projects, including migration files in supabase/migrations and seed data in supabase/seed.sql. This consistency makes the project structure more predictable and easier to navigate.
The feature is available now to all users of the Supabase CLI. No migration is required, existing snippets will automatically appear in the new directory structure on the next CLI update. Teams can start committing snippets immediately or configure their .gitignore to maintain current behavior.
Sources
1 checkedHow we cover tool news: Create With's tool desk drafts these reports with AI from the sources listed above and checks them against those sources before publishing.








