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

Crossplane CLI

$ crossplane Foundation Low Risk
Crossplane / CNCF · Cloud & Infra · Apache-2.0 · macos / linux / windows

The 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).

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

crossplane render and crossplane beta validate execute local composition pipelines via Docker and stdin YAML directly.

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

Deterministic non-interactive YAML rendering and stdin piping (render | beta validate), though lacks --json output across render, validate, and xpkg.

  • Non-interactive render and beta validate pipeline
  • Outputs YAML manifests; lacks --json output flag
Trust & Safety 22 / 25

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
Setup & Portability 13 / 15

Cross-platform Go binary via Homebrew or install script, though crossplane render requires a local Docker daemon to execute Composition Functions.

  • Single Go binary; render requires local Docker
Utility & Efficiency 12 / 15

Dramatically shortens Crossplane Composition feedback loops compared to deploying to a cluster.

  • Local function execution and CRD schema validation
Maintenance & Lineage 10 / 10

CNCF project (crossplane/crossplane) maintained under Apache-2.0.

  • Official CNCF crossplane/crossplane repository
Docs & Verifiability 8 / 10

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

Auth Modes
Config File Env API Key
Credential Storage

Offline render and xpkg build need no credentials; xpkg push uses OCI registry creds (~/.docker/config.json) and live commands read ~/.kube/config.

Side Effects
Read-Only Local Write Remote Write
Cost & Quotas

CLI is free (Apache-2.0); render uses local Docker compute.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Render a Crossplane Composition locally
crossplane render xr.yaml composition.yaml functions.yaml

Executes composition functions locally and outputs the rendered Kubernetes manifests as YAML without touching any cluster.

Render and schema-validate outputs offline
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

Build an .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 validate tests complex Compositions and Functions locally without a cluster.
  • + Builds OCI-compatible .xpkg artifacts deterministically.
  • + Official CNCF project with clear YAML pipeline ergonomics.

Caveats & Pitfalls

  • ! Outputs YAML and text tables rather than --json.
  • ! crossplane render requires a running local Docker daemon to invoke function containers.
  • ! Subcommands moved between beta and top-level across v1.x releases.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI