Skip to content

Connect Wrangler

Configure one shell or CI job for the installation and organization you intend to use. All application guides assume this connection is already configured.

Get your connection details

Open Compute → Workers → Deploy Worker in the tenant console for a command using the installation’s configured public API origin and your organization ID. Replace the token placeholder with a scoped token before running it.

Value Where to get it
Deployment API base URL, including /client/v4 Managed ermahgerd uses https://api.ermahgerd.io/client/v4; self-hosted operators publish the equivalent dedicated origin
Organization ID Your organization overview in the tenant console; this is Wrangler’s account ID
Read-write API token Management → API tokens in that organization; save the secret when it is shown

Managed-service customers connect directly over public HTTPS with their organization token. Self-hosted operators publish the same dedicated API origin. Local demo connection details remain in the local getting-started guide.

Configure your shell

Replace each placeholder with the value for your account. Keep tokens out of source control and shared shell transcripts; use a CI secret store for builds.

export CLOUDFLARE_API_BASE_URL='<deployment-api-base-url>'
export CLOUDFLARE_ACCOUNT_ID='<organization-id>'
export CLOUDFLARE_API_TOKEN='<organization-read-write-token>'

The variable names are Wrangler’s standard names. The API base URL selects ermahgerd. If it is unset, Wrangler uses Cloudflare’s API instead. The tenant console origin, a Worker URL, and the S3 endpoint are different interfaces and cannot be substituted for this API base URL.

Next, deploy a Worker to verify your connection. For reproducible builds, pin Wrangler in your project; the repository examples carry their tested version in their lockfile.

Troubleshoot the connection

  • A connection error or timeout means the API endpoint is not reachable. Check the configured origin, DNS, and certificate.
  • An authentication error means the token is missing, expired, revoked, or for a different installation.
  • An authorization error can mean the token belongs to another organization, lacks write access, or is restricted to another Worker name.

Browser sessions do not supply Wrangler credentials. Do not use the platform owner’s bootstrap token as a customer’s deployment credential.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close