unstable_dev wrangler authentication

Hey there, I'm using https://developers.cloudflare.com/workers/wrangler/api/#unstable_dev for testing and it's great locally, where I have wrangler authenticated, but how would I do this in CI? there are no docs around it. I tried setting CLOUDFLARE_API_TOKEN as env variable, which works for deploying workers, but apparently that doesn't work with unstable_dev(.., { local: false})
Cloudflare Docs
API · Cloudflare Workers docs
A set of programmatic APIs that can be integrated with local Cloudflare Workers-related workflows.
1 Reply
chronark
chronark3mo ago
scratch that, apparently the variable just wasn't loaded properly in the CI env