Can't sync secrets from Doppler to Cloudflare Workers

Hello everyone.

I tried to follow the official guide on how to sync secrets from Doppler to Cloudflare Workers, but I hit a wall. I got to the point where I pasted the command wrangler secret:bulk <(doppler secrets --json | jq -c 'with_entries(.value = .value.computed)'), but I got an error: X [ERROR] Unknown arguments: secret:bulk, /proc/559/fd/63. Why is that? I did everything exactly as you advised.

What’s wrong then?

Cheers

BS

Hello!

Thanks for calling this out! It looks like at some point Cloudflare deprecated the secret:bulk syntax in wrangler with v4. Can you try this again with secret bulk instead? In the meantime, I’m getting our docs updated for the new format.

Additionally, it looks like the wrangler CLI no longer supports process substitution, so you’ll likely need to do this instead:

doppler secrets --json | jq -c ‘with_entries(.value = .value.computed)’ | wrangler secret bulk

Thank you.

It’s working now.

Hey guys - is there a way to use the Doppler Config Sync to CF workers? It only lists pages when setup using the Doppler Help doc on this.