The update-ruleset script updates decoders, rules and rootchecks.

-r Restart Wazuh when needed.
-R Do not restart Wazuh.
-b Restore the last backup.
-h Display the help message.
-f Force Wazuh to update the ruleset.
-o Set Wazuh path.
Default /var/ossec
-s Select ruleset source path (instead of downloading it).
-j JSON output. Must be used in conjunction with the ‘-s’ option.
-d Run in debug mode.
-n Branch name (default: stable).