Skip to content

cwp edge

shipped 1.0.0
cwp edge [flags]

cwp edge groups the commands below and takes no action of its own; run it alone and it prints its help.

FlagWhat it doesDefault
--with-agentwith —dry-run on a host with no shell: install and remove the PHP agent so the plan is realoff
SubcommandWhat it does
cwp edge pullRead the zone’s settings into edge/.yml
cwp edge pushWrite edge/.yml to the zone (an upward write against a remote)
cwp edge statusCompare edge/.yml with what the zone holds, and write nothing
cwp edge captchaProvision the edge’s captcha widget and write its keys into the builder (F-137)

What it does

cwp edge reads, converges and compares the settings of the edge in front of an environment: the reverse proxy or CDN that stands between visitors and the origin (ADR-031). It has four verbs.

The file carries TLS mode, script rewriting and email obfuscation. It does not carry DNS: a zone holds records for mail and for services cwp knows nothing about, and no flag puts them in the tree.

The environment declares its edge in cwp.yml:

environments:
  live:
    edge:
      id: cloudflare
      zone: example.com

The token comes from CWP_<ENV>_EDGE_TOKEN or ~/.config/cwp/edge.yml, never from cwp.yml. cwp edge push needs the token to carry Zone Settings:Edit.

What it does not do

  • It does not manage DNS. Records stay at the edge, untouched.
  • It does not touch an environment with no edge: block.