Skip to content

Completion

cscli completion

Generate completion script

Synopsis

To 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

# macOS:

$ cscli completion bash | sudo tee /usr/local/etc/bash_completion.d/cscli

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