Search
Star
Feedback
Setup for Free
Β© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
how can I use the env vars in .env when deploying a worker via wrangler? - Cloudflare Developers
CD
Cloudflare Developers
β’
5mo ago
β’
5 replies
LukeZ
how can I use the env vars in .env when deploying a worker via wrangler?
I have done it before
, I ust don
't know how
I have an
.env file on my dev environment and used
wrangler deploy
wrangler deploy
- it shipped the env variables in the file as well
. However
, my current project doesn
't do this somehow
. Any idea why
?
Cloudflare Developers
Join
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
86,529
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
wrangler deployment overwrites env vars in the worker
CD
Cloudflare Developers / workers-and-pages-help
13mo ago
Env Vars in Worker
CD
Cloudflare Developers / workers-and-pages-help
2y ago
hiding open source worker env vars
CD
Cloudflare Developers / workers-and-pages-help
3y ago