From 9a08e00717cf8049053120685642a7da4f74bf8c Mon Sep 17 00:00:00 2001 From: Thomas Ankcorn Date: Tue, 7 Jan 2025 17:50:52 +0000 Subject: [PATCH 1/2] docs for wrangler secret bulk env file support --- src/content/docs/workers/wrangler/commands.mdx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/content/docs/workers/wrangler/commands.mdx b/src/content/docs/workers/wrangler/commands.mdx index 6a90c90f4afcbea..45e35a4dbc770dc 100644 --- a/src/content/docs/workers/wrangler/commands.mdx +++ b/src/content/docs/workers/wrangler/commands.mdx @@ -1272,7 +1272,9 @@ wrangler secret:bulk [] [OPTIONS] ``` - `FILENAME` + - A file containing either [JSON](https://www.json.org/json-en.html) or the [.env](https://www.dotenv.org/docs/security/env) format - The JSON file containing key-value pairs to upload as secrets, in the form `{"SECRET_NAME": "secret value", ...}`. + - The `.env` file containing key-value pairs to upload as secrets, in the form `SECRET_NAME=secret value`. - If omitted, Wrangler expects to receive input from `stdin` rather than a file. - `--name` - Perform on a specific Worker rather than inheriting from `wrangler.toml`. @@ -1458,7 +1460,7 @@ wrangler workflows trigger [OPTIONS] wrangler workflows trigger my-workflow '{"hello":"world"}' ``` -{/* +{/\* ### `delete` @@ -1471,7 +1473,7 @@ wrangler workflows delete [OPTIONS] - `WORKFLOW_NAME` - The name of a registered Workflow. -*/} +\*/} ## `tail` @@ -1760,7 +1762,9 @@ wrangler pages secret bulk [] [OPTIONS] ``` - `FILENAME` + - A file containing either [JSON](https://www.json.org/json-en.html) or the [.env](https://www.dotenv.org/docs/security/env) format - The JSON file containing key-value pairs to upload as secrets, in the form `{"SECRET_NAME": "secret value", ...}`. + - The `.env` file containing key-value pairs to upload as secrets, in the form `SECRET_NAME=secret value`. - If omitted, Wrangler expects to receive input from `stdin` rather than a file. - `--project-name` - The name of your Pages project. @@ -2052,7 +2056,9 @@ wrangler versions secret bulk [OPTIONS] ``` - `FILENAME` + - A file containing either [JSON](https://www.json.org/json-en.html) or the [.env](https://www.dotenv.org/docs/security/env) format - The JSON file containing key-value pairs to upload as secrets, in the form `{"SECRET_NAME": "secret value", ...}`. + - The `.env` file containing key-value pairs to upload as secrets, in the form `SECRET_NAME=secret value`. - If omitted, Wrangler expects to receive input from `stdin` rather than a file. - `--name` - Perform on a specific Worker rather than inheriting from `wrangler.toml`. From 5539d6cde789f9d164963a076f34ddc2139c4284 Mon Sep 17 00:00:00 2001 From: Ankcorn Date: Tue, 7 Jan 2025 18:55:09 +0000 Subject: [PATCH 2/2] remove unclosed bracket --- src/content/docs/workers/wrangler/commands.mdx | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/content/docs/workers/wrangler/commands.mdx b/src/content/docs/workers/wrangler/commands.mdx index 45e35a4dbc770dc..319a8773936f052 100644 --- a/src/content/docs/workers/wrangler/commands.mdx +++ b/src/content/docs/workers/wrangler/commands.mdx @@ -1460,8 +1460,6 @@ wrangler workflows trigger [OPTIONS] wrangler workflows trigger my-workflow '{"hello":"world"}' ``` -{/\* - ### `delete` Delete (unregister) a Workflow.