Prompt Buddy logoPrompt Buddy

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.

Import to Prompt Buddy

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

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/workers-wrangler-system-environment-variables-workflow-guide.mdA 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-.textA 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.textA 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.textA 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

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. 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