Skip to content

Commit b4771d5

Browse files
Fill in description and example for the get command
1 parent a25511f commit b4771d5

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

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

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -807,12 +807,32 @@ wrangler secrets-store secret duplicate <STORE_ID> [OPTIONS]
807807

808808
### `get`
809809

810-
Get a secret within a store.
810+
Get information on a secret within a store.
811811

812812
```txt
813-
wrangler secrets-store secret get <STORE_ID>
813+
wrangler secrets-store secret get <STORE_ID> [OPTIONS]
814814
```
815815

816+
- `STORE_ID` <Type text="string" /> <MetaInfo text="required" />
817+
- The ID of the secrets store that contains the secret you want to get.
818+
- `--secret-id` <Type text="string" /> <MetaInfo text="required" />
819+
- The ID of the secret you want to get.
820+
- `--remote` <Type text="boolean" /> <MetaInfo text="(default: false) optional" />
821+
- Execute the command against the remote Secrets Store. To interact with account-level secrets in production, make sure to append `--remote` to your commands.
822+
823+
The following is an example with the expected output:
824+
825+
```sh
826+
npx wrangler secrets-store secret get 8f7a1cdced6342c18d223ece462fd88d --secret-id 13bc7498c6374a4e9d13be091c3c65f1 --remote
827+
```
828+
829+
```sh output
830+
🔐 Getting secret... (ID: 13bc7498c6374a4e9d13be091c3c65f1)
831+
✓ Select an account: › My account
832+
| Name | ID | StoreID | Comment | Scopes | Status | Created | Modified |
833+
|-----------------------------|-------------------------------------|---------|---------|---------|---------|------------------------|------------------------|
834+
| MY_SECRETS_STORE_SECRET | 13bc7498c6374a4e9d13be091c3c65f1 | | | workers | active | 4/9/2025, 10:06:01 PM | 4/15/2025, 09:13:05 AM |
835+
```
816836

817837
### `delete`
818838

0 commit comments

Comments
 (0)