© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
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 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

Key-rotation worker (using KV namespace)
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
2y ago
Cannot connect my worker to my KV store using the /settings, variables and KV Namespace
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
3y ago
How do I define the KV_NAMESPACE?
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
3y ago