Installing cloudctl, kubectl, and oc¶
Follow these steps to install the command line tools that are needed to manage aspects of the Open Horizon management hub and edge clusters:
cloudctl¶
-
Browse your Open Horizon web UI at:
https://<CLUSTER_URL>/common-nav/cli -
Expand the IBM Cloud Pak CLI section and select your OS.
-
Copy the displayed curl command and run it to download the cloudctl binary.
-
Make the file executable and move it to /usr/local/bin:
- Ensure /usr/local/bin is in your PATH and then verify that cloudctl is working:
oc¶
-
Download the OpenShift Container Platform CLI tar file from OpenShift client CLI (oc) . Select the file openshift-client-*-*.tar.gz for your operating system.
-
Find the downloaded tar file and unpack it:
- Move the oc command to /usr/local/bin:
- Ensure /usr/local/bin is in your PATH and verify that oc is working:
Alternatively, use homebrew to install oc on macOS:
Kubectl¶
Follow the instructions in Install and Set Up kubectl .