Wrangler dev with -c and -e flag

We have a situation where we have multiple "local" environments that we use when running wranlger dev, for example:
wrangler dev -e local1
wrangler dev -e local2

I saw that you can pass multiple workers into one wrangler dev command using the -c flag, which would greatly increase our workflow by not having to run each service bound worker in a separate terminal.

Our issue is that we don't seem to be able to pass the environment to the workers that we bind in using -c. Is there a way to specify the environment for each worker?

For example:
wrangler dev -e PRIMARY_WORKER_ENV \
-c ../secondary-worker/wrangler.jsonc -e SECONDARY_WORKER_ENV \
-c ../third-worker/wrangler/jsonc -e THIRD_WORKER_ENV
Was this page helpful?