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: src/content/docs/d1/get-started.mdx
+5-2Lines changed: 5 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -139,6 +139,7 @@ To create your first D1 database:
139
139
]
140
140
}
141
141
```
142
+
3. When prompted: `Would you like Wrangler to add it on your behalf?`, select `Yes`. This will automatically add the binding to your Wrangler configuration file.
142
143
143
144
</Steps>
144
145
@@ -176,11 +177,13 @@ To bind your D1 database to your Worker:
176
177
177
178
<TabssyncKey='CLIvDash'> <TabItemlabel='CLI'>
178
179
179
-
You create bindings by updating your Wrangler file.
180
+
You can automatically add the binding to your Wrangler configuration file when you run the `wrangler d1 create` command (step 3 of [2. Create a database](/d1/get-started/#2-create-a-database)).
181
+
182
+
But if you wish to add the binding manually, follow the steps below:
180
183
181
184
<Steps>
182
185
183
-
1. Copy the lines obtained from [step 2](/d1/get-started/#2-create-a-database) from your terminal.
186
+
1. Copy the lines obtained from step 2 of [2. Create a database](/d1/get-started/#2-create-a-database) from your terminal.
0 commit comments