Aller au contenu

WP CLI Integration

Ce contenu n’est pas encore disponible dans votre langue.

Since v1.12.0, o-props integrates with WP CLI to help you save time in maintenance activities.

What is WP CLI?

link What is WP CLI?

WP-CLI is the command-line interface for WordPress. It provides a command-line interface for many actions you would perform in the WordPress admin.

  • Installation: You can install wp cli by following the instructions on the official website.

Structeezy Commands

link Structeezy Commands

For now, o-props adds 2 commands to WP CLI to easily activate and deactivate the plugin license. The list will grow with next versions depending on your feedback and needs.

CommandDescription
wp oxyprops activate <license-key> <email>Activate your license.
wp oxyprops deactivateDeactivate your license.

License Activation

link License Activation
Terminal window
# activate your license from the cli
wp oxyprops activate YOUR-LICENSE-KEY me@domain.com
  • YOUR-LICENSE-KEY is your Structeezy license key that can be found in your user account
  • me@domain.com is the email address associated with your Structeezy license.

License Deactivation

link License Deactivation
Terminal window
# deactivate your license from the cli
wp oxyprops deactivate

Combine with other commands

link Combine with other commands

You can combine these commands with other WP CLI commands to automate your maintenance tasks. For example, you can deactivate your license before updating the plugin and activate it again after the update.

Terminal window
# deactivate your license
wp oxyprops deactivate
# update the plugin
wp plugin update oxyprops
# activate your license
wp oxyprops activate YOUR-LICENSE-KEY me@domain.com

Install from local .zip and activate

link Install from local .zip and activate
Terminal window
# install the plugin
wp plugin install ./local/path/to/your/oxyprops.zip --activate
# activate your license
wp oxyprops activate YOUR-LICENSE-KEY me@domain.com

Install from o-props server and activate

link Install from o-props server and activate
Terminal window
# install the plugin
wp plugin install https://oxyprops.com/?download_file=your-personal-download-query --activate
# activate your license
wp oxyprops activate YOUR-LICENSE-KEY me@domain.com