From 122aba5743e46dec5a1f8f1292042af487ec81d4 Mon Sep 17 00:00:00 2001 From: cli-docs-bot Date: Fri, 24 Jul 2026 16:01:10 +0000 Subject: [PATCH] Update master CLI reference docs for v2.5.0-rc.0.50.gcf03c1d Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- content/cli/master/command-reference.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/content/cli/master/command-reference.md b/content/cli/master/command-reference.md index e41bab940..1a00e6bb4 100644 --- a/content/cli/master/command-reference.md +++ b/content/cli/master/command-reference.md @@ -11,7 +11,7 @@ description: "Command reference for the Crossplane CLI" -This documentation is for the `crossplane` CLI `v2.5.0-rc.0.2.gd0fecff`. +This documentation is for the `crossplane` CLI `v2.5.0-rc.0.50.gcf03c1d`. @@ -2699,6 +2699,18 @@ Read the XRD from stdin: cat xrd.yaml | crossplane xrd convert - ``` +Convert an XRD to JSON Schema and print to stdout: + +```shell +crossplane xrd convert xrd.yaml --format=jsonschema +``` + +Convert an XRD to JSON Schema files in a directory: + +```shell +crossplane xrd convert xrd.yaml --format=jsonschema --output-dir ./schemas/ +``` + #### Usage ``` @@ -2719,6 +2731,7 @@ crossplane xrd convert [] [flags] |------------|-----------|-------------| | `-o` | `--output-file=PATH` | The file to write the generated CRD YAML to. Legacy XRDs produce a multi-doc YAML stream (XR CRD + Claim CRD). | | | `--output-dir=DIR` | A directory to write the generated CRDs to. Each CRD gets a separate file named after the CRD. | +| | `--format="crd"` | Write JSON Schema files instead of CRDs. Useful for YAML language server integration. | {{< /table >}}