© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•3y ago•
6 replies
Ian

Can I generate migrations from existing supabase project?

I'm embarrassed to say I've been adding tables, policies and functions via the GUI as I develop my project over the last few months, rather than writing migrations locally and pushing them to the db using CLI. So I have no migrations at all.

Can I use the CLI to generate migrations files for my existing supabase project?

Would I use
supabase db diff --schema public
supabase db diff --schema public
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

migrate an existing Supabase project from one Supabase account
SupabaseSSupabase / help-and-questions
3mo ago
Generate PDFs from Supabase
SupabaseSSupabase / help-and-questions
3y ago
Deleting records from supabase_migrations.schema_migrations achiev
SupabaseSSupabase / help-and-questions
5mo ago
Can I get the Project ID from the Supabase client?
SupabaseSSupabase / help-and-questions
3y ago