Configuring Autocompletion for `mesheryctl`
If 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.
Autocompletion for Bash
bash <= 3.2
source /dev/stdin <<< "$(mesheryctl completion bash)"
bash >= 4.0
source <(mesheryctl completion bash)
bash <= 3.2 on MacOS
brew install bash-completion # ensure you have bash-completion 1.3+ mesheryctl completion bash > $(brew --prefix)/etc/bash_completion.d/mesheryctl
bash >= 4.0 on MacOS
brew install bash-completion@2 mesheryctl completion bash > $(brew --prefix)/etc/bash_completion.d/mesheryctl
Autocompletion for zsh
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.
zsh on MacOS and Oh My zsh
COMPLETION_DIR=$(echo $fpath | grep -o '[^ ]*completions' | grep -v cache) && mkdir -p $COMPLETION_DIR && mesheryctl completion zsh > "${COMPLETION_DIR}/_mesheryctl"
Autocompletion for fish
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.
Recent Discussions with "mesheryctl" Tag
- Oct 24 | `mesheryctl adapter validate` "Error: required flag(s) "spec" not set"
- Oct 09 | I created an environment but it cannot be listed
- Mar 05 | Tip: Series of commands to generate Meshery's model registry
- Aug 28 | Problems when running `./mesheryctl system start -p docker`
- Aug 19 | Adapter unavailable when open Meshery playground on local host via Mesheryctl
- Aug 09 | Help needed to setup Meshery locally
- Jun 27 | [Open Discussion] Consistency and Test Cases for Mesheryctl (Meshery CLI)
- May 30 | Looking for a meshmate to help with first PR
- Mar 20 | Not able to access Ports during mesheryctl system start
- Feb 27 | Error while connecting minikube on meshery
Suggested Reading
- Authenticating with Meshery via CLI - Get your authentication token from Meshery CLI.
- Running system checks using Meshery CLI - Run pre-flight and post-deployment system health checks using Meshery's CLI, mesheryctl.
- Mesheryctl system commands - Mesheryctl system commands for managing Meshery deployments.
- Using Meshery CLI - Guides for common tasks while using Meshery's CLI, mesheryctl.