Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
WC-5233 Add preview secret list and bulk
  • Loading branch information
podonnell-dev committed Aug 10, 2026
commit 4deb16b6555d420cb271d5bedad5b0512cc9dcc6
6 changes: 2 additions & 4 deletions .changeset/preview-secret-per-preview.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
"wrangler": minor
---

Add `wrangler preview secret put` and `wrangler preview secret delete` for managing secrets on a named Worker Preview
Add `wrangler preview secret put`, `delete`, `list`, and `bulk` for managing secrets on a named Worker Preview

These private-beta commands manage secrets on a single named Preview by creating a new Preview deployment from its latest one, without affecting production, other Previews, or the Worker's Previews base configuration.

The new deployment goes live at 100% immediately, and the command reports the live Preview URL on success.
These private-beta commands manage secrets on a single named Preview's latest deployment, without affecting production, other Previews, or the Worker's Previews base configuration. `put`, `delete`, and `bulk` create a new Preview deployment that goes live at 100% immediately and report the live Preview URL on success; `list` reads the latest deployment and prints secret names with values masked. Each command accepts `--name` to target a Preview (defaulting to the current git branch).
2 changes: 1 addition & 1 deletion packages/deploy-helpers/src/preview/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ export async function getPreviewDeployment(
accountId: string,
workerName: string,
previewIdentifier: string,
deploymentIdentifier: string
deploymentIdentifier = "latest"
): Promise<DeploymentResource> {
return fetchResult<DeploymentResource>(
config,
Expand Down
Loading