anchorectl completion
Generate the autocompletion script for anchorectl for the specified shell. See each sub-command’s help for details on how to use the generated script.
Every command on this page also accepts the global flags.
Subcommands
- completion bash — Generate the autocompletion script for the bash shell.
- completion fish — Generate the autocompletion script for the fish shell.
- completion powershell — Generate the autocompletion script for powershell.
- completion zsh — Generate the autocompletion script for the zsh shell.
completion bash
Generate the autocompletion script for the bash shell.
This script depends on the bash-completion package. If it is not installed already, you can install it via your OS’s package manager.
To load completions in your current shell session:
source <(anchorectl completion bash)
To load completions for every new session, execute once:
Linux
anchorectl completion bash > /etc/bash_completion.d/anchorectl
macOS
anchorectl completion bash > $(brew --prefix)/etc/bash_completion.d/anchorectl
You will need to start a new shell for this setup to take effect.
anchorectl completion bash
Flags
| Flag | Type | Environment variable | Default | Required | Description |
|---|---|---|---|---|---|
--no-descriptions | bool | — | false | No | Disable completion descriptions. |
completion fish
Generate the autocompletion script for the fish shell.
To load completions in your current shell session:
anchorectl completion fish | source
To load completions for every new session, execute once:
anchorectl completion fish > ~/.config/fish/completions/anchorectl.fish
You will need to start a new shell for this setup to take effect.
anchorectl completion fish [flags]
Flags
| Flag | Type | Environment variable | Default | Required | Description |
|---|---|---|---|---|---|
--no-descriptions | bool | — | false | No | Disable completion descriptions. |
completion powershell
Generate the autocompletion script for powershell.
To load completions in your current shell session:
anchorectl completion powershell | Out-String | Invoke-Expression
To load completions for every new session, add the output of the above command to your powershell profile.
anchorectl completion powershell [flags]
Flags
| Flag | Type | Environment variable | Default | Required | Description |
|---|---|---|---|---|---|
--no-descriptions | bool | — | false | No | Disable completion descriptions. |
completion zsh
Generate the autocompletion script for the zsh shell.
If shell completion is not already enabled in your environment you will need to enable it. You can execute the following once:
echo "autoload -U compinit; compinit" >> ~/.zshrc
To load completions in your current shell session:
source <(anchorectl completion zsh)
To load completions for every new session, execute once:
Linux
anchorectl completion zsh > "${fpath[1]}/_anchorectl"
macOS
anchorectl completion zsh > $(brew --prefix)/share/zsh/site-functions/_anchorectl
You will need to start a new shell for this setup to take effect.
anchorectl completion zsh [flags]
Flags
| Flag | Type | Environment variable | Default | Required | Description |
|---|---|---|---|---|---|
--no-descriptions | bool | — | false | No | Disable completion descriptions. |