mirror of https://github.com/knative/client.git
48 lines
758 B
Markdown
48 lines
758 B
Markdown
## kn completion
|
|
|
|
Output shell completion code
|
|
|
|
### Synopsis
|
|
|
|
|
|
This command prints shell completion code which needs to be evaluated
|
|
to provide interactive completion
|
|
|
|
Supported Shells:
|
|
- bash
|
|
- zsh
|
|
|
|
```
|
|
kn completion [SHELL] [flags]
|
|
```
|
|
|
|
### Examples
|
|
|
|
```
|
|
|
|
# Generate completion code for bash
|
|
source <(kn completion bash)
|
|
|
|
# Generate completion code for zsh
|
|
source <(kn completion zsh)
|
|
```
|
|
|
|
### Options
|
|
|
|
```
|
|
-h, --help help for completion
|
|
```
|
|
|
|
### Options inherited from parent commands
|
|
|
|
```
|
|
--config string kn config file (default is $HOME/.kn/config.yaml)
|
|
--kubeconfig string kubectl config file (default is $HOME/.kube/config)
|
|
--log-http log http traffic
|
|
```
|
|
|
|
### SEE ALSO
|
|
|
|
* [kn](kn.md) - Knative client
|
|
|