copyright | years | lastupdated | title | description | parent | nav_order |
---|---|---|---|---|---|---|
2020 - 2023 |
2023-02-25 |
Installing cloudctl, kubectl, and oc |
CLI |
3 |
{:new_window: target="blank"} {:shortdesc: .shortdesc} {:screen: .screen} {:codeblock: .codeblock} {:pre: .pre} {:child: .link .ulchildlink} {:childlinks: .ullinks}
{: #cloudctl_oc_cli}
Follow these steps to install the command line tools that are needed to manage aspects of the {{site.data.keyword.edge_notm}} ({{site.data.keyword.ieam}}) management hub and edge clusters:
-
Browse your {{site.data.keyword.ieam}} 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:
chmod 755 cloudctl-* sudo mv cloudctl-* /usr/local/bin/cloudctl
{: codeblock}
-
Ensure /usr/local/bin is in your PATH and then verify that cloudctl is working:
cloudctl --help
{: codeblock}
-
Download the {{site.data.keyword.open_shift_cp}} CLI tar file from OpenShift client CLI (oc) {:target="_blank"}{: .externalLink}. Select the file openshift-client-*-*.tar.gz for your operating system.
-
Find the downloaded tar file and unpack it:
tar -zxvf openshift-client-*-*.tar.gz
{: codeblock}
-
Move the oc command to /usr/local/bin:
sudo mv oc /usr/local/bin/
{: codeblock}
-
Ensure /usr/local/bin is in your PATH and verify that oc is working:
oc --help
{: codeblock}
Alternatively, use homebrew {:target="_blank"}{: .externalLink} to install oc on {{site.data.keyword.macOS_notm}}:
brew install openshift-cli
{: codeblock}
Follow the instructions in Install and Set Up kubectl {:target="_blank"}{: .externalLink}.