Back to Meshery

mesheryctl completion

docs/static/v0.6/reference/mesheryctl/completion/index.html

1.0.181.6 KB
Original Source

mesheryctl completion

Output shell completion code

Synopsis

Output shell completion code

mesheryctl completion [bash|zsh|fish]

Examples

bash <= 3.2

source /dev/stdin \<\<\< "$(mesheryctl completion bash)"

bash <= 3.2 on osx ensure you have bash-completion 1.3+

brew install bash-completion
mesheryctl completion bash \> $(brew --prefix)/etc/bash\_completion.d/mesheryctl

bash >= 4.0

source \<(mesheryctl completion bash)

bash >= 4.0 on osx

brew install bash-completion@2
mesheryctl completion bash \> $(brew --prefix)/etc/bash\_completion.d/mesheryctl

zsh

If shell completion is not already enabled in your environment you will need to enable it. You can execute the following once: Might need to start a new shell for this setup to take effect.

$ echo "autoload -U compinit; compinit" \>\> ~/.zshrc
source \<(mesheryctl completion zsh)

zsh on osx / oh-my-zsh

COMPLETION\_DIR=$(echo $fpath | grep -o '[^]\*completions' | grep -v cache) && mkdir -p $COMPLETION\_DIR && mesheryctl completion zsh \> "${COMPLETION\_DIR}/\_mesheryctl"

fish:

mesheryctl completion fish | source

To load fish shell completions for each session, execute once:

mesheryctl completion fish \> ~/.config/fish/completions/mesheryctl.fish

Options

-h, --help help for completion

Options inherited from parent commands

--config string path to config file (default "/home/runner/.meshery/config.yaml") -v, --verbose verbose output

See Also

Go back to command reference index