Cloudflare DevelopersCD
Cloudflare Developers9mo ago
11 replies
Ricky U

Secret Store In Local Dev Mode?

I am using the new Secrets Store, and using them in a worker using the binding in the toml file, but in dev mode using npx wrangler dev the console shows :
Secret "MDB_URI" not found

Well Okay the docs say :
Local development mode This guide assumes you are working in production. To use Secrets Store locally, you must use secrets-store secret Wrangler commands without the --remote flag.

Well If I follow that it says :

--remote
option

In order to interact with Secrets Store in production, you should append --remote to your command. Without it, your command will default to local development mode.


Okay so all I want is the npx wrangler to use my remote secret store?
Was this page helpful?