
Supabase has released a new command in its CLI that guides developers through setting up declarative database schema. The feature, currently in alpha, introduces a workflow designed to simplify how teams define and manage their database structure using configuration files rather than imperative SQL scripts.
The update was announced on LinkedIn by the Supabase team, which is actively seeking feedback as the feature undergoes testing. Developers interested in trying the new workflow need to update their Supabase CLI, enable the pgdelta feature flag in their config.toml file, and run the new command.
Why Declarative Schema Matters
Declarative database schema management represents a shift from traditional migration-based workflows. Instead of writing sequential SQL files that describe changes ("add this column," "create this index"), developers declare the desired end state of their database schema. The system then calculates what needs to change to reach that state.
This approach offers several advantages for teams building on Postgres:
- Version control alignment: Schema files become the source of truth, making it easier to review database changes in pull requests alongside application code
- Reduced migration conflicts: Multiple developers can modify schema definitions without creating conflicting migration files
- Simplified rollbacks: Reverting to a previous schema state means checking out an earlier version of the schema file rather than writing reverse migrations
The pgdelta component appears to handle the diff calculation between current and desired schema states, though Supabase has not yet published detailed documentation on the implementation.
Early Access and Feedback
The alpha designation signals that the feature is not yet production-ready. Supabase is using this phase to gather real-world feedback from developers before committing to the API design and workflow.
To enable the feature, developers must add pgdelta to their config.toml file, the configuration format used by the Supabase CLI for local development settings. The exact syntax has not been detailed in the announcement, but follows the pattern of other experimental features that require explicit opt-in through feature flags.
The timing aligns with Supabase's recent focus on developer experience improvements. The company recently enabled Git-based SQL snippet management for local development, another step toward treating database code with the same version control practices as application code.
What This Means for Postgres Development
Supabase has positioned itself as a developer platform for Postgres rather than just a hosted database service. This latest CLI enhancement continues that trajectory by addressing a persistent pain point in database development workflows.
Other platforms like Xano and Noloco provide visual schema builders, but those interfaces generate the underlying structure imperatively. Supabase's approach keeps developers working in code while improving the ergonomics of schema changes.
The pgdelta system will need to handle complex scenarios like renaming columns (which looks like a drop and add to automated diffing tools), managing data migrations that accompany schema changes, and resolving conflicts when multiple developers modify overlapping schema definitions. How Supabase addresses these edge cases will determine whether declarative schema management becomes the default workflow or remains a niche option.
Developers interested in testing the alpha can update their Supabase CLI through their package manager and enable the feature flag. The team has not specified a timeline for when the feature might graduate from alpha to stable release.
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.








