Output shell completion code
This command prints shell completion code which needs to be evaluated to provide interactive completion
Supported Shells:
- bash
- zsh
kn completion SHELL
# Generate completion code for bash
source <(kn completion bash)
# Generate completion code for zsh
source <(kn completion zsh)
compdef _kn kn
-h, --help help for completion
--cluster string name of the kubeconfig cluster to use
--config string kn configuration file (default: ~/.config/kn/config.yaml)
--context string name of the kubeconfig context to use
--kubeconfig string kubectl configuration file (default: ~/.kube/config)
--log-http log http traffic
- kn - kn manages Knative Serving and Eventing resources