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


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
First peek of supabase-js v2, which focuses on quality-of-life improvements for developers.
Was this page helpful?