Installing the IBM® Cloud Private CLI
If you install the IBM Cloud Private command line interface (CLI), you can create and manage new clusters.
After you install IBM Cloud Private, you can install the CLI on Windows, Linux, or macOS.
- Synchronize the clocks in between the client computer and the nodes in the IBM Cloud Private cluster. To synchronize your clocks, you can use network time protocol (NTP). For more information about setting up NTP, see the user documentation for your operating system.
- Install the IBM Cloud CLI. See Manual CLI installation in the IBM Cloud documentation.
Confirm that the IBM Cloud CLI installed:
The IBM Cloud CLI usage is displayed.
- From the IBM Cloud Private management console, click Menu > Command Line Tools > Cloud Private CLI.
- To download the CLI installer file, click the download link for your operating system.
Install the CLI. Run the following command:
bx plugin install /<path_to_installer>/<cli_file_name>
For example, to use a
icp-darwin-amd64file for macOS that is in the
Downloadsfolder, run this command:
bx plugin install ~/Downloads/icp-darwin-amd64
Confirm that the IBM Cloud Private CLI installed:
bx pr --help
The IBM Cloud Private CLI usage is displayed.
Install and setup the Kubernetes command-line tool, kubectl. See Install and Set Up kubectl . Note: You need to install version 1.9.1.
Log in to your cluster:
bx pr login -a https://<master_ip_address>:8443 --skip-ssl-validation
master_ip_addressis the external IP address for your master or leading master node.
You can now use the IBM Cloud Private CLI to view information about your first cluster, install more content for your cluster, or configure more clusters. If you use the IBM Cloud Private CLI to configure a new cluster, you can use the CLI to add or remove worker nodes to it.