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"


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.\"}"}
Was this page helpful?