cmctl
$ cmctl Foundation Med Riskcmctl 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.
brew install cmctl 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
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
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-llabel selectors cmctl statuslacks native-o json; requireskubectl get -o jsonfor structured objects
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
KUBECONFIGRBAC permissions cmctl renewdoes not support--dry-runbefore requesting reissuance
Single static Go binary distributed via Homebrew and GitHub Releases for macOS, Linux, and Windows.
- Cross-platform binary with zero runtime dependencies
Aggregates Certificate, CertificateRequest, Order, and Challenge diagnostics in one call, saving multi-step kubectl lookups.
- Single
cmctl status certificatecommand surfaces full ACME troubleshooting chain
Official CNCF cert-manager project maintained under cert-manager/cmctl with Apache-2.0 licensing.
- CNCF project repository
cert-manager/cmctl
Well-structured command reference and predictable Cobra --help output.
- Official docs at cert-manager.io/docs/reference/cmctl/
Security, Auth & Guardrails
Authenticates against Kubernetes API servers using standard KUBECONFIG (~/.kube/config) contexts and client credentials.
Free Apache-2.0 CNCF project; Let's Encrypt or commercial CA issuance rate limits apply.
# 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
cmctl status certificate tls-secret -n prod --context prod-cluster
Summarizes Certificate conditions, events, CertificateRequest, and ACME Challenge state read-only.
cmctl check api --context prod-cluster
Verifies that the cert-manager webhook and CRDs are reachable before issuing or renewing certs.
Controlled Writes & Previews
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, andChallengetroubleshooting into a single read-onlycmctl statusoutput. - + Supports
--contextand-nscoping for safe multi-cluster operations. - + Clean
cmctl check apipreflight validates webhook reachability before mutations.
Caveats & Pitfalls
- !
cmctl statusoutputs human-readable text rather than-o json; agents needing JSON must fall back tokubectl. - ! Running
cmctl renew --all -Acan exhaust external CA/ACME rate limits if unconstrained.