Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Akamai CLI

$ akamai Official High Risk
Akamai · Cloud & Infra · Apache-2.0 · macos / linux / windows

Akamai 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.

FCRS-1.0 Score
76 /100
Good
Medium Confidence
Zero-Friction Install
brew install akamai
CLI vs MCP Decision CLI Preferred vs MCP

akamai interacts with local property/EdgeWorkers codebundles and EdgeGrid signing directly, avoiding manual EdgeGrid HMAC auth setup in MCP wrappers.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 18 / 25

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.

  • --json and AKAMAI_OUTPUT_JSON=true work on supported packages
  • Requires akamai install <pkg> to fetch sub-packages before use
Trust & Safety 19 / 25

Staging vs production targeting (--staging) and ~/.edgerc --section scoping help, though production cache purges and DNS/property activations can cause outages.

  • --staging flag separates test edge activations from production
Setup & Portability 12 / 15

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
Utility & Efficiency 11 / 15

Handles Akamai's complex EdgeGrid HMAC request signing automatically across DNS, EdgeWorkers, and Property Manager.

  • Automates EdgeGrid auth from ~/.edgerc
Maintenance & Lineage 8 / 10

Official Akamai Technologies tool (akamai/cli) under Apache-2.0 license.

  • Official akamai/cli repository under Apache-2.0
Docs & Verifiability 8 / 10

Well-structured documentation at techdocs.akamai.com and per-package --help.

  • Official documentation on Akamai TechDocs

Security, Auth & Guardrails

Auth Modes
Config File Env API Key
Credential Storage

Reads EdgeGrid API credentials (client_secret, host, access_token, client_token) from ~/.edgerc (--edgerc, --section) or AKAMAI_* env vars.

Side Effects
Read-Only Local Write Remote Write Destructive
Cost & Quotas

Apache-2.0 open-source CLI; requires an active Akamai contract/account for EdgeGrid API access.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

List installed Akamai CLI packages
akamai list

Shows installed modular packages (dns, property, purge) and available commands.

List Edge DNS primary zones as JSON
akamai dns list-zoneconfig --type primary --json

Queries configured primary DNS zones in structured JSON (requires the dns package).

Controlled Writes & Previews

Invalidate specific Edge cache URLs in staging
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 ~/.edgerc sections.
  • + Supports --staging targets for safe cache invalidation and property testing.
  • + Many packages accept --json or AKAMAI_OUTPUT_JSON=true.

Caveats & Pitfalls

  • ! Base akamai binary ships minimal commands—sub-packages must be installed via akamai install and may need Node.js/Python.
  • ! Flag syntax and JSON support are not 100% uniform across all sub-packages.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI