crowdsec/docs/cscli/cscli.md
2020-07-22 10:25:23 +02:00

1.9 KiB

cscli

cscli allows you to manage crowdsec

Synopsis

cscli is the main command to interact with your crowdsec service, scenarios & db. It is meant to allow you to manage bans, parsers/scenarios/etc, api and generally manage you crowdsec setup.

Examples

View/Add/Remove bans:  
 - cscli ban list  
 - cscli ban add ip 1.2.3.4 24h 'go away'  
 - cscli ban del 1.2.3.4  
		
View/Add/Upgrade/Remove scenarios and parsers:  
 - cscli list  
 - cscli install collection crowdsec/linux-web  
 - cscli remove scenario crowdsec/ssh_enum  
 - cscli upgrade --all  

API interaction:
 - cscli api pull
 - cscli api register
 

Options

  -c, --config string   path to crowdsec config file (default "/etc/crowdsec/config/default.yaml")
  -o, --output string   Output format : human, json, raw. (default "human")
      --debug           Set logging to debug.
      --info            Set logging to info.
      --warning         Set logging to warning.
      --error           Set logging to error.
  -h, --help            help for cscli

SEE ALSO