This guide shows how to install the klusternetes CLI. Klusternetes CLI can be installed in Linux, Mac, and Windows operating systems.
Install With Command-line
Download the klusternetes CLI with the following commands
Linux
wget https://storage.googleapis.com/klusternetes-dev.appspot.com/releases/knts/v0.0.17/knts-v0.0.17-linux-amd64 -O knts
chmod +x knts
mv knts /usr/local/bin/
Mac
wget https://storage.googleapis.com/klusternetes-dev.appspot.com/releases/knts/v0.0.17/knts-v0.0.17-linux-amd64 -O knts
chmod +x knts
mv knts /usr/local/bin/
Windows
wget https://storage.googleapis.com/klusternetes-dev.appspot.com/releases/knts/v0.0.17/knts-v0.0.17-windows-amd64.exe -OutFile knts.exe
Start-Process -Wait -FilePath "knts.exe" -ArgumentList "/S" -PassThru
Set-Alias -Name knts -Value .\knts #This command only works on the present terminal. If you want it to be permeanent place the binary in path folder
Verify the installation
To verify the installation run the following command.
knts --help
The output should look like this
Output
Knts - Remote Development Environments powered by Klusternetes
Usage:
knts [command]
Available Commands:
cluster Authenticate, Create, Delete, List, and Get the kubeconfig of your cluster in klusternetes
completion Generate the autocompletion script for the specified shell
context Set the default context
deploy Execute the list of commands specified in the 'deploy' section of your Knts manifest
destroy Destroy everything created by the 'Knts deploy' command
down Deactivate your development container
help Help about any command
init Automatically generate your Knts manifest
up Launch your development environment
version View the version of the Knts binary
Flags:
-h, --help help for knts
-l, --log-level string amount of information outputted (debug, info, warn, error) (default "warn")
--log-output string output format for logs (tty, plain, json) (default "tty")
Use "knts [command] --help" for more information about a command.