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 thezsh
orfish
shells, see the output of thesudo ./palmctl/install.sh
command. - 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
- 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.sh source /usr/local/etc/bash_completion.d/bash_palmctl_completion
- Mac OS X ARM64
- 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.sh source /usr/local/etc/bash_completion.d/bash_palmctl_completion
Note: If you download thepalmctl
package 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. Thepalmctl
Mac 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
palmctl
folder. - 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
What to do next
To verify that the Mesh CLI installation is complete, run the following command:
palmctl --version