Installing the Testkube CLI
The Testkube CLI allows you to both manage your Testkube installation and interact with your Testkube resources, such as running creating Test Workflows, starting test executions, managing triggers, etc - see CLI Commands Reference for all commands.
Install the CLI as follows:
- MacOS
- Windows
- Ubuntu
- Script
- Manual Download
Run the following command to install the Testkube CLI with brew on MacOS:
brew install testkube
Run the following commands to install the Testkube CLI with Chocolatey on Windows.
choco source add --name=kubeshop_repo --source=https://chocolatey.kubeshop.io/chocolatey
choco install testkube -y
Run the following commands to install the Testkube CLI on Ubuntu:
wget -qO - https://repo.testkube.io/key.pub | sudo apt-key add -
echo "deb https://repo.testkube.io/linux linux main" | sudo tee -a /etc/apt/sources.list
sudo apt-get update
sudo apt-get install -y testkube
Run the following command to install the Testkube CLI with curl:
curl -sSLf https://get.testkube.io | sh
- Download the binary for the version and platform of your choice here.
- Unpack it. For example, in Linux use
tar -zxvf testkube_1.5.1_Linux_x86_64.tar.gz
. - Move it to a location in the PATH. For example:
mv testkube_1.5.1_Linux_x86_64/kubectl-testkube /usr/local/bin/kubectl-testkube
For Windows, you will need to unpack the binary and add it to the %PATH%
as well.
Validating the Testkube CLI
You can validate the CLI and server their version as follows:
➜ ~ testkube version
Context: cloud (2.1.3) Namespace: testkube Org: Testkube Env: ole-kind
----------------------------------------------------------------------------
████████ ███████ ███████ ████████ ██ ██ ██ ██ ██████ ███████
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
██ █████ ███████ ██ █████ ██ ██ ██████ █████
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
██ ███████ ███████ ██ ██ ██ ██████ ██ ████ ███████
/tɛst kjub/ by Kubeshop
Client Version 2.1.3
Server Version 2.1.32
Commit
Built by Homebrew
Build date