Common WP-CLI commands for all modules

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 Modules

The following commands are common to all Shield Modules.

List all the options for the given module.

> wp shield <module> opt-list

Get the current value of a given option.

> wp shield <module> opt-get --key=<key>

Set the value of a given option.

> wp shield <module> opt-set --key=<key> --value=<value>

Enable a module.

> wp shield <module> enable

Disable a module.

> wp shield <module> disable

Learn more about WP-CLI for ShieldPRO in the release blog article here