Installing kwctl (Kubewarden CLI)
kwctl
is the command-line interface (CLI) tool for Kubewarden. Below are installation instructions for some operating systems.
- Linux
- macOS
- Windows
Install for Linux​
Using Homebrew​
If you use the Homebrew package manager on Linux, then:
brew install kwctl
Verify Installation:
kwctl --version
Using AUR (Arch User Repository)​
If you're using Arch Linux, or an Arch-based distribution, you can install kwctl from the AUR.
Using an AUR Helper (yay)​
yay -S kwctl
Using makepkg​
# Clone the AUR package
git clone https://aur.archlinux.org/kwctl.git
cd kwctl
# Build and install the package
makepkg -si
Verify the installation​
kwctl --version
Manual installation​
-
Download the latest release of
kwctl
for Linux:curl -LO https://github.com/kubewarden/kwctl/releases/latest/download/kwctl-linux-x86_64.zip
For ARM64 systems (e.g., Raspberry Pi), use:
curl -LO https://github.com/kubewarden/kwctl/releases/latest/download/kwctl-linux-aarch64.zip
-
Extract the files from the downloaded
.zip
file:unzip kwctl-linux-x86_64.zip
This extracts the following files:
kwctl-linux-x86_64
: Thekwctl
binarykwctl-linux-x86_64.sig
: A signature file for verifying the binarykwctl-linux-x86_64.pem
: A certificate file for verifying the signature
-
Move the binary to a directory in your PATH, rename to
kwctl
and make executable. -
Verify the installation:
kwctl --version
Install for Apple​
Using Homebrew​
Install kwctl
:
brew install kwctl
Verify installation:
kwctl --version
Manual installation​
- Download the latest release of
kwctl
for macOS:- For Apple Silicon (ARM64) systems, use:
curl -LO https://github.com/kubewarden/kwctl/releases/latest/download/kwctl-darwin-aarch64.zip
- For Intel (x86_64) systems, use:
curl -LO https://github.com/kubewarden/kwctl/releases/latest/download/kwctl-darwin-x86_64.zip
- For Apple Silicon (ARM64) systems, use:
- Extract the files from the downloaded
.zip
file:This extracts the following files:unzip kwctl-darwin-x86_64.zip
kwctl-darwin-x86_64
: Thekwctl
binarykwctl-darwin-x86_64.sig
: A signature file for verifying the binarykwctl-darwin-x86_64.pem
: A certificate file for verifying the signature
- Move the binary to a directory in your PATH, rename to
kwctl
and make executable. - Verify the Installation
Check the
kwctl
installation:kwctl --version
Install for Windows​
- Download
kwctl
- Open your browser and go to the Kubewarden releases page
- Download the
kwctl-windows-x86_64.zip
file.
- Extract the files from the downloaded zip file. It will contain:
kwctl-windows-x86_64.exe
: thekwctl
binary.kwctl-windows-x86_64.sig
: a signature file for verifying the binary.kwctl-windows-x86_64.pem
: a certificate file for verifying the signature.
- Rename the binary file from
kwctl-windows-x86_64.exe
tokwctl.exe
for easier use. - Move the binary to a location covered by your
PATH
environment variable. - Verify the installation. Open a new command prompt or PowerShell window and check the
kwctl
installation:kwctl --version
Install shell completions​
The kwctl
CLI has the --shell
option to generate shell completion commands for your shell. You can use the output from this command to integrate completions into your shell.
kwctl completions --shell [bash|elvish|fish|powershell|zsh]