Title: WP CLI integration
Last modified: November 9, 2023

---

# WP CLI integration

 *  Resolved [tvojamami](https://wordpress.org/support/users/jenkoanze/)
 * (@jenkoanze)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/wp-cli-integration-7/)
 * Hi all,
 * is there anything new on WordFence plugin offering integration with WP CLI tool?
 * Meaning, that we can automate our work with plugin via WP CLI (doing scans, activating
   free licenses, etc).
 * Kind regards,
   Anze

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Support [wfpeter](https://wordpress.org/support/users/wfpeter/)
 * (@wfpeter)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/wp-cli-integration-7/#post-17191622)
 * Hi [@jenkoanze](https://wordpress.org/support/users/jenkoanze/), thank-you for
   your question.
 * There has been some consideration given to this area in the past for potential
   development, although no new updates currently.
 * We’d be very interested to hear some more detail on what use-cases you had in
   mind, and some specifics around your expectations on what features offered through
   WP-CLI would allow you to do.
 * If anybody else reading this would like features available in WP-CLI too, please
   feel free to comment here with your own use-cases and which elements of Wordfence
   you think would benefit from being available in that way.
 * Many thanks,
   Peter.
 *  Plugin Support [wfpeter](https://wordpress.org/support/users/wfpeter/)
 * (@wfpeter)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/wp-cli-integration-7/#post-17218075)
 * We will close this topic now as there have been no further responses, but if 
   you find this as a result of searching the forums about Wordfence’s WP CLI features
   please detail your use-cases to **genbiz @ wordfence . com** so we can consider
   them.
 * Thanks!
 *  Thread Starter [tvojamami](https://wordpress.org/support/users/jenkoanze/)
 * (@jenkoanze)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/wp-cli-integration-7/#post-17233512)
 * Hello **[@wfpeter](https://wordpress.org/support/users/wfpeter/)**,
 * sorry for my late reply.
 * I’m providing some use-cases that I consider would be useful:
   1. Possibility 
   to generate Free licence via CLI command (_eg. wp wordfence licence-generate –
   type=free –email=admin@mysite.com_)That would send email with free licence from
   Wordfence system to specified email.2. Possibility to activate the acquired licence(
   _eg. wp wordfence licence-activate –licence=<licence\_value>_)
 * 3. Possibility to update “.htaccess” with Wordfence rules on initial setup (_eg.
   wp wordfence init-setup_)
 * 4. Possibility to run scan for malware “.htaccess” with Wordfence rules on initial
   setup (_eg. wp wordfence scan –type=(standard,high,limited) –send-output=/path/
   to/file.csv_) and write the results in .CSV file.
   I believe that there are also
   other useful use-cases that would ease up our work with Wordfence.
 * Kind regards,
   Anze

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘WP CLI integration’ is closed to new replies.

 * ![](https://ps.w.org/wordfence/assets/icon.svg?rev=2070865)
 * [Wordfence Security - Firewall, Malware Scan, and Login Security](https://wordpress.org/plugins/wordfence/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordfence/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordfence/)
 * [Active Topics](https://wordpress.org/support/plugin/wordfence/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordfence/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordfence/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [tvojamami](https://wordpress.org/support/users/jenkoanze/)
 * Last activity: [2 years, 6 months ago](https://wordpress.org/support/topic/wp-cli-integration-7/#post-17233512)
 * Status: resolved