ctlptl
$ ctlptl Official Low Riskctlptl provides a declarative, kubectl-style CLI (ctlptl apply -f, ctlptl get) for provisioning local Kubernetes clusters (kind, k3d, minikube) wired to local container registries, supporting -o json and -o jsonpath output.
brew install ctlptl ctlptl accepts declarative YAML via -f and outputs -o json directly against local Docker/cluster tooling.
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
Follows kubectl conventions with -o json, -o jsonpath, and idempotent -f YAML manifests, though it lacks --dry-run.
- Supports
-o jsonand-o jsonpathongetandapply
Local-only Docker blast radius and idempotent ctlptl apply reduce accidental drift, though apply updates default kubeconfig context.
- Local workstation blast radius only
Single static Go binary on macOS, Linux, and Windows, requiring Docker and a local cluster provider (kind/k3d/minikube).
- Static Go binary via
brew install ctlptl
Eliminates multi-step registry-to-cluster wiring scripts in local CI and agent sandboxes.
- Single YAML spec wires registry and Kubernetes cluster
Official Tilt (tilt-dev/ctlptl) project licensed under Apache-2.0.
- Official
tilt-dev/ctlptlrepository
Clear README examples and familiar kubectl-style --help output.
- Concise README and built-in command help
Security, Auth & Guardrails
Writes local cluster contexts into ~/.kube/config (KUBECONFIG) and manages local Docker daemon resources.
CLI is free (Apache-2.0); runs locally using Docker compute.
# ctlptl Agent Rules - Run `ctlptl get clusters -o json` before creating or deleting local clusters. - Keep cluster definitions in declarative YAML files (`ctlptl apply -f`) rather than ad-hoc flags. - Confirm before running `ctlptl delete` on shared local dev registries.
Agent-Ready Command Recipes
Safe Read-Only Queries
ctlptl get clusters -o json && ctlptl get registries -o json
Inspects active local clusters and registry ports in structured JSON.
Controlled Writes & Previews
ctlptl apply -f cluster.yaml -o json
Idempotently reconciles the local cluster and registry from YAML without interactive prompts.
Strengths for Agents
- +
-o jsonand-o jsonpathwork cleanly on bothgetandapply. - + Idempotent declarative YAML workflow avoids fragile shell setup scripts.
- + Local-only scope makes experimentation safe for coding agents.
Caveats & Pitfalls
- ! No
--dry-runflag onctlptl applyorctlptl delete. - ! Requires Docker plus an underlying cluster CLI (
kind,k3d, orminikube) installed.