Generates shell completion scripts
dapr completion [flags]
dapr completion [command]
Name | Environment Variable | Default | Description |
---|---|---|---|
--help , -h | Prints this help message |
If running Bash 3.2 included with macOS:
brew install bash-completion
Or, if running Bash 4.1+:
brew install bash-completion@2
Add the completion to your completion directory:
dapr completion bash > $(brew --prefix)/etc/bash_completion.d/dapr
source ~/.bash_profile
If bash-completion is not installed on Linux, please install the bash-completion' package via your distribution’s package manager.
Load the dapr completion code for bash into the current shell:
source <(dapr completion bash)
Write bash completion code to a file and source if from .bash_profile:
dapr completion bash > ~/.dapr/completion.bash.inc
printf "source '$HOME/.dapr/completion.bash.inc'" >> $HOME/.bash_profile
source $HOME/.bash_profile
If zsh-completion is not installed on macOS, please install the ‘zsh-completion’ package:
brew install zsh-completions
Set the dapr completion code for zsh[1] to autoload on startup:
dapr completion zsh > "${fpath[1]}/_dapr"
source ~/.zshrc
If zsh-completion is not installed on Linux, please install the ‘zsh-completion’ package via your distribution’s package manager.
Load the dapr completion code for zsh into the current shell:
source <(dapr completion zsh)
Set the dapr completion code for zsh[1] to autoload on startup:
dapr completion zsh > "${fpath[1]}/_dapr"
Create $PROFILE if it not exists:
if (!(Test-Path -Path $PROFILE )){ New-Item -Type File -Path $PROFILE -Force }
Add the completion to your profile:
dapr completion powershell >> $PROFILE
bash Generates bash completion scripts
powershell Generates powershell completion scripts
zsh Generates zsh completion scripts