Penv Cloud
Start free
Docs
Reference

Cloudflare Pages

Move environment variables to and from a Pages project.

Move environment variables to and from a Pages project.

Connection

WhatThis provider
VendorCloudflare
Keycloudflare-pages
Availabilityavailable. You can connect it today.
Credential we holdcloudflare-token
Values read backyes
Activationon-next-deploy

Directions

DirectionWhat it does
importWe read names and values out of the store into your environment.
exportWe write names and values from your environment into the store.

Activation

on-next-deploy. A new value waits there and arrives with your next deploy.

Conflict policies

DirectionPolicies you can pick
importskip_existing, new_version, fail
exportcreate_only, overwrite, overwrite_and_prune

How syncs work says what each one does.

Connect

Paste a credential from the vendor. We seal it and never show it again.

FieldLabelKindRequiredWhat it is
apiTokenAPI tokensecret; we mask it here and seal ityes

Connection fields

You set these when you connect. Every mapping on the connection shares them.

FieldLabelKindRequiredAdvancedWhat it is
accountIdAccount IDtextyesnoWorkers & Pages in the dashboard shows it in the right-hand column.

Mapping fields

You answer these once per environment you map.

FieldLabelKindRequiredAdvancedWhat it is
projectNamePages projecttextyesnoThe project whose variables this environment maps onto.
environmentDeploymentschoiceyesyesEncrypted variables already there cannot be read back, so import skips them. One of Production, Preview. Starts at production.

Required permissions

We probe for these when we verify the connection.

PermissionDirectionsBlockingWithout it
Account Settings:Readevery directionyesWe cannot confirm the token reaches this account.
Cloudflare Pages:Readevery directionyesPreview cannot list the project's variables.
Cloudflare Pages:EditexportyesExport cannot write anything.