Skip to content

Commit a25511f

Browse files
Add desciption for update, duplicate, and delete
1 parent b9a8329 commit a25511f

File tree

1 file changed

+32
-6
lines changed

1 file changed

+32
-6
lines changed

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

Lines changed: 32 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -770,20 +770,40 @@ npx wrangler secrets-store secret create 8f7a1cdced6342c18d223ece462fd88d --name
770770
Update a secret within a store.
771771

772772
```txt
773-
wrangler secrets-store secret update <STORE_ID>
773+
wrangler secrets-store secret update <STORE_ID> [OPTIONS]
774774
```
775775

776-
776+
- `STORE_ID` <Type text="string" /> <MetaInfo text="required" />
777+
- The ID of the secrets store that contains the secret you are updating.
778+
- `--secret-id` <Type text="string" /> <MetaInfo text="required" />
779+
- The ID of the secret to update.
780+
- `--scopes` <Type text="string" /> <MetaInfo text="required" />
781+
- Which services will have access to the account-level secret. Currently, only `workers` is available.
782+
- `--comment` <Type text="string" /> <MetaInfo text="optional" />
783+
- Updated comment for the account-level secret.
784+
- `--remote` <Type text="boolean" /> <MetaInfo text="(default: false) optional" />
785+
- Execute the command against the remote Secrets Store. To interact with account-level secrets in production, make sure to append `--remote` to your commands.
777786

778787
### `duplicate`
779788

780-
Duplicate a secret within a store.
789+
Duplicate a secret within a store. Use this command to create a new secret that holds the same secret value as an existing secret.
781790

782791
```txt
783-
wrangler secrets-store secret duplicate <STORE_ID>
792+
wrangler secrets-store secret duplicate <STORE_ID> [OPTIONS]
784793
```
785794

786-
795+
- `STORE_ID` <Type text="string" /> <MetaInfo text="required" />
796+
- The ID of the secrets store that contains the secret you are duplicating.
797+
- `--secret-id` <Type text="string" /> <MetaInfo text="required" />
798+
- The ID of the secret you are duplicating.
799+
- `--name` <Type text="string" /> <MetaInfo text="required" />
800+
- A name for the new secret.
801+
- `--scopes` <Type text="string" /> <MetaInfo text="required" />
802+
- Which services will have access to the new account-level secret. Currently, only `workers` is available.
803+
- `--comment` <Type text="string" /> <MetaInfo text="optional" />
804+
- Additional information about the new account-level secret.
805+
- `--remote` <Type text="boolean" /> <MetaInfo text="(default: false) optional" />
806+
- Execute the command against the remote Secrets Store. To interact with account-level secrets in production, make sure to append `--remote` to your commands.
787807

788808
### `get`
789809

@@ -803,9 +823,15 @@ Before deleting a secret, make sure it is not deployed in any Workers applicatio
803823
:::
804824

805825
```txt
806-
wrangler secrets-store secret delete <STORE_ID>
826+
wrangler secrets-store secret delete <STORE_ID> [OPTIONS]
807827
```
808828

829+
- `STORE_ID` <Type text="string" /> <MetaInfo text="required" />
830+
- The ID of the secrets store that contains the secret you are deleting.
831+
- `--secret-id` <Type text="string" /> <MetaInfo text="required" />
832+
- The ID of the secret you are deleting.
833+
- `--remote` <Type text="boolean" /> <MetaInfo text="(default: false) optional" />
834+
- Execute the command against the remote Secrets Store. To interact with account-level secrets in production, make sure to append `--remote` to your commands.
809835

810836
### `list`
811837

0 commit comments

Comments
 (0)