Get current worker via wrangler?
# workers-help
s
I created a few workers directly using the dashboard. Is there a way PULL a current worker into a folder via wrangler? The online "quick edit" isn't working right now, and I'd like to start using it via vscode.
s
npx wrangler init --from-dash <script name>
j
If you're using v3, you might need to use
wrangler init --from-dash --no-delegate-c3
s
thanks! npx worked perfectly
u
I don't want to necessarily necro this thread but since it's the one that showed up when doing a search for "get worker wrangler" I want to note that the docs are now incorrect. says --from-dash is the right command but running the command says:
Copy code
▲ [WARNING] The `init --from-dash` command is no longer supported. Please use `npm create cloudflare@2 worker-name -- --type pre-existing --existing-script worker-name` instead.
Which is... quite the mouthful, which nobody will ever remember in their lifetime, so maybe updating the docs would be, like, really critical 😉