Skip to main content
← Gists
bash Feb 19, 2026

Set Worker Secrets with Wrangler

Add encrypted secrets for a deployed Worker.

Wrangler stores secrets securely and deploys a new version with the updated values.

Command

wrangler-secret-put.sh
pnpm dlx wrangler@latest secret put MY_SECRET