Skip to content

Commit 11f6a48

Browse files
committed
Updating D1 get started CLI instructions
1 parent 68e16f7 commit 11f6a48

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/content/docs/d1/get-started.mdx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ To create your first D1 database:
139139
]
140140
}
141141
```
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.
142143

143144
</Steps>
144145

@@ -176,11 +177,13 @@ To bind your D1 database to your Worker:
176177

177178
<Tabs syncKey='CLIvDash'> <TabItem label='CLI'>
178179

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:
180183

181184
<Steps>
182185

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.
184187
2. Add them to the end of your Wrangler file.
185188

186189
<WranglerConfig>

0 commit comments

Comments
 (0)