crowdsec/cmd/crowdsec-cli/doc/cscli.md
Thibault bui Koechlin 4d306fc52b doc
2020-05-15 14:33:01 +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-dir string   Configuration directory to use. (default "/etc/crowdsec/cscli/")
  -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

Auto generated by spf13/cobra on 15-May-2020