Skip to content

Commit 9d833a4

Browse files
authored
Docs for wrangler secret bulk env support (#19056)
* docs for wrangler secret bulk env file support * remove unclosed bracket --------- Co-authored-by: Thomas Ankcorn <[email protected]>
1 parent 8a943fe commit 9d833a4

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

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

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,9 @@ wrangler secret bulk [<FILENAME>] [OPTIONS]
739739
```
740740

741741
- `FILENAME` <Type text="string" /> <MetaInfo text="optional" />
742+
- A file containing either [JSON](https://www.json.org/json-en.html) or the [.env](https://www.dotenv.org/docs/security/env) format
742743
- The JSON file containing key-value pairs to upload as secrets, in the form `{"SECRET_NAME": "secret value", ...}`.
744+
- The `.env` file containing key-value pairs to upload as secrets, in the form `SECRET_NAME=secret value`.
743745
- If omitted, Wrangler expects to receive input from `stdin` rather than a file.
744746
- `--name` <Type text="string" /> <MetaInfo text="optional" />
745747
- Perform on a specific Worker rather than inheriting from the `wrangler.toml / wrangler.json` file.
@@ -925,8 +927,6 @@ wrangler workflows trigger <WORKFLOW_NAME> <PARAMS> [OPTIONS]
925927
wrangler workflows trigger my-workflow '{"hello":"world"}'
926928
```
927929

928-
{/*
929-
930930
### `delete`
931931

932932
Delete (unregister) a Workflow.
@@ -938,7 +938,7 @@ wrangler workflows delete <WORKFLOW_NAME> [OPTIONS]
938938
- `WORKFLOW_NAME` <Type text="string" /> <MetaInfo text="required" />
939939
- The name of a registered Workflow.
940940

941-
*/}
941+
\*/}
942942

943943
## `tail`
944944

@@ -1227,7 +1227,9 @@ wrangler pages secret bulk [<FILENAME>] [OPTIONS]
12271227
```
12281228

12291229
- `FILENAME` <Type text="string" /> <MetaInfo text="optional" />
1230+
- A file containing either [JSON](https://www.json.org/json-en.html) or the [.env](https://www.dotenv.org/docs/security/env) format
12301231
- The JSON file containing key-value pairs to upload as secrets, in the form `{"SECRET_NAME": "secret value", ...}`.
1232+
- The `.env` file containing key-value pairs to upload as secrets, in the form `SECRET_NAME=secret value`.
12311233
- If omitted, Wrangler expects to receive input from `stdin` rather than a file.
12321234
- `--project-name` <Type text="string" /> <MetaInfo text="optional" />
12331235
- The name of your Pages project.
@@ -1519,7 +1521,9 @@ wrangler versions secret bulk <FILENAME> [OPTIONS]
15191521
```
15201522

15211523
- `FILENAME` <Type text="string" /> <MetaInfo text="optional" />
1524+
- A file containing either [JSON](https://www.json.org/json-en.html) or the [.env](https://www.dotenv.org/docs/security/env) format
15221525
- The JSON file containing key-value pairs to upload as secrets, in the form `{"SECRET_NAME": "secret value", ...}`.
1526+
- The `.env` file containing key-value pairs to upload as secrets, in the form `SECRET_NAME=secret value`.
15231527
- If omitted, Wrangler expects to receive input from `stdin` rather than a file.
15241528
- `--name` <Type text="string" /> <MetaInfo text="optional" />
15251529
- Perform on a specific Worker rather than inheriting from the `wrangler.toml / wrangler.json` file.

0 commit comments

Comments
 (0)