Common WP-CLI commands for all features
Please note that whether you see text enclosed within <>, such as <something>, the <> shouldn't be included in the command when you use it.
Find out more information about any command
Use the following pattern to get full information for any particular command.
> wp help shield <cmd> e.g. > wp help shield plugin opt-set
Common Commands For All Features
The following commands are common to all Shield features.
List all the options for the given feature.
> wp shield <feature> opt-list
Get the current value of a given option.
> wp shield <feature> opt-get --key=<key>
Set the value of a given option.
> wp shield <feature> opt-set --key=<key> --value=<value>
Enable a feature.
> wp shield <feature> enable
Disable a feature.
> wp shield <feature> disable
Learn more about WP-CLI for ShieldPRO in the release blog article here.