I want to generate types for the cloud database tables I have hosted with Supabase. In the docs, I saw this script:
supabase startsupabase gen types typescript --local > lib/database.types.ts
supabase startsupabase gen types typescript --local > lib/database.types.ts
The question is: How do I get this to use the types for tables in my remote database? When I ran the commands as seen above, it generated types for a new local database.
I haven't found a way to specificy which db I want to generate the types for in the Supabase docs.
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.