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 Windows-based machine.
Here’s how to setup config-cli on Windows. config-cli is Config’s command line utility, which is used to pull configuration files from Config to your machine.
- Log in to your Config account and go to the Command Line Tool page.
- Click on config-cli.zip link to download.
-
config-cli requires Java 8. Please make sure you have Java 8 before continuing. Here’s the link to the Java download page.
http://www.oracle.com/technetwork/java/javase/downloads/index.html - Unzip config-cli.zip to where you want config-cli to be installed. Unzipping will create a config-cli directory with 3 files: config-cli.jar, config-cli.bat, and config-cli.sh.
-
Run config-cli deploypull. The complete deploypull command is specific to your setup. It will look something like this.
config-cli.bat deploypull -system MY_SYSTEM -app MY_APP -module MY_MODULE -env MY_ENV -version MY_VERSION -o MY_CONFIG
If you don’t specify -version, the latest version will be pulled. Specify the output path in the -o parameter.
-
For convenience, you can copy paste the config-cli command from the web interface. Pick the version you want, click Deploy, and select Pull.