© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•7mo ago•
3 replies
Martin Carlsson

Generate types

Then I try to generate types I get this error.

➜  lahore git:(admin/initial-setup) ✗ npx supabase gen types typescript --debug
Supabase CLI 2.33.7
2025/08/03 13:19:00 HTTP GET: https://api.supabase.com/v1/projects
Selected project: ...
2025/08/03 13:19:01 HTTP GET: https://api.supabase.com/v1/projects/.../types/typescript?included_schemas=public
failed to retrieve generated types: {"message":"{\"message\":\"Legacy API keys are disabled\",\"hint\":\"Your legacy API keys (anon, service_role) were disabled on 2025-07-27T07:20:23.326504+00:00. Re-enable them in the Supabase dashboard, or use the new publishable and secret API keys.\"}"}
➜  lahore git:(admin/initial-setup) ✗ 
➜  lahore git:(admin/initial-setup) ✗ npx supabase gen types typescript --debug
Supabase CLI 2.33.7
2025/08/03 13:19:00 HTTP GET: https://api.supabase.com/v1/projects
Selected project: ...
2025/08/03 13:19:01 HTTP GET: https://api.supabase.com/v1/projects/.../types/typescript?included_schemas=public
failed to retrieve generated types: {"message":"{\"message\":\"Legacy API keys are disabled\",\"hint\":\"Your legacy API keys (anon, service_role) were disabled on 2025-07-27T07:20:23.326504+00:00. Re-enable them in the Supabase dashboard, or use the new publishable and secret API keys.\"}"}
➜  lahore git:(admin/initial-setup) ✗ 


However I am using the "the new publishable and secret API keys".
image.png
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

Cannot generate types for local setup
SupabaseSSupabase / help-and-questions
7mo ago
Generate Types From the Cloud V2
SupabaseSSupabase / help-and-questions
4y ago
Can't generate types from CLI
SupabaseSSupabase / help-and-questions
4y ago
how to generate types in ci for branches?
SupabaseSSupabase / help-and-questions
7mo ago