cloudflare · Cloudflare Workers Docs
Workers System environment variables
Teaches how to configure and manage Wrangler system environment variables using .env files, inline command values, or shell environment exports to modify CLI behavior and local development settings.
Derived skill
Files assembled from official documentation
Viewing SKILL.md
Workers System environment variables
Teaches how to configure and manage Wrangler system environment variables using .env files, inline command values, or shell environment exports to modify CLI behavior and local development settings.
When To Use
Use when you need to configure Wrangler authentication for CI/CD, change CLI logging levels, or manage local development environment variables via .env files.
Reference Files
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/workers-wrangler-system-environment-variables-workflow-guide.md | A guide detailing the supported system environment variables used to configure Wrangler behavior, including methods for setting them via .env files. | Questions about a guide detailing the supported system environment variables used to configure Wrangler behavior, including methods f... |
examples/workers-wrangler-system-environment-variables-cloudflare-workers-system-.text | A text example demonstrating how to access system environment variables within a Cloudflare Workers script. | Exact payloads, commands, or snippets shown in A text example demonstrating how to access system environment variables within a Cloudflare Workers script. |
examples/workers-wrangler-system-environment-variables-cloudflare-workers-wrangle.text | A JSON-formatted log entry representing a Wrangler session and deployment metadata for a Cloudflare Worker. | Exact payloads, commands, or snippets shown in A JSON-formatted log entry representing a Wrangler session and deployment metadata for a Cloudflare Worker. |
examples/workers-wrangler-system-environment-variables-cloudflare-workers-system--2.text | A list of Cloudflare Workers system environment variables including account ID, API tokens, and Wrangler configuration settings. | Exact payloads, commands, or snippets shown in A list of Cloudflare Workers system environment variables including account ID, API tokens, and Wrangler configuratio... |
What This Skill Covers
- System environment variables are local environment variables that can change Wrangler's behavior. There are three ways to set system environment variables:
- Main sections:
Supported environment variables,Example output file,Example .env file,Deprecated global variables.
Workflow
- Open the most relevant file under
docs/for the exact documented workflow and wording. - Open
schemas/files for exact structured contracts. - Open
examples/files for concrete requests, commands, snippets, and manifests. - Do not add behavior or configuration that is not present in the attached source files.
Canonical source: https://developers.cloudflare.com/workers/wrangler/system-environment-variables
