cscli completion
#
cscli completionGenerate completion script
#
SynopsisTo load completions:
#
Bash: $ source <(cscli completion bash)
# To load completions for each session, execute once:
# Linux:
$ cscli completion bash | sudo tee /etc/bash_completion.d/cscli $ source ~/.bashrc
# macOS:
$ cscli completion bash | sudo tee /usr/local/etc/bash_completion.d/cscli
# Troubleshoot: If you have this error (bash: _get_comp_words_by_ref: command not found), it seems that you need "bash-completion" dependency :
* Install bash-completion package $ source /etc/profile $ source <(cscli completion bash)
###Â Zsh:
# 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 for each session, execute once:
$ cscli completion zsh > "${fpath[1]}/_cscli"
# You will need to start a new shell for this setup to take effect.
cscli completion [bash|zsh]
#
Options -h, --help help for completion
#
Options inherited from parent commands -c, --config string path to crowdsec config file (default "/etc/crowdsec/config.yaml") --debug Set logging to debug. --error Set logging to error. --info Set logging to info. -o, --output string Output format : human, json, raw. --trace Set logging to trace. --warning Set logging to warning.
#
SEE ALSO- cscli - cscli allows you to manage crowdsec