`supabase gen types typescript` URL is not valid connection string

I'm trying to use supabase gen types typescript on my remote database on platform but I cannot get it to accept a --db-url flag.

I have tried:

supabase gen types typescript --db-url '<project-id>' > database.types.ts
supabase gen types typescript --db-url '<project-id>.supabase.co' > database.types.ts
supabase gen types typescript --db-url 'db.<project-id>.supabase.co' > database.types.ts
supabase gen types typescript --db-url 'https://<project-id>.supabase.co' > database.types.ts
supabase gen types typescript --db-url 'https://db.<project-id>.supabase.co' > database.types.ts

And I always get Error: URL is not a valid Supabase connection string.

I have copy-pasted the project ID so I know that's correct.

Also, can I assume this isn't going to make any types for db functions that return a table?
Was this page helpful?