You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17-1
Original file line number
Diff line number
Diff line change
@@ -112,8 +112,24 @@ The [Stripe CLI](https://stripe.com/docs/stripe-cli#install) `fixtures` command
112
112
113
113
You can use the [Supabase CLI](https://supabase.com/docs/reference/cli/usage#supabase-gen-types-typescript) to generate types from your Database by running
114
114
115
+
1. To install supabase cli
116
+
117
+
```bash
118
+
npm install supabase --save-dev
119
+
yarn add supabase --dev
120
+
```
121
+
122
+
2. Connect to supabase
123
+
124
+
```bash
125
+
npx supabase login
126
+
```
127
+
128
+
3. Enter your access token. You can generate an access token from https://app.supabase.com/account/tokens
129
+
4. Generate types
130
+
115
131
```bash
116
-
supabase gen types typescript --db-url "postgresql://postgres:[YOUR-PASSWORD]@db.[YOUR-PROJECT-REF].supabase.co:5432/postgres"> types_db.ts
132
+
npx supabase gen types typescript --project-id [YOUR-PROJECT-REF] --schema public> types_db.ts
0 commit comments