Configure Cloudbreak CLI
Once you have installed the CLI, you must configure the CLI to work with your Cloudbreak instance.
Steps
- Use the
cb configure
command to set up the CLI configuration file. The configuration options are:- –server server address [$CB_SERVER_ADDRESS]
- –username user name (e-mail address) [$CB_USER_NAME]
- –password password [$CB_PASSWORD]
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 password with each command you execute or via an environment variable.
For example:
cb configure --server https://ec2-11-111-111-11.compute-1.amazonaws.com --username atest@cloudera.com
- The CLI configuration file will be saved at
~/.cb/config
. The content will look similar to the following:default: username: admin@hortonworks.com server: https://ec2-11-111-111-11.compute-1.amazonaws.com
- Run any command to verify that you can connect to the Cloudbreak
instance via CLI. For example:
cb cluster list
Note | |
---|---|
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. |