Provision secrets from the command line

Hello.

I'd like to be able to provision secrets on Cloudflare conveniently. I'd like to do npx wrangler secret put <KEY> for example and for Wrangler to get the key from .dev.vars? I don't want to paste the key into the keyboard or type it in.

How do you solve this workflow problem? Or maybe I'm missing something?

Thanks
Was this page helpful?