Install the kgwctl CLI
Use the kgwctl
CLI to quickly assess the health of your kgateway control and data plane components.
-
Save the version of the kgwctl CLI that you want to install as an environment variable.
export VERSION=v0.0.1-alpha4
-
Create a personal access token in GitHub. For more information, see the GitHub documentation.
-
Install the
kgwctl
CLI.curl -sL -H "Authorization: token ${GITHUB_TOKEN}" https://raw.githubusercontent.com/solo-io/kgwctl-temp/refs/heads/main/scripts/install.sh | sh -
Example output:
Downloading kgwctl-darwin-arm64 from release v0.0.1-alpha4... Verifying checksum... Checksum verified successfully Download successful: kgwctl-darwin-arm64 kgwctl CLI was successfully installed 🎉 Add the kgwctl CLI to your path with: export PATH=$HOME/.kgwctl/bin:$PATH
-
Add the CLI to your path.
export PATH=$HOME/.kgwctl/bin:$PATH
-
Try out the CLI. For example, you can list all supported commands with the following command.
kgwctl --help
Example output:
Commands for interacting with kgateway installations. Usage: kgwctl [command] Available Commands: analyze Analyze kgateway resource manifests by file names or directory to find configuration issues and impacts on other resources. check Check the health of the kgateway control and data plane. completion Generate the autocompletion script for the `kgwctl` CLI for the specified shell. describe Get the details of one or more kgateway resources. get List one or more kgateway resources. help List all supported commands for the `kgwctl` CLI. ...