Manage Variable and Secrets from cli/API

Hi all 👋 I’m working with a Worker which is a Nuxt App and need some clarity around managing environment variables: • I already use wrangler.toml/jsonrc for build/deploy. • I’d like to automate updating Variables & Secrets for the Worker. • I don’t want to use Secrets Store or secret_text—just plain Variables & Secrets like those in the dashboard. • My goal is to update these automatically (Terraform/CLI/API) without redeploying the script or switching away from Workers Builds. From the docs, I see that runtime bindings (env.MY_VAR) can be managed via Workers Versions/Deployments in Terraform, but Build-time Variables & Secrets (Workers Builds) don’t seem to have an API/TF method yet. 👉 Can someone confirm: • Is there a way today to manage Build-time Variables & Secrets for Workers Builds through API/TF/CLI? • Or is the current path to either (a) set them manually in the dashboard, or (b) run the build in my own CI so I can pass env vars there? Thanks! 🙏
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?