Akamai CLI
$ akamai Official High RiskAkamai CLI (akamai) is a modular Go launcher that installs and runs Akamai product packages (property-manager, dns, purge, edgeworkers) using ~/.edgerc EdgeGrid credentials. Many packages support --json or AKAMAI_OUTPUT_JSON=true, though flag conventions vary per module.
brew install akamai akamai interacts with local property/EdgeWorkers codebundles and EdgeGrid signing directly, avoiding manual EdgeGrid HMAC auth setup in MCP wrappers.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Core CLI is non-interactive and many modules support --json / AKAMAI_OUTPUT_JSON=true, but sub-packages are heterogeneous (Go/Node/Python) with inconsistent flags.
--jsonandAKAMAI_OUTPUT_JSON=truework on supported packages- Requires
akamai install <pkg>to fetch sub-packages before use
Staging vs production targeting (--staging) and ~/.edgerc --section scoping help, though production cache purges and DNS/property activations can cause outages.
--stagingflag separates test edge activations from production
Base akamai binary installs cleanly via Homebrew, but individual packages may pull Node.js or Python runtimes when installed via akamai install.
- Modular plugin runtime dependencies vary by Akamai package
Handles Akamai's complex EdgeGrid HMAC request signing automatically across DNS, EdgeWorkers, and Property Manager.
- Automates EdgeGrid auth from
~/.edgerc
Official Akamai Technologies tool (akamai/cli) under Apache-2.0 license.
- Official
akamai/clirepository under Apache-2.0
Well-structured documentation at techdocs.akamai.com and per-package --help.
- Official documentation on Akamai TechDocs
Security, Auth & Guardrails
Reads EdgeGrid API credentials (client_secret, host, access_token, client_token) from ~/.edgerc (--edgerc, --section) or AKAMAI_* env vars.
Apache-2.0 open-source CLI; requires an active Akamai contract/account for EdgeGrid API access.
# Akamai CLI Agent Rules - Pin `--section <profile>` on `~/.edgerc` and test `akamai purge` / `property` changes against `--staging` first. - Pass `--json` where supported by the installed sub-package. - Never purge production wildcard paths or activate production property versions without explicit approval.
Agent-Ready Command Recipes
Safe Read-Only Queries
akamai list
Shows installed modular packages (dns, property, purge) and available commands.
akamai dns list-zoneconfig --type primary --json
Queries configured primary DNS zones in structured JSON (requires the dns package).
Controlled Writes & Previews
akamai purge invalidate --staging https://example.com/assets/app.js
Invalidates cached assets on Akamai staging rather than production.
Strengths for Agents
- + Automates Akamai EdgeGrid HMAC authentication via
~/.edgercsections. - + Supports
--stagingtargets for safe cache invalidation and property testing. - + Many packages accept
--jsonorAKAMAI_OUTPUT_JSON=true.
Caveats & Pitfalls
- ! Base
akamaibinary ships minimal commands—sub-packages must be installed viaakamai installand may need Node.js/Python. - ! Flag syntax and JSON support are not 100% uniform across all sub-packages.