←
WP-CLI664 posts
WP-CLI avatar

WP-CLI

@wpcli

The command line interface for WordPress, maintained by @schlessera. For support, please see wp-cli.org/#support

◷ Joined December 2012▧ 17 Photos and videos
Marcel Tannich avatar
⟳ WP-CLI retweeted
Marcel Tannich@MarcelTannich·16 Jun 2025

After years teaching @wpcli, I saw how the command line holds many back. At #WCEU2025, I introduced a simple web-based tool that turns checkbox selections into WP-CLI commands and scripts. This is how AI can help you automate and standardize with ease. #WCEU #WCEU2025 #WPCLI

Never install WP again manually! says @MarcelTannich He has built a graphic interface for WP CLI -- it's incredibly cool! Check it out Link: github.com/marceltannich/wce… #wceu #wceu2025

Post attachmentPost attachment
Milana Cap (#WCEU org) avatar
⟳ WP-CLI retweeted
Milana Cap (#WCEU org)@DjevaLoperka·9 Sep 2024

If you're a #WordPress site owner or administrator but unfamiliar with @wpcli (WordPress command-line interface) and feel a bit apprehensive, I have you covered in the newest Core Dev Blog article💃 developer.wordpress.org/news…

Weston Ruter (@weston.ruter.net) avatar
⟳ WP-CLI retweeted
Weston Ruter (@weston.ruter.net)@westonruter·3 Sep 2024

I've long been annoyed with how unergonomic it is to run WP-CLI commands in wp-env. So I put together a solution that makes wp-env's presence completely transparent: weston.ruter.net/2024/09/03/…

WP-CLI avatar
WP-CLI@wpcli·14 Mar 2024

Some WP-CLI commands (like most of the DB commands) don't actually load WordPress itself, so they are safe to use. But for all other commands, always remember: WP-CLI will load and execute your entire WordPress site with all active plugins/themes, just like your web server.

WP-CLI avatar
WP-CLI@wpcli·14 Mar 2024

Once you know where the malicious code is, you can still use WP-CLI to some extent if you always make sure the malicious code is NEVER triggered. For example, if bad code is only in plugin XYZ, you can append `--skip-plugins=xyz` to all the commands to make sure it's not loaded.

WP-CLI avatar
WP-CLI@wpcli·14 Mar 2024

`wp plugin verify-checksums --all --skip-plugins` will check plugins without actually loading them, in case the malicious code is found in there. We don't have checksums for themes as of yet, so you'll need to manually check the themes files.

WP-CLI avatar
WP-CLI@wpcli·14 Mar 2024

This can lead to the malicious code being executed with full administrative control over your entire server! Instead, understand what commands will not load the malicious code and stick to these only. `wp core verify-checksums` will find malicious code in Core itself.

WP-CLI avatar
WP-CLI@wpcli·14 Mar 2024

⚠️ Important tip If you suspect your website was hacked or infected with malicious code: DON'T RUN REGULAR WP-CLI COMMANDS ON IT! With most regular commands WP-CLI will execute the malicious code just like your web server, however it will have elevated privileges as well. 🧵👇