'I have installed cloudctl but when I try to login in command prompt getting 'cloudctl' not recognized error

enter image description here

Any help is much appreciated.



Solution 1:[1]

There are multiple platform versions (Windows™, Linux®, or macOS )of the CloudCtl [Ref1], and install the appropriate CLI

you can list the files using curl

curl -kL https://--masterNodeIpAddress--:8443/api/cli 

"cloudctl-darwin-amd64"
"cloudctl-linux-amd64"
"cloudctl-linux-ppc64le"
"cloudctl-linux-s390x"
"cloudctl-win-amd64.exe"
  • replace the --masterNodeIPAddress- for your cluster

##for linux x86

use the curl to download

curl -kLo /tmp/cloudctl-linux-amd64 https://--masterNodeIpAddress--:8443/api/cli/cloudctl-linux-amd64

Change permission to execute and copy to local path

chmod +x  /tmp/cloudctl-linux-amd64

cp /tmp/cloudctl-linux-amd64 /usr/local/bin/cloudctl

Login to the cluster

cloudctl login -a https://--masterNodeIpAddress--:8443 

-- replace masteNodeIPaddress with masternode IP address or haproxy, or load balancer used for the High availability master node


Customized Instructions to install clients from ICP console

You can also find the customized instructions for downloading and installing all the clients. Log-in in to your IBM Cloud Private cluster management console from a web browser.

  • Connect to the URL https://masterORloadBalenacer:8443 and use the appropriate credentials.

  • Menu ( left BurgerIcon) left navigation -> CommandLine tools

Direct link https://masterORloadBalancerHostname:8443/console/tools/cli enter image description here

Ref-1: Installing the IBM® Cloud Private CLI

https://www.ibm.com/docs/en/cloud-private/3.2.0?topic=cloudctl-installing-cloud-private-cli

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1