Skip to content

Commit b0b3b3f

Browse files
committed
added store list
1 parent 6084138 commit b0b3b3f

File tree

2 files changed

+26
-3
lines changed

2 files changed

+26
-3
lines changed

src/content/docs/secrets-store/integrations/workers.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ If [using the Dashboard](#via-dashboard), make sure you already have a Workers a
2222

2323
You should also have a store created under the Secrets Store tab on the Dashboard. The default store in your account is automatically created when a user with [Super Administrator or Secrets Store Admin role](/secrets-store/access-control/) interacts with it.
2424

25-
You can also use the [Wrangler command](/workers/wrangler/commands/#secrets-store-store) `secrets-store store create <name>` to create your default store
25+
You can also use the [Wrangler command](/workers/wrangler/commands/#secrets-store-store) `secrets-store store create <name>` to create your default store.
2626

2727
## 1. Set up account secrets in Secrets Store
2828

@@ -59,7 +59,7 @@ npx wrangler secrets-store secret create <STORE_ID> --name MY_SECRETS_STORE_SECR
5959

6060
</TabItem> <TabItem label="API">
6161

62-
You can find and copy the store ID from the [Secrets Store tab](https://dash.cloudflare.com/?to=/:account/secrets-store/) on the dashboard. Also, make sure your secret `name` does not contain spaces.
62+
You can find and copy the store ID from the [Secrets Store tab](https://dash.cloudflare.com/?to=/:account/secrets-store/) on the dashboard or use the [Wrangler command](/workers/wrangler/commands/#secrets-store-store). Also, make sure your secret `name` does not contain spaces.
6363

6464
Refer to [Secrets Store API](/api/resources/secrets_store/) for the full API documentation.
6565

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

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,7 @@ wrangler secerets-store store delete <STORE_ID>
772772
- `STORE_ID` <Type text="string" /> <MetaInfo text="required" />
773773
- 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.
774774

775-
The following is an example of using the `create` command to create a store.
775+
The following is an example of using the `delete` command to delete a store.
776776

777777
```sh
778778
npx wrangler secrets-store store delete d2dafaeac9434de2b6d08b292ce08211
@@ -783,6 +783,29 @@ npx wrangler secrets-store store delete d2dafaeac9434de2b6d08b292ce08211
783783
✅ Deleted store! (ID: d2dafaeac9434de2b6d08b292ce08211)
784784
```
785785

786+
### list
787+
788+
List the stores within an account.
789+
790+
```txt
791+
wrangler secrets-store store list
792+
```
793+
794+
The following is an example of using the `list` command to list stores.
795+
796+
```sh
797+
npx wrangler secrets-store store list
798+
```
799+
800+
```sh output
801+
🔐 Listing stores...
802+
┌─────────┬──────────────────────────────────┬──────────────────────────────────┬──────────────────────┬──────────────────────┐
803+
│ Name │ ID │ AccountID │ Created │ Modified │
804+
├─────────┼──────────────────────────────────┼──────────────────────────────────┼──────────────────────┼──────────────────────┤
805+
│ default │ 8876bad33f164462bf0743fe8adf98f4 │ REDACTED │ 4/9/2025, 1:11:48 PM │ 4/9/2025, 1:11:48 PM │
806+
└─────────┴──────────────────────────────────┴──────────────────────────────────┴──────────────────────┴──────────────────────┘
807+
```
808+
786809
## `secrets-store secret`
787810

788811
With the release of [Secrets Store](/secrets-store/) in open beta, you can use the following commands to manage your account secrets.

0 commit comments

Comments
 (0)