The config-connector CLI provides tools for managing Config Connector resources, such as exporting, previewing, and bulk-exporting resource definitions.
The CLI can be installed as a component of the Google Cloud SDK (gcloud).
- Google Cloud SDK (gcloud) installed and configured.
Run the following command to install the config-connector component:
gcloud components install config-connectorOnce installed, the config-connector command should be available in your PATH.
- preview: Preview reconciliation behavior and validate migrations.
- export: Export existing GCP resources into Config Connector YAML.
- bulk-export: Export all GCP resources in a project, folder, or organization.
- print-resources: Print the list of resources supported by Config Connector.
- version: Print the version of the CLI.
- licenses: Print licenses for third-party dependencies.
See the documentation for each command for specific usage details. For example, for the preview command, see Previewing Reconciliation.