Skip to content

Commit 8163969

Browse files
authored
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
1 parent 4f45fc1 commit 8163969

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
@@ -460,6 +460,8 @@ wrangler d1 migrations apply <DATABASE_NAME> [OPTIONS]
460460

461461
- `DATABASE_NAME` <Type text="string" /> <MetaInfo text="required" />
462462
- The name of the D1 database you wish to apply your migrations on.
463+
- `--env` <Type text="string" /> <MetaInfo text="optional" />
464+
- Specify which environment configuration to use for d1 dinding
463465
- `--local` <Type text="boolean" /> <MetaInfo text="(default: true) optional" />
464466
- Execute any unapplied migrations on your locally persisted D1 database.
465467
- `--remote` <Type text="boolean" /> <MetaInfo text="(default: false) optional" />

0 commit comments

Comments
 (0)