By default, kbcli installs the latest release version. However, if you already have a running KubeBlocks instance, you need to install a matching version of kbcli.
For example, if your existing KubeBlocks deployment is v0.8.3, you should install kbcli v0.8.3 instead of a higher version like v0.9.0, as mismatched versions may lead to errors.
Run kbcli version to check the version of kbcli and ensure that it is successfully installed.
NOTE
If a timeout exception occurs during installation, please check your network settings and retry.
Option 2: Install kbcli using Homebrew.
Install ApeCloud tap, the Homebrew package of ApeCloud.
brew tap apecloud/tap
Install kbcli.
brew install kbcli
If you want to install kbcli with a specified version, run the commands below.
# View the available version
brew search kbcli
# Specify a version
brew install kbcli@x.y.z
Verify that kbcli is successfully installed.
kbcli -h
There are two ways to install kbcli on Windows:
Option 1: Install using the script.
NOTE
By default, the script will be installed at C:\Program Files\kbcli-windows-amd64 and cannot be modified.
If you need to customize the installation path, use the zip file.
Run PowerShell as an administrator and execute Set-ExecutionPolicy Unrestricted.
Install kbcli.
The following script will automatically install the environment variables at C:\Program Files\kbcli-windows-amd64.