Ivan Gustin
Ivan Gustin

Reputation: 39

How i can pull all data project production to local enviroment in supabase

I have created a project using supabase platform directly and not in local enviroment so all tables are in production, but now i need a local enviroment for development o test so i created a local project using this guide but the project is from scracth, the question is ¿how i can pull all tables from production to local enviroment?

Local guide

Upvotes: 2

Views: 5765

Answers (2)

mubarak saeed
mubarak saeed

Reputation: 61

supabase db pull only will download the db as migration file then you need to apply it by command supabase db reset.

Upvotes: 1

Andrew Smith
Andrew Smith

Reputation: 1841

You can do this by using pgdump to export the table schema and importing it back into your local environment. You can follow this guide https://supabase.com/docs/guides/platform/migrating-and-upgrading-projects

Upvotes: 4

Related Questions