Installing config-cli on Red Hat/CentOS 7

configTutorialsLeave a Comment

Config Command Line Interface (config-cli) is a powerful tool to pull your configuration files securely from Config servers. Here’s how you can install it in a Linux-based machine.

Here’s how to setup config-cli on Red Hat/CentOS 7. config-cli is Config’s command line utility, which is used to pull configuration files from Config to your machine.

  1. To setup config-cli, you need your API key. You can find your API key by going to your Profile page or your Command Line Tool page.
  2. Use curl to download config-cli. The following command downloads to the current directory.
    curl -H apiKey:MY_API_KEY -o
  3. config-cli requires Java 8. We also need to unzip so let’s install unzip as well.
    yum install unzip java-1.8.0-openjdk-headless
  4. Unzip This will create a config-cli directory with 3 files: config-cli.jar, config-cli.bat, and
  5. chmod and make it executable.
    cd config-cli && chmod u+x
  6. Run config-cli deploypull. The complete deploypull command is specific to your setup. It will look something like this.
    ./ deploypull -system MY_SYSTEM -app MY_APP -module MY_MODULE -env MY_ENV -version MY_VERSION

    If you don’t specify -version, the latest version will be pulled.

  7. For convenience, you can copy paste the config-cli command from the web interface. Pick the version you want, click Deploy, and select Pull.
    Copy and Paste config-cli command from Config

Leave a Reply

Your email address will not be published. Required fields are marked *