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

Fastly CLI

$ fastly Official High Risk
Fastly · Cloud & Infra · Apache-2.0 · macos / linux / windows

Fastly CLI (fastly) configures Fastly CDN services, VCL/Compute@Edge deployments, KV/Config stores, and cache purges from a Go binary equipped with --json, --non-interactive, --auto-yes (-y), and --profile token isolation.

FCRS-1.0 Score
88 /100
Good
Medium Confidence
Zero-Friction Install
brew install fastly/tap/fastly
CLI vs MCP Decision CLI Preferred vs MCP

fastly has first-class --non-interactive and --json flags plus local Compute build/serve tooling.

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 23 / 25

Explicit --non-interactive, --auto-yes, and --json global flags make fastly exceptionally clean for headless automation.

  • Global --json, --non-interactive, and --auto-yes flags
Trust & Safety 20 / 25

Versioned draft-then-activate service model and --profile token scoping prevent accidental live CDN breaks, though purge --all is high-risk.

  • Draft version cloning separates edits from live activation
Setup & Portability 14 / 15

Single static Go binary installable via Homebrew tap, go install, or GitHub releases.

  • Cross-platform Go binary distribution
Utility & Efficiency 13 / 15

Covers VCL, Compute builds, dictionaries, and KV stores cleanly.

  • Complete CDN and Compute@Edge CLI coverage
Maintenance & Lineage 9 / 10

Official fastly/cli repository actively maintained by Fastly.

  • Official fastly/cli under Apache-2.0
Docs & Verifiability 9 / 10

Detailed command reference at fastly.com/documentation/reference/cli/ and strong --help.

  • Complete CLI reference docs

Security, Auth & Guardrails

Auth Modes
Config File Env API Key OAuth Browser
Credential Storage

Stores profiles in ~/.config/fastly/config.toml, or reads FASTLY_API_TOKEN / --token.

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

CLI is free (Apache-2.0); Fastly CDN/Compute traffic incurs account billing.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# Fastly CLI Agent Rules
- ALWAYS pass `--json --non-interactive` and pin `--service-id` explicitly.
- Edit cloned draft versions; never pass `--activate` or run `fastly purge --all` without approval.
- Use `FASTLY_API_TOKEN` with least-privilege scope (`engineer` vs `superuser`).

Agent-Ready Command Recipes

Safe Read-Only Queries

List Fastly services in JSON
fastly service list --json --non-interactive

Lists CDN and Compute services with IDs and active versions in JSON.

Inspect service versions
fastly service-version list --service-id 12345 --json --non-interactive

Checks draft, active, and locked service versions.

Controlled Writes & Previews

Clone an active version into a safe draft
fastly service-version clone --service-id 12345 --version latest --non-interactive --json

Creates an editable draft version without activating or altering live traffic.

Strengths for Agents

  • + Dedicated --non-interactive global flag guarantees zero unexpected TTY hangs.
  • + Consistent --json output across service and version management.
  • + Immutable versioned config workflow lets agents prepare drafts before activation.

Caveats & Pitfalls

  • ! Lacks a universal --dry-run flag outside versioned draft workflows.
  • ! fastly compute publish builds and activates unless split into build + deploy.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI