Installing the CLI
Download and install the latest version of the IBM® Hybrid Cloud Mesh (Mesh) palmctl CLI. You can also verify the installation and uninstall it when required.
About this task
For information about the platforms that you can install the palmctl CLI on, see Supported platforms and software.
Procedure
Remember: If you are upgrading to a new version of
palmctl, you must first uninstall any versions of palmctl that were previously installed. For more information, see Uninstalling the CLI.To download and install the CLI, complete one of the following instructions, depending on your operating system:
- Red Hat® Enterprise Linux® (RHEL)
- Run these commands:
PALMCTL_FILE_NAME=palmctl_latest_x86_64.rpm curl -sSfLO https://github.com/IBM/palmctl/releases/latest/download/$PALMCTL_FILE_NAME sudo rpm -i "$PWD/$PALMCTL_FILE_NAME"Note: To enable autocompletion in thezshorfishshells, see the output of thesudo ./palmctl/install.shcommand. - Ubuntu
- Run these commands:
PALMCTL_FILE_NAME=palmctl_latest_amd64.deb curl -sSfLO https://github.com/IBM/palmctl/releases/latest/download/$PALMCTL_FILE_NAME sudo apt install "$PWD/$PALMCTL_FILE_NAME" - Mac OS X AMD64, x86_64
- Run these commands:
PALMCTL_FILE_NAME=palmctl_latest_macos_amd64.tar.gz curl -sSfLO https://github.com/IBM/palmctl/releases/latest/download/$PALMCTL_FILE_NAME tar -xvf $PALMCTL_FILE_NAME sudo ./palmctl/install.shRun the following command to enable command autocompletion inzsh:echo 'autoload -Uz compinit && compinit' >> ~/.zshrc - Mac OS X ARM64, AArch64
- Run these commands:
PALMCTL_FILE_NAME=palmctl_latest_macos_arm64.tar.gz curl -sSfLO https://github.com/IBM/palmctl/releases/latest/download/$PALMCTL_FILE_NAME tar -xvf $PALMCTL_FILE_NAME sudo ./palmctl/install.shRun the following command to enable command autocompletion inzsh:echo 'autoload -Uz compinit && compinit' >> ~/.zshrcNote: If you download thepalmctlpackage by using your browser and run on Mac OS X, you might see an error message like this "palmctl" cannot be opened because the developer cannot be verified. To enable it, open System Settings, and go to the Privacy & Security tab. Under the Security section, where you see"palmctl" was blocked from use because it is not from an identified developer, click Allow Anyway. ThepalmctlMac OS X package might be notarized in a future release. - Windows™
- Complete these steps:
- Download the latest archive from palmctl CLI tool.
- Double-click the archive file to decompress and extract the contents.
- Open the command prompt and navigate to the
palmctlfolder. - Run
install.bat. - Optional: If you use PowerShell, enter “Y” when you are prompted Do you want to install powershell completion for palmctl[Y/N]?.
Important: If you want to use the completion feature for the Windows PowerShell console, you must set the PowerShell execution policy to allow scripts to run. You can set the execution policy by running the following command in a PowerShell console:
Set-ExecutionPolicy RemoteSigned
- s390x
- Run these commands:
PALMCTL_FILE_NAME=palmctl_latest_s390x.tar.gz curl -sSfLO https://github.com/IBM/palmctl/releases/latest/download/$PALMCTL_FILE_NAME tar -xvf $PALMCTL_FILE_NAME sudo cp palmctl/usr/bin/palmctl /usr/local/bin . palmctl/usr/share/palmctl/bash_palmctl_completion
What to do next
To verify that the Mesh CLI installation is complete, run the following command:
palmctl --version