WP CLI Integration
Ce contenu n’est pas encore disponible dans votre langue.
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.
| Command | Description |
|---|---|
wp structeezy activate <license-key> <email> | Activate your license. |
wp structeezy deactivate | Deactivate your license. |
License Activation
# activate your license from the cli wp structeezy activate YOUR-LICENSE-KEY me@domain.comYOUR-LICENSE-KEYis your Structeezy license key that can be found in your user accountme@domain.comis the email address associated with your Structeezy license.
License Deactivation
# 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.
# deactivate your license wp structeezy deactivate
# update the plugin wp plugin update structeezy
# activate your license wp structeezy activate YOUR-LICENSE-KEY me@domain.comInstall from local .zip and activate
# install the plugin wp plugin install ./local/path/to/your/structeezy.zip --activate
# activate your license wp structeezy activate YOUR-LICENSE-KEY me@domain.comInstall from Structeezy server and activate
# 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.comYou can find the download query in your user account
Right-click on the download button and copy the link.