Skip to content

Commit 52d57f1

Browse files
Add --value with callout not to use with real secrets
1 parent 3f3d406 commit 52d57f1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -748,6 +748,11 @@ wrangler secrets-store secret create <STORE_ID> [OPTIONS]
748748
- The secret store public ID. You can find it and copy from the [Secrets Store tab](https://dash.cloudflare.com/?to=/:account/secrets-store/) on the dashboard.
749749
- `--name` <Type text="string" /> <MetaInfo text="required" />
750750
- A descriptive name for the account-level secret.
751+
- `--value` <Type text="string" /> <MetaInfo text="test only" />
752+
- Value of the secret.
753+
:::caution[Only use for testing]
754+
This will leave the secret value in plain-text in terminal history. For real secret values, use the automatic prompt instead. Find an example below.
755+
:::
751756
- `--scopes` <Type text="string" /> <MetaInfo text="required" />
752757
- Which services will have access to the account-level secret. Currently, only `workers` is available.
753758
- `--comment` <Type text="string" /> <MetaInfo text="optional" />
@@ -781,6 +786,11 @@ wrangler secrets-store secret update <STORE_ID> [OPTIONS]
781786
- The ID of the secrets store that contains the secret you are updating.
782787
- `--secret-id` <Type text="string" /> <MetaInfo text="required" />
783788
- The ID of the secret to update.
789+
- `--value` <Type text="string" /> <MetaInfo text="test only" />
790+
- Updated value of the secret.
791+
:::caution[Only use for testing]
792+
This will leave the secret value in plain-text in terminal history. For real secret values, use the automatic prompt instead.
793+
:::
784794
- `--scopes` <Type text="string" /> <MetaInfo text="required" />
785795
- Which services will have access to the account-level secret. Currently, only `workers` is available.
786796
- `--comment` <Type text="string" /> <MetaInfo text="optional" />

0 commit comments

Comments
 (0)