Skip to content

Upgrade configurations

cscli upgrade

Upgrade configuration(s)


Upgrade configuration from the CrowdSec Hub.

In order to upgrade latest versions of configuration, the Hub cache should be updated.

Tainted configuration will not be updated (use --force to update them).

[type] must be parser, scenario, postoverflow, collection.

[config_name] must be a valid config name from Crowdsec Hub.

cscli upgrade [type] [config] [flags]


cscli upgrade [type] [config_name]
cscli upgrade --all   # Upgrade all configurations types
cscli upgrade --force # Overwrite tainted configuration


      --all     Upgrade all configuration in scope
      --force   Overwrite existing files, even if tainted
  -h, --help    help for upgrade

Options inherited from parent commands

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