diff --git a/content/cli/master/command-reference.md b/content/cli/master/command-reference.md index 1a00e6bb4..5d1247ce3 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.50.gcf03c1d`. +This documentation is for the `crossplane` CLI `v2.5.0-rc.0.104.gd267815`. @@ -561,6 +561,21 @@ Enable alpha commands: crossplane config set features.enableAlpha true ``` +Generate GetX/SetX accessor methods on generated Go models (off by default), so +you can reach generated resources through interfaces and generics: + +```shell +crossplane config set features.generateGoModelAccessors true +``` + +Generate `runtime.Object` methods and per-package `AddToScheme` helpers on +generated Go models (off by default), so you can register generated types with a +`runtime.Scheme`: + +```shell +crossplane config set features.generateGoRuntimeObjects true +``` + ### Usage ``` @@ -2802,6 +2817,7 @@ crossplane xrd generate [flags] |------------|-----------|-------------| | | `--from="xr"` | Input format: xr or simpleschema. | | | `--path=STRING` | Output path. | +| | `--replace` | Replaces the existing definition file | | | `--plural=STRING` | Custom plural form for the XRD. | | `-f` | `--project-file="crossplane-project.yaml"` | Path to project definition. | {{< /table >}}