© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
Cloudflare Developers•3y ago•
1 reply
danboyle8637

Running Service Binding Worker Locally With Pages App

I know this is a Pages "feature"... but Pages still uses Workers. And I got no response over on the Pages channel... surprised by that.

I am trying to get my service binding to run locally so I can interact locally with my app.

According to the docs...

--service=<BINDING_NAME>=<WORKER_NAME>
--service=<BINDING_NAME>=<WORKER_NAME>


This is the flag to access a running Worker in dev mode. However, the wrangler in the CLI says service is an unknown argument.

Further the docs say to run the Worker project with...

wrangler pages dev --local
wrangler pages dev --local


This would not work for me. However,
wrangler dev --local
wrangler dev --local
at least got my Worker running and I could talk to it directly... but never through the Worker I have in my Pages application.

Are there known issues not stated in the docs about service bindings?
Cloudflare Developers banner
Cloudflare DevelopersJoin
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
85,042Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Service Binding Page Worker to Worker Locally Set up
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
3y ago
Worker Service Binding not working
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
7mo ago
Worker service binding RPC TypeScript types
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
8mo ago