Install the config-connector
CLI tool
This page explains how to install the config-connector
CLI tool.
With the config-connector
CLI tool, you can export existing Google Cloud resources into
YAML files, which are required for Config Connector to acquire those resources.
The config-connector
CLI tool is not installed by default when you install Config Connector.
Before you begin
Install Config Connector with a supported installation method.
Install config-connector
CLI tool
Download the latest
config-connector
binary tar file:gcloud storage cp gs://cnrm/latest/cli.tar.gz .
Extract the tar file:
tar zxf cli.tar.gz
The tar file includes a binary executable for Linux, macOS, and Windows. Choose the appropriate binary for your operating system:
- Linux:
./linux/amd64/config-connector
- macOS:
./darwin/amd64/config-connector
- Windows:
./windows/amd64/config-connector
- Linux:
Copy the binary to a location on your
${PATH}
. For example, on Linux and macOS, you might usemv
to place it into/usr/local/bin
.mv linux/amd64/config-connector /usr/local/bin
If you want to use the
config-connector
CLI tool to export directly from Cloud Asset Inventory, enable the Cloud Asset Inventory API on your Google Cloud Identity's project withgcloud
.gcloud services enable cloudasset.googleapis.com
Upgrade config-connector
To upgrade the config-connector
CLI tool to the latest version, repeat the installation
steps and overwrite the executable.
What's next
- Perform an export on individual resources.
- Perform a bulk export for all resources in your project, folder, or organization.
- Learn about the resources that Config Connector supports.