Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Manage Supabase as an infrastructure-as-a-code for version control

I want to be able to manage my Supabase project as a code, with regards to the SQL tables, the functions, auth, et cetera.

The purpose is to allow myself to version control the project.

I have gone through the official documentation and have not found anything pertaining to this. The closest approach I can find is simply version controlling all the SQL code being used - but that is not reassuring for production purposes.

like image 677
Nicolas Essipova Avatar asked Sep 14 '25 21:09

Nicolas Essipova


1 Answers

Everything (except for some auth related features) you mentioned can be done with the Supabase CLI and it's migration capabilities. There is a guide on thw website explaining how to manage environments for this sort of setup https://supabase.com/docs/guides/cli/managing-environments.

like image 167
Andrew Smith Avatar answered Sep 16 '25 11:09

Andrew Smith