Warden 4.01 comes with a new command line interface (CLI) that you can use to configure it during automated deployment. You can view the full CLI documentation here.
Important
- Option values should be set using the equal sign (=).
- If an option value has spaces or semicolons then the value should be wrapped in single quotes.
- If an option value needs single quotes then the value should be wrapped in single quotes with value single quotes properly escaped replacing a single quote with '\''
- Options are case sensitive.
Run the following command for more information:
warden --task=help
Minion is a cli tool for performing tasks
Usage:
/usr/local/sbin/warden --task={task} --option1=value1 --option2=value2
Where {task} is one of the following:
* antispam:antispam
* antispam:learning
* antispam:learning:ignore
* antispam:learning:sieve
* antispam:network
* antispam:plugin:asn
* antispam:plugin:awl
* antispam:plugin:dcc
* antispam:plugin:decodeshorturls
* antispam:plugin:dkim
* antispam:plugin:extracttext
* antispam:plugin:freemail
* antispam:plugin:fromenamespoof
* antispam:plugin:olevbmacro
* antispam:plugin:phishing
* antispam:plugin:pyzor
* antispam:plugin:razor2
* antispam:plugin:relaycountry
* antispam:plugin:sh
* antispam:plugin:shortcircuit
* antispam:plugin:spf
* antispam:plugin:textcat
* antispam:plugin:txrep
* antispam:plugin:uridnsbl
* antispam:plugin:urilocalbl
* antispam:plugin:vbounce
* antispam:plugin:welcomlistsubject
* antispam:plugins
* antispam:rules
* antispam:ruleupdates
* antivirus:antivirus
* antivirus:scanning
* antivirus:scanninglimits
* antivirus:signatureproviders
* antivirus:signatureupdates
* antivirus:signaturewhitelist
* application:about
* application:application
* application:dashboard
* application:geolocation
* application:maintenance
* application:maintenance:database
* application:networktools
* application:permissions
* application:setup
* contentfilter:contentfilter
* contentfilter:milter
* contentfilter:policy
* contentfilter:policybanks
* contentfilter:scanner
* help
* mailserver:access
* mailserver:checks
* mailserver:mailserver
For more information on what a task does and usage details execute:
/usr/local/sbin/warden --task={task} --help
Examples using the CLI:
// install the warden extension
plesk bin extension --install warden
// Run the setup wizard to active the extension license, run the application installer, and configure the application
warden --task=application:setup --license_key=XXXXXX
// set the anti-spam OK locales to western character sets only and reload the service applying the changes
warden --task=antispam:antispam --ok_locales='en' --reload=yes
// add a custom rule to match viagra in a message subject line, give it a +100 score, and reload the service applying the new rule
warden --task=antispam:rules --oper=rule_add --name=NO_VIAGRA --description='messages contains viagra in the subject' --type=header --value='Subject =~ viagra' --score=100 --reload=yes