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

1.7 KiB

cscli upgrade

Upgrade configuration(s)

Synopsis

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]

Examples

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

Options

      --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.

SEE ALSO