Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

docs: mention local option in generating-types.mdx (#21695)

Vojtech Novak5302a01c60ba
diff --git a/apps/docs/content/guides/api/rest/generating-types.mdx b/apps/docs/content/guides/api/rest/generating-types.mdx
index 397acf2e9c6..624749a1d17 100644
--- a/apps/docs/content/guides/api/rest/generating-types.mdx
+++ b/apps/docs/content/guides/api/rest/generating-types.mdx
@@ -30,6 +30,12 @@ Generate types for your project to produce the `types/supabase.ts` file:
npx supabase gen types typescript --project-id "$PROJECT_REF" --schema public > types/supabase.ts
```
+or in case of local development:
+
+```bash
+npx supabase gen types typescript --local > types/supabase.ts
+```
+
These types are generated from your database schema. Given a table `public.movies`, the generated types will look like:
```sql