2 KiB
2 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) (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
- cscli api - Crowdsec API interaction
- cscli backup - Backup or restore configuration (api, parsers, scenarios etc.) to/from directory
- cscli ban - Manage bans/mitigations
- cscli config - Allows to view/edit cscli config
- cscli dashboard - Start a dashboard (metabase) container.
- cscli inspect - Inspect configuration(s)
- cscli install - Install configuration(s) from hub
- cscli list - List enabled configs
- cscli metrics - Display crowdsec prometheus metrics.
- cscli remove - Remove/disable configuration(s)
- cscli simulation -
- cscli update - Fetch available configs from hub
- cscli upgrade - Upgrade configuration(s)