docs/static/v0.9/guides/mesheryctl/configuring-autocompletion-for-mesheryctl/index.html
mesheryctlIf you would like to have mesheryctl commands automatically completed for use as you use mesheryctl, then use the following instructions to configure automatic completion within your environment.
source /dev/stdin \<\<\< "$(mesheryctl completion bash)"
source \<(mesheryctl completion bash)
brew install bash-completion # ensure you have bash-completion 1.3+ mesheryctl completion bash \> $(brew --prefix)/etc/bash\_completion.d/mesheryctl
brew install bash-completion@2 mesheryctl completion bash \> $(brew --prefix)/etc/bash\_completion.d/mesheryctl
source \<(mesheryctl completion zsh)
If shell completion is not already enabled in your environment you will need to enable it. You can execute the following once:
~/.zshrc \> echo "autoload -U compinit; compinit"
Note : You might need to restart your shell for this setup to take effect.
COMPLETION\_DIR=$(echo $fpath | grep -o '[^]\*completions' | grep -v cache) && mkdir -p $COMPLETION\_DIR && mesheryctl completion zsh \> "${COMPLETION\_DIR}/\_mesheryctl"
mesheryctl completion fish | source
To load fish shell completions for each session, execute once:
mesheryctl completion fish \> ~/.config/fish/completions/mesheryctl.fish
For an exhaustive list of mesheryctl commands and syntax:
Guides to using Meshery’s various features and components.
View all discussions tagged with mesheryctl
[ Previous
Overview ](/v0.9/guides/mesheryctl/working-with-mesheryctl)[ Next
CLI Authentication ](/v0.9/guides/mesheryctl/authenticate-with-meshery-via-cli)