What is the Command Line Interface?
The Hortonworks Data Cloud Command Line Interface (CLI) is a tool to help you manage your Hortonworks Data Cloud cluster instances. This tool can be used to interact with the cloud controller for automating cluster creation and termination.
After you have launched your cloud controller, the CLI is available for download from that cloud controller instance.
Browse to your cloud controller instance and log in. For example:
From the controller UI navigation menu, select DOWNLOAD CLI. The CLI is available for Linux, Mac OS X and Windows.
Select the bundle and download it to your local machine. Extract the bundle:
tar xvf hdc-cli_Linux_x86_64.tgz.
Run the executable to verify the CLI:
You can optionally add hdc to your system path.
Once you have installed the CLI, you need to configure the CLI to work with your cloud controller.
hdc configurecommand to set up the CLI configuration file. The configuration options are:
--serverserver address [$CB_SERVER_ADDRESS]
--usernameuser name (e-mail address) [$CB_USER_NAME]
The password configuration is optional. If you do not provide the password, no password is stored in the CLI configuration file. Therefore, you will need to provide the
passwordwith each command you execute or via an environment variable.
The CLI configuration file will be saved at
The CLI can look for configuration options from different locations. You can optionally pass the configuration options on each command or from environment variables. The following order is used for the CLI to look for configuration options: Command Line, Environment Variables and the Configuration File.