Skip to content

Commit 2cec4f3

Browse files
committed
Fix indentation
1 parent b4a458b commit 2cec4f3

File tree

1 file changed

+31
-35
lines changed

1 file changed

+31
-35
lines changed

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

Lines changed: 31 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -121,28 +121,24 @@ To create your first D1 database:
121121
While Wrangler gets installed locally to your project, you can use it outside the project by using the command `npx wrangler`.
122122
:::
123123

124-
```sh
125-
npx wrangler@latest d1 create prod-d1-tutorial
126-
```
127-
128-
```txt output
129-
130-
✅ Successfully created DB 'prod-d1-tutorial' in region WEUR
131-
Created your new D1 database.
132-
133-
{
134-
"d1_databases": [
135-
{
136-
"binding": "DB",
137-
"database_name": "prod-d1-tutorial",
138-
"database_id": "<unique-ID-for-your-database>"
139-
}
140-
]
141-
}
142-
143-
```
144-
124+
```sh
125+
npx wrangler@latest d1 create prod-d1-tutorial
126+
```
145127

128+
```txt output
129+
✅ Successfully created DB 'prod-d1-tutorial' in region WEUR
130+
Created your new D1 database.
131+
132+
{
133+
"d1_databases": [
134+
{
135+
"binding": "DB",
136+
"database_name": "prod-d1-tutorial",
137+
"database_id": "<unique-ID-for-your-database>"
138+
}
139+
]
140+
}
141+
```
146142

147143
</Steps>
148144

@@ -257,7 +253,7 @@ After correctly preparing your [Wrangler configuration file](/workers/wrangler/c
257253
npx wrangler d1 execute prod-d1-tutorial --local --file=./schema.sql
258254
```
259255
```txt output
260-
⛅️ wrangler 4.13.2
256+
⛅️ wrangler 4.13.2
261257
-------------------
262258
263259
🌀 Executing on local database prod-d1-tutorial (<DATABASE_ID>) from .wrangler/state/v3/d1:
@@ -442,7 +438,7 @@ To deploy your Worker to production using Wrangler, you must first repeat the [d
442438
npx wrangler d1 execute prod-d1-tutorial --remote --command="SELECT * FROM Customers"
443439
```
444440
```txt output
445-
⛅️ wrangler 4.13.2
441+
⛅️ wrangler 4.13.2
446442
-------------------
447443
448444
🌀 Executing on remote database prod-d1-tutorial (<DATABASE_ID>):
@@ -467,18 +463,18 @@ To deploy your Worker to production using Wrangler, you must first repeat the [d
467463
npx wrangler deploy
468464
```
469465
```txt output
470-
⛅️ wrangler 4.13.2
471-
-------------------
472-
473-
Total Upload: 0.19 KiB / gzip: 0.16 KiB
474-
Your worker has access to the following bindings:
475-
- D1 Databases:
476-
- DB: prod-d1-tutorial (<DATABASE_ID>)
477-
Uploaded d1-tutorial (3.76 sec)
478-
Deployed d1-tutorial triggers (2.77 sec)
479-
https://d1-tutorial.<YOUR_SUBDOMAIN>.workers.dev
480-
Current Version ID: <VERSION_ID>
481-
```
466+
⛅️ wrangler 4.13.2
467+
-------------------
468+
469+
Total Upload: 0.19 KiB / gzip: 0.16 KiB
470+
Your worker has access to the following bindings:
471+
- D1 Databases:
472+
- DB: prod-d1-tutorial (<DATABASE_ID>)
473+
Uploaded d1-tutorial (3.76 sec)
474+
Deployed d1-tutorial triggers (2.77 sec)
475+
https://d1-tutorial.<YOUR_SUBDOMAIN>.workers.dev
476+
Current Version ID: <VERSION_ID>
477+
```
482478

483479
You can now visit the URL for your newly created project to query your live database.
484480

0 commit comments

Comments
 (0)