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

cmctl

$ cmctl Foundation Med Risk
cert-manager / CNCF · Cloud & Infra · Apache-2.0 · macos / linux / windows

cmctl is the official CLI companion for Kubernetes cert-manager. It diagnoses Certificate, Order, and Challenge state via cmctl status certificate, triggers manual renewals with cmctl renew, and converts manifests via cmctl convert without mutating cluster state during reads.

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

Use cmctl directly for cert-manager diagnostics and renewal triggers; pairing it with kubectl get certificate -o json gives structured payloads when needed.

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

Headless flags (-n, --context, -l) and --logging-format json work cleanly in scripts, though cmctl status renders human text rather than -o json.

  • Non-interactive flag support via -n, --context, and -l label selectors
  • cmctl status lacks native -o json; requires kubectl get -o json for structured objects
Trust & Safety 20 / 25

Reads (status, check api) are strictly non-mutating and rely on Kubernetes RBAC via KUBECONFIG, while renew lacks a --dry-run preview.

  • Scoped to existing KUBECONFIG RBAC permissions
  • cmctl renew does not support --dry-run before requesting reissuance
Setup & Portability 14 / 15

Single static Go binary distributed via Homebrew and GitHub Releases for macOS, Linux, and Windows.

  • Cross-platform binary with zero runtime dependencies
Utility & Efficiency 12 / 15

Aggregates Certificate, CertificateRequest, Order, and Challenge diagnostics in one call, saving multi-step kubectl lookups.

  • Single cmctl status certificate command surfaces full ACME troubleshooting chain
Maintenance & Lineage 9 / 10

Official CNCF cert-manager project maintained under cert-manager/cmctl with Apache-2.0 licensing.

  • CNCF project repository cert-manager/cmctl
Docs & Verifiability 8 / 10

Well-structured command reference and predictable Cobra --help output.

  • Official docs at cert-manager.io/docs/reference/cmctl/

Security, Auth & Guardrails

Auth Modes
Config File
Credential Storage

Authenticates against Kubernetes API servers using standard KUBECONFIG (~/.kube/config) contexts and client credentials.

Side Effects
Read-Only Remote Write
Cost & Quotas

Free Apache-2.0 CNCF project; Let's Encrypt or commercial CA issuance rate limits apply.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# cmctl Agent Rules
- Always pass explicit `-n <namespace>` and `--context <ctx>` before running `cmctl status` or `cmctl renew`.
- Never pass `--all` or `-A` with `cmctl renew` without explicit user approval, as bulk renewals can hit ACME rate limits.

Agent-Ready Command Recipes

Safe Read-Only Queries

Inspect Certificate health and ACME order status
cmctl status certificate tls-secret -n prod --context prod-cluster

Summarizes Certificate conditions, events, CertificateRequest, and ACME Challenge state read-only.

Check cert-manager API readiness
cmctl check api --context prod-cluster

Verifies that the cert-manager webhook and CRDs are reachable before issuing or renewing certs.

Controlled Writes & Previews

Trigger renewal for a labeled Certificate
cmctl renew -n staging -l app=web

Marks matching Certificate resources for reissuance in the staging namespace using an explicit label selector.

Strengths for Agents

  • + Consolidates Certificate, Order, and Challenge troubleshooting into a single read-only cmctl status output.
  • + Supports --context and -n scoping for safe multi-cluster operations.
  • + Clean cmctl check api preflight validates webhook reachability before mutations.

Caveats & Pitfalls

  • ! cmctl status outputs human-readable text rather than -o json; agents needing JSON must fall back to kubectl.
  • ! Running cmctl renew --all -A can exhaust external CA/ACME rate limits if unconstrained.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI