INTEGRITY Cloudflare Docs

Secrets Store

Interact with Secret Store using Wrangler.

secrets-store secret

Use the following commands to manage your account secrets.

secrets-store secret create

Create a secret within a store

npx wrangler secrets-store secret create [STORE-ID]

Global flags

The following is an example of using the create command to create an account-level secret.

npx wrangler secrets-store secret create 8f7a1cdced6342c18d223ece462fd88d --name ServiceA_key-1 --scopes workers --remote
✓ Enter a secret value: › ***

🔐 Creating secret... (Name: ServiceA_key-1, Value: REDACTED, Scopes: workers, Comment: undefined)
✓ Select an account: › My account
✅ Created secret! (ID: 13bc7498c6374a4e9d13be091c3c65f1)

secrets-store secret update

Update a secret within a store

npx wrangler secrets-store secret update [STORE-ID]

Global flags

secrets-store secret duplicate

Duplicate a secret within a store

npx wrangler secrets-store secret duplicate [STORE-ID]

Global flags

secrets-store secret get

Get a secret within a store

npx wrangler secrets-store secret get [STORE-ID]

Global flags

The following is an example with the expected output:

npx wrangler secrets-store secret get 8f7a1cdced6342c18d223ece462fd88d --secret-id 13bc7498c6374a4e9d13be091c3c65f1 --remote
🔐 Getting secret... (ID: 13bc7498c6374a4e9d13be091c3c65f1)
✓ Select an account: › My account
| Name                        | ID                                  | StoreID                             | Comment | Scopes  | Status  | Created                | Modified               |
|-----------------------------|-------------------------------------|-------------------------------------|---------|---------|---------|------------------------|------------------------|
| ServiceA_key-1          | 13bc7498c6374a4e9d13be091c3c65f1    | 8f7a1cdced6342c18d223ece462fd88d    |         | workers | active  | 4/9/2025, 10:06:01 PM  | 4/15/2025, 09:13:05 AM |

secrets-store secret delete

Delete a secret within a store

npx wrangler secrets-store secret delete [STORE-ID]

Global flags

secrets-store secret list

List secrets within a store

npx wrangler secrets-store secret list [STORE-ID]

Global flags

secrets-store store

Use the following commands to manage your store.

secrets-store store create

Create a store within an account

npx wrangler secrets-store store create [NAME]

Global flags

The following is an example of using the create command to create a store.

npx wrangler secrets-store store create default --remote
🔐 Creating store... (Name: default)
✅ Created store! (Name: default, ID: 2e2a82d317134506b58defbe16982d54)

secrets-store store delete

Delete a store within an account

npx wrangler secrets-store store delete [STORE-ID]

Global flags

The following is an example of using the delete command to delete a store.

npx wrangler secrets-store store delete d2dafaeac9434de2b6d08b292ce08211 --remote
🔐 Deleting store... (Name: d2dafaeac9434de2b6d08b292ce08211)
✅ Deleted store! (ID: d2dafaeac9434de2b6d08b292ce08211)

secrets-store store list

List stores within an account

npx wrangler secrets-store store list

Global flags

The following is an example of using the list command to list stores.

npx wrangler secrets-store store list --remote
🔐 Listing stores...
┌─────────┬──────────────────────────────────┬──────────────────────────────────┬──────────────────────┬──────────────────────┐
│ Name    │ ID                               │ AccountID                        │ Created              │ Modified             │
├─────────┼──────────────────────────────────┼──────────────────────────────────┼──────────────────────┼──────────────────────┤
│ default │ 8876bad33f164462bf0743fe8adf98f4 │ REDACTED │ 4/9/2025, 1:11:48 PM  │ 4/9/2025, 1:11:48 PM │
└─────────┴──────────────────────────────────┴──────────────────────────────────┴──────────────────────┴──────────────────────┘