Cloudflare zone pack template
Zone and account IDs with a scoped API token for DNS and deploys.
Adds #cloudflare to the browser demo. No account.
Keys
- account_id
- demo-account-id
- zone_id
- demo-zone-id
- api_token:secret
- (encrypted secret, masked)
- dashboard:url
- https://dash.cloudflare.com
Example values. Rename, add or remove keys after you create the pack.
In a task
move the DNS records to #cloudflare before Friday @fri !2
In the terminal
tsk env cloudflare
ACCOUNT_ID=demo-account-id
ZONE_ID=demo-zone-id
API_TOKEN='********'
DASHBOARD=https://dash.cloudflare.comThe real tsk decrypts secrets on your machine and prints them.
Zone IDs and account IDs are long, look alike and live three clicks deep in the dashboard. This template keeps them next to the task, together with a scoped API token for DNS changes or deploys.
tsk get cloudflare.zone_id
tsk exec cloudflare -- ./scripts/purge-cache.sh
The token is a secret field: encrypted on your device, decrypted by tsk only when a command needs it. Rename api_token to cloudflare_api_token if your tools expect that variable name.