diff --git a/content/cli/master/command-reference.md b/content/cli/master/command-reference.md index 137ca57a1..1a04d76f7 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.6.0-rc.0.2.g3d72f93`. +This documentation is for the `crossplane` CLI `v2.6.0-rc.0.12.gba5d263`. @@ -1354,6 +1354,15 @@ multiple projects side-by-side. You can use a Crossplane version other than the latest stable version by specifying the `--crossplane-version` flag. +By default Crossplane installs a wildcard `ManagedResourceActivationPolicy`, +which activates the CRDs for every managed resource its providers offer. Pass +`--no-default-mrap` to skip it, so the control plane activates only the managed +resources your project declares its own activation policies for. This matches +what a production control plane looks like when it manages activation +explicitly. Like `--cluster-admin`, this flag applies only when `run` creates +the control plane. A control plane that already runs Crossplane keeps its +original settings, so run `crossplane project stop` first to change them. + You can provide resources to apply around the project install: - `--init-resources` applies one or more files *before* installing the @@ -1381,6 +1390,13 @@ Pin the Crossplane version installed in the dev control plane: crossplane project run --crossplane-version=v2.2.1 ``` +Run without the default wildcard activation policy, so only the project's own +`ManagedResourceActivationPolicy` resources activate CRDs: + +```shell +crossplane project run --no-default-mrap +``` + Apply `imageconfig.yaml` before installing the Configuration, and `providerconfig.yaml` after: @@ -1406,6 +1422,7 @@ crossplane project run [flags] | | `--crossplane-version=STRING` | Version of Crossplane to install. | | | `--registry-dir=STRING` | Directory for local registry images. | | | `--cluster-admin` | Grant Crossplane the cluster-admin role. | +| | `--default-mrap` | Install the default wildcard ManagedResourceActivationPolicy in the dev control plane. | | | `--timeout=5m` | Max wait for project readiness. | | | `--init-resources=INIT-RESOURCES` | Resources to apply before installing. | | | `--extra-resources=EXTRA-RESOURCES` | Resources to apply after installing. |