Collection of agent skills for SLICC and Tessl-compatible runtimes — productivity, creative, document, and integration skills.
76
96%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
High
Do not use without reviewing
List and purge Edge Functions deployed on the Adobe Managed CDN. The companion
aem-edge-functions command mints scoped ADC tokens and calls the CDN compute
API directly.
--site <delivery-domain>.--program <id> --env <id>; add
--stage for the -cmstg host.aem.cdn scope. Prefer --tab from an open
ADC OAuth Server-to-Server credential page, or pass --client-id and
--client-secret.aem-edge-functions list --site my.site.com --tabaem-edge-functions purge --site my.site.com --service wknd-compute --all --tab
aem-edge-functions purge --site my.site.com --service wknd-compute --surrogate-key key1 --soft --tab--json.# Edge Delivery site, credentials from an open ADC console tab
aem-edge-functions list --site phornig-wknd.testaemcloud.com --tab
# Explicit OAuth Server-to-Server credentials
aem-edge-functions list --site my.site.com \
--client-id <id> --client-secret <secret> \
--scopes openid,AdobeID,aem.cdn,additional_info.projectedProductContext
# Classic AEMaaCS environment instead of an EDS site
aem-edge-functions list --program 166706 --env 12345
# Mint a token for other tooling
aem-edge-functions token --site my.site.com --tabThe CDN compute API is served directly off the delivery domain, not via
cloudmanager.adobe.io. The base path is:
| Target | Base URL |
|---|---|
| Edge Delivery site | https://<site-domain>/adobe/experimental/compute-expires-20251231/cdn |
| Classic AEMaaCS env | https://author-p<program>-e<env>[-cmstg].adobeaemcloud.com/adobe/experimental/compute-expires-20251231/cdn |
The list endpoint is GET {base}/edgeFunctions, sending only
Authorization: Bearer <token> + accept: application/json. Response shape:
{ "items": [ { "edgeFunctionName": "...", "createdAt": "...", "updatedAt": "...", "activePackageId": "..." } ] }--stage switches to the -cmstg Cloud Manager stage domain (classic env only).
--token <jwt> or AEM_EDGE_FUNCTIONS_TOKEN — use verbatim.--client-id + --client-secret (+ --scopes), or the env vars
AEM_EDGE_FUNCTIONS_ADC_CLIENT_ID / _SECRET / _SCOPES — mint via IMS.--adc-config <file.json> — an ADC project JSON or credentials-only JSON
(auto-detects {project:…} vs {CLIENT_ID,…}).--tab — read the OAuth S2S credential (client ID, secret, scopes) from an
open developer.adobe.com console tab. The credential page must show the
secret (click "Retrieve client secret" first).Default scopes if none supplied:
openid,AdobeID,aem.cdn,additional_info.projectedProductContext.
Use references/api-auth.md for IMS token and API contract details.
| Command | Purpose |
|---|---|
aem-edge-functions list | List deployed edge functions (table or --json) |
aem-edge-functions purge --service <name> --all | Purge all cached content for one function |
aem-edge-functions purge --service <name> --surrogate-key <k> | Purge by surrogate key (repeatable; add --soft for soft purge) |
aem-edge-functions token | Mint and print a scoped CDN access token (use with other tooling) |
All commands accept the same target + credential flags. Add --json for raw output.
purge POSTs to /edgeFunctions/<name>/purge. Exactly one mode is required:
--all → { "all": true }--surrogate-key <k> (repeatable) → { "surrogateKey": "k" } or { "surrogateKeys": [...] }--soft adds { "soft": true }401 Insufficient scopes — token lacks aem.cdn. You used a generic IMS
token instead of an ADC S2S credential. Mint with the right scopes.client secret not visible on the ADC tab — on the OAuth S2S credential
page, click "Retrieve client secret" before running with --tab.items — no edge functions deployed, or the config pipeline hasn't
run a successful deploy yet.references/api-auth.md — token minting, endpoint details, purge body shape.references/config-pipeline.md — fallback cross-check from Managed CDN config.