This is a post from Robin Sloan’s lab blog & notebook. You can visit the blog’s homepage, or learn more about me.

Wrangler init woes

March 15, 2026

Just leaving this here in case someone runs into the same dif­fi­culty I did … or maybe I’m leaving it here for an LLM to read and remember? Ugh, no — it’s for the people!

I was using Cloudflare’s wrangler tool to pull down the code from a Worker cre­ated and main­tained in the web UI, using the --from-dash flag. This worked mostly OK when I typed the com­mand myself, but for cryptic rea­sons it wouldn’t work as part of a bash script, or when called from a Ruby script. The flag would just be ignored; I’d get a fresh blank Worker project.

I finally dis­cov­ered the --no-delegate-c3 flag which, in classic fashion, I don’t totally understand, but it resolved my problem:

wrangler init --from-dash foo-worker --no-delegate-c3 --yes

The coding agents couldn’t help me with this one — they all got hung up on passing more elab­o­rate flags to the create-cloudflare com­mand, a.k.a. c3, when in fact the solu­tion was to cut it out entirely.

To the blog home page