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

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