WP-CLI is a powerful command tool that can help streamline your workflow by enabling you to manage plugins and themes from the command line. Typically, it’s used by more advanced users or those responsible for working on a large number of sites, for example, a developer at an agency or a freelancer.
You can use WP-CLI along with Novashare to perform basic everyday tasks, and we’ll keep expanding support over time. Below are the current commands we support.
Activate plugin
To activate the Novashare plugin, use the following command.
wp plugin activate novashare
Deactivate plugin
To deactivate the Novashare plugin, use the following command.
wp plugin deactivate novashare
Activate license
To activate the license key in Novashare, use the following command. This assumes you’ve already entered the license key into the activation field under the license tab.
wp novashare activate-license
You can also include the license key in WP-CLI by adding the <key> on the end.
wp novashare activate-license [<key>]
An unlimited license is required to activate sites in a multisite environment. If you need to run commands on a subsite, you can specify the global URL parameter.
wp novashare activate-license [<key>] --url=<url>
Deactivate license
To deactivate the license key in Novashare, use the following command.
wp novashare deactivate-license
To deactivate the license on a subsite in a multisite environment, you can specify the global URL parameter.
wp novashare deactivate-license --url=<url>
Remove license
To remove the license key in Novashare, use the following command.
wp novashare remove-license
To remove the license on a subsite in a multisite environment, you can specify the global URL parameter.
wp novashare remove-license --url=<url>
Update plugin
As long as the plugin is already activated with the license key, you can update the plugin using the following command.
wp plugin update novashare
Import settings
To import settings configuration from an exported .json file, use the following command.
wp novashare import-settings <filepath>