Skip to content

WP CLI Integration

Since v1.3, Structeezy integrates with WP CLI to help you save time in maintenance activities.

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

For now, Structeezy 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 structeezy activate <license-key> <email>Activate your license.
wp structeezy deactivateDeactivate your license.

License Activation

Terminal window
# activate your license from the cli
wp structeezy 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

Terminal window
# deactivate your license from the cli
wp structeezy deactivate

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 structeezy deactivate
# update the plugin
wp plugin update structeezy
# activate your license
wp structeezy activate YOUR-LICENSE-KEY me@domain.com

Install from local .zip and activate

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

Install from Structeezy server and activate

Terminal window
# install the plugin
wp plugin install https://structeezy.com/?download_file=your-personal-download-query --activate
# activate your license
wp structeezy activate YOUR-LICENSE-KEY me@domain.com