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

  1. Download the latest config-connector binary tar file:

    gcloud storage cp gs://cnrm/latest/cli.tar.gz .
    
  2. Extract the tar file:

    tar zxf cli.tar.gz
    
  3. 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
  4. Copy the binary to a location on your ${PATH}. For example, on Linux and macOS, you might use mv to place it into /usr/local/bin.

    mv linux/amd64/config-connector /usr/local/bin
    
  5. 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 with gcloud.

    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