WP-CLI

A command line interface for WordPress

Commands » plugin » is-installed

wp plugin is-installed - Check if the plugin is installed.

Quick links: Github issues


Returns exit code 0 when installed, 1 when uninstalled.

OPTIONS

<plugin>
The plugin to check.

EXAMPLES

# Check whether plugin is installed; exit status 0 if installed, otherwise 1
$ wp plugin is-installed hello-dolly
$ echo $?
1