Crossplane CLI
$ crossplane Foundation Low RiskThe crossplane CLI lets platform engineers render and validate Composite Resources (crossplane render / beta render, beta validate) locally without a cluster, and package/push OCI .xpkg providers and configurations (crossplane xpkg build).
brew install crossplane crossplane render and crossplane beta validate execute local composition pipelines via Docker and stdin YAML directly.
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
Deterministic non-interactive YAML rendering and stdin piping (render | beta validate), though lacks --json output across render, validate, and xpkg.
- Non-interactive
renderandbeta validatepipeline - Outputs YAML manifests; lacks
--jsonoutput flag
Local-first simulation (render, validate, xpkg build) protects live control planes; only xpkg push or cluster beta trace interacts remotely.
- Local offline validation before cluster deployment
Cross-platform Go binary via Homebrew or install script, though crossplane render requires a local Docker daemon to execute Composition Functions.
- Single Go binary;
renderrequires local Docker
Dramatically shortens Crossplane Composition feedback loops compared to deploying to a cluster.
- Local function execution and CRD schema validation
CNCF project (crossplane/crossplane) maintained under Apache-2.0.
- Official CNCF
crossplane/crossplanerepository
Clear docs.crossplane.io/latest/cli/ docs, though command names migrated between beta render and top-level render across versions.
- Official CLI docs at docs.crossplane.io
Security, Auth & Guardrails
Offline render and xpkg build need no credentials; xpkg push uses OCI registry creds (~/.docker/config.json) and live commands read ~/.kube/config.
CLI is free (Apache-2.0); render uses local Docker compute.
# Crossplane CLI Agent Rules - Always run `crossplane render` piped to `crossplane beta validate` before applying Compositions to a cluster. - Note `crossplane render` requires a local Docker daemon to run function containers. - Avoid `crossplane xpkg push` without explicit target tag confirmation.
Agent-Ready Command Recipes
Safe Read-Only Queries
crossplane render xr.yaml composition.yaml functions.yaml
Executes composition functions locally and outputs the rendered Kubernetes manifests as YAML without touching any cluster.
crossplane render xr.yaml composition.yaml functions.yaml | crossplane beta validate extensions.yaml -
Pipes rendered manifests into beta validate to catch CRD schema errors offline.
Controlled Writes & Previews
.xpkg OCI package locally crossplane xpkg build --package-root=./package --output=./out.xpkg
Packages local XRDs and Compositions into an .xpkg artifact on disk without pushing.
Strengths for Agents
- +
crossplane render+beta validatetests complex Compositions and Functions locally without a cluster. - + Builds OCI-compatible
.xpkgartifacts deterministically. - + Official CNCF project with clear YAML pipeline ergonomics.
Caveats & Pitfalls
- ! Outputs YAML and text tables rather than
--json. - !
crossplane renderrequires a running local Docker daemon to invoke function containers. - ! Subcommands moved between
betaand top-level across v1.x releases.