Skip to content

Commit 6084138

Browse files
committed
added to workers integration doc and wranglers command doc pt 2
1 parent e4cebe3 commit 6084138

File tree

2 files changed

+54
-0
lines changed

2 files changed

+54
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ 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
26+
2527
## 1. Set up account secrets in Secrets Store
2628

2729
If there are no account secrets yet, follow the steps below. You must have a [Super Administrator or a Secrets Store Admin role](/secrets-store/access-control/) within your Cloudflare account.

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

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -731,6 +731,58 @@ Finished processing secrets JSON file:
731731
🚨 1 secrets failed to upload
732732
```
733733

734+
## `secrets-store store`
735+
736+
With the release of [Secrets Store](/secrets-store/) in open beta, you can use the following commands to manage your store.
737+
738+
:::note[store limitation]
739+
Each account only supports one store in beta.
740+
:::
741+
742+
### create
743+
744+
Create a store within Secrets Store.
745+
746+
```txt
747+
wrangler secerets-store store create <name>
748+
```
749+
750+
- `name` <Type text="string" /> <MetaInfo text="required" />
751+
- A descriptive name for the account-level secret. Cannot contain spaces.
752+
753+
The following is an example of using the `create` command to create a store.
754+
755+
```txt
756+
wrangler secrets-store store create default --remote
757+
```
758+
759+
```sh output
760+
🔐 Creating store... (Name: default)
761+
✅ Created store! (Name: default, ID: 2e2a82d317134506b58defbe16982d54)
762+
```
763+
764+
### delete
765+
766+
Delete a store within Secrets Store.
767+
768+
```txt
769+
wrangler secerets-store store delete <STORE_ID>
770+
```
771+
772+
- `STORE_ID` <Type text="string" /> <MetaInfo text="required" />
773+
- 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.
774+
775+
The following is an example of using the `create` command to create a store.
776+
777+
```sh
778+
npx wrangler secrets-store store delete d2dafaeac9434de2b6d08b292ce08211
779+
```
780+
781+
```sh output
782+
🔐 Deleting store... (Name: d2dafaeac9434de2b6d08b292ce08211)
783+
✅ Deleted store! (ID: d2dafaeac9434de2b6d08b292ce08211)
784+
```
785+
734786
## `secrets-store secret`
735787

736788
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)