© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
10 replies
jdgamble555

Generate Types From the Cloud V2

The new supabase-js-v2 says I can generate types from the cli. The CLI, however, has nothing to do with supabase-js, so I am confused.

https://supabase.com/blog/supabase-js-v2

I tried running:

supabase start
supabase gen types typescript --local > DatabaseDefinitions.ts
supabase start
supabase gen types typescript --local > DatabaseDefinitions.ts


But of course it thinks I am running a local Docker version of Supabase. How can I generate the types from my cloud database?

Thanks,

J
Supabase
supabase-js v2 Release Candidate
First peek of supabase-js v2, which focuses on quality-of-life improvements for developers.
supabase-js v2 Release Candidate
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

Generate types
SupabaseSSupabase / help-and-questions
7mo ago
Can't generate types from CLI
SupabaseSSupabase / help-and-questions
4y ago
Help generate types with the CLI from remote instance, access errors
SupabaseSSupabase / help-and-questions
3h ago
Cannot generate types for local setup
SupabaseSSupabase / help-and-questions
7mo ago