© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
CD
Cloudflare Developers
•
2y ago
•
23 replies
Wen
Cannot access kv namespace
Im trying to make a cache system using kv namespace in wrangler and im trying to acesss it like so
env.name.get('key')
env.name.get('key')
but it gives reference error env not defined
. also i have added the namespace name
, id and preview
_id to wrangler
.toml file
help pls
Cloudflare Developers
Join
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
85,042
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
Key-rotation worker (using KV namespace)
CD
Cloudflare Developers / workers-and-pages-help
2y ago
Cannot connect my worker to my KV store using the /settings, variables and KV Namespace
CD
Cloudflare Developers / workers-and-pages-help
3y ago
How do I define the KV_NAMESPACE?
CD
Cloudflare Developers / workers-and-pages-help
3y ago