Skip to content

Commit b2b5d31

Browse files
dschewchenkoToriLindsay
authored andcommitted
Update commands.mdx (#17573)
* Update commands.mdx There is no mention that if you have multiple environments in wrangler.toml, to use proper binding you must set --env parametr * Update src/content/docs/workers/wrangler/commands.mdx --------- Co-authored-by: ToriLindsay <[email protected]>
1 parent e9dda42 commit b2b5d31

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/content/docs/workers/wrangler/commands.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,8 @@ wrangler d1 migrations apply <DATABASE_NAME> [OPTIONS]
453453

454454
- `DATABASE_NAME` <Type text="string" /> <MetaInfo text="required" />
455455
- The name of the D1 database you wish to apply your migrations on.
456+
- `--env` <Type text="string" /> <MetaInfo text="optional" />
457+
- Specify which environment configuration to use for D1 binding
456458
- `--local` <Type text="boolean" /> <MetaInfo text="(default: true) optional" />
457459
- Execute any unapplied migrations on your locally persisted D1 database.
458460
- `--remote` <Type text="boolean" /> <MetaInfo text="(default: false) optional" />

0 commit comments

Comments
 (0)