© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•3mo ago•
5 replies
C. Molendijk

Creating storage buckets by code (with migrations or config) and seeding files

is there any way to create storage buckets through config or migration SQL? And bonus points if anyone knows how to seed files automatically.

Right now when we run supabase db reset we have to recreate the buckets by hand, which isn’t great and sometimes they get set up wrong and cause issues. We also have a few files we always need for running some features of the application, and we’re adding those manually after every reset.

Would be awesome if this could all happen automatically like DB migrations/seeds. Anyone done this before?
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

storage buckets
SupabaseSSupabase / help-and-questions
2mo ago
Storage Buckets
SupabaseSSupabase / help-and-questions
3y ago
Buckets storage randomly uploading files with 0 data
SupabaseSSupabase / help-and-questions
4mo ago
Script out storage buckets
SupabaseSSupabase / help-and-questions
4y ago