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:

    gcloudstoragecpgs://cnrm/latest/cli.tar.gz.
    
  2. Extract the tar file:

    tarzxfcli.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.

    mvlinux/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.

    gcloudservicesenablecloudasset.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

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月24日 UTC.