WordPress WP-CLI 2 · Updates and maintenance

Run PHP in WordPress

Run a PHP snippet with WordPress loaded.

wp eval 'echo get_bloginfo("version");'

Official WordPress WP-CLI 2 documentation

More updates and maintenance commands

All updates and maintenance commands · WordPress WP-CLI 2 cheatsheet

Was this page helpful?