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

etcdctl

$ etcdctl Foundation High Risk
CNCF / etcd · Database & Data · Apache-2.0 · macos / linux / windows

etcdctl is the official v3 API client for etcd clusters (backing Kubernetes and distributed coordination). Supports --write-out=json (-w json) across get, member list, and endpoint health, TLS flags, and ETCDCTL_API=3 configuration.

FCRS-1.0 Score
83 /100
Good
Medium Confidence
Zero-Friction Install
brew install etcd
CLI vs MCP Decision CLI Only

etcdctl endpoint health -w json and etcdctl get --prefix --keys-only provide low-level cluster state inspection directly in shell workflows.

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

Supports -w json (--write-out=json), --keys-only, and ETCDCTL_* env vars cleanly, though JSON values are base64-encoded.

  • Supports -w json, --keys-only, and ETCDCTL_* env vars
Trust & Safety 19 / 25

Supports mTLS and RBAC auth, though del --prefix or put on Kubernetes control-plane clusters carries severe blast radius.

  • mTLS auth; high blast radius on del --prefix and member ops
Setup & Portability 14 / 15

Single static Go binary available via Homebrew and GitHub Releases.

  • Static Go binary across macOS, Linux, Windows
Utility & Efficiency 13 / 15

Indispensable for etcd cluster diagnostics, snapshots, and key inspection.

  • Covers KV, leases, watches, snapshots, and endpoint diagnostics
Maintenance & Lineage 9 / 10

CNCF graduated project (etcd-io/etcd) under Apache-2.0.

  • Official CNCF etcd-io/etcd repository
Docs & Verifiability 7 / 10

Good official v3 guide, though mTLS flag combinations can be verbose.

  • Official docs at etcd.io/docs/latest/dev-guide/interacting_v3/

Security, Auth & Guardrails

Auth Modes
Config File Env API Key
Credential Storage

Endpoints, TLS cert paths, and user credentials via ETCDCTL_* env vars or --cacert/--cert/--key/--user flags.

Side Effects
Read-Only Remote Write Destructive
Cost & Quotas

100% free and Apache-2.0 open-source (CNCF graduated project).

Copyable Guardrail for CLAUDE.md / AGENTS.md
# etcdctl Agent Rules
- Always pass `-w json` (note: keys/values in JSON are base64-encoded).
- Use `--keys-only` before fetching full values on large prefixes.
- NEVER run `etcdctl del --prefix`, `member remove`, or `defrag` autonomously on live clusters.

Agent-Ready Command Recipes

Safe Read-Only Queries

Check etcd endpoint health in JSON
etcdctl endpoint health --cluster -w json

Verifies quorum and health status of every member in the etcd cluster.

List key names under a prefix without values
etcdctl get /app/ --prefix --keys-only -w json

Enumerates keys under a prefix cleanly without dumping large binary payloads.

Controlled Writes & Previews

Save an atomic etcd cluster snapshot
etcdctl snapshot save ./etcd-backup.db

Takes a consistent point-in-time snapshot of the etcd keyspace locally.

Strengths for Agents

  • + -w json works reliably across KV, member, and endpoint health commands.
  • + --keys-only prevents huge payload dumps during prefix discovery.
  • + ETCDCTL_* environment variables streamline TLS configuration.

Caveats & Pitfalls

  • ! -w json encodes keys and values as base64 strings, requiring jq (@base64d) to decode.
  • ! Mutations on Kubernetes-backing etcd clusters can break cluster state instantly.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI