© 2026 Hedgehog Software, LLC

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

Supabase gen types

How to configurate pnpm command to execute typegen using the new API keys?

db-typegen: "supabase gen types typescript --project-id <project_id>  > lib/supabase/database.types.ts"
db-typegen: "supabase gen types typescript --project-id <project_id>  > lib/supabase/database.types.ts"


This is my current cmd line. Im getting this error:

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-16T07:41:30.84466+00:00. Re-enable them in the Supabase dashboard, or use the new publishable and secret API keys.\"}"}
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-16T07:41:30.84466+00:00. Re-enable them in the Supabase dashboard, or use the new publishable and secret API keys.\"}"}
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

Supabase gen types fails
SupabaseSSupabase / help-and-questions
4y ago
npx supabase gen types typescript broke
SupabaseSSupabase / help-and-questions
4mo ago
supabase gen types - No such container [docker]
SupabaseSSupabase / help-and-questions
4y ago
`supabase gen types typescript` URL is not valid connection string
SupabaseSSupabase / help-and-questions
4y ago