Skip to content

Commit d8ac8b2

Browse files
Add section on Wrangler env variables (cloudflare#3178)
* add section on Wrangler env variables * Update products/workers/src/content/cli-wrangler/commands.md Co-authored-by: Kate Tungusova <[email protected]> Co-authored-by: Kate Tungusova <[email protected]>
1 parent fb90865 commit d8ac8b2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

products/workers/src/content/cli-wrangler/commands.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1021,6 +1021,14 @@ y
10211021
10221022
--------------------------------
10231023
1024+
## Environment variables
1025+
1026+
Wrangler supports any `wrangler.toml` keys passed in as environment variables. This works by passing in `CF_` + any uppercased TOML key. For example:
1027+
1028+
`CF_NAME=my-worker CF_ACCOUNT_ID=1234 wrangler dev`
1029+
1030+
--------------------------------
1031+
10241032
## --help
10251033
10261034
```sh

0 commit comments

Comments
 (0)