How to use WP-CLI with EasyEngine 4

Incase you’ve been exploring v4, many of you might have noticed that once you create site, you’re not able to run WP-CLI when you go into site root and try to use WP-CLI. This is because in v4, we don’t install WP-CLI on the host machine. Instead, each WP/PHP site has it own PHP container and that container has WP-CLI installed in it.

To access WP-CLI, run the following command:

ee shell example.com

This command drops you into the shell of PHP container. Here you can all the WP-CLI commands you want 🙂. For more details on the shell command, you can visit it’s documentation.