Default ensure to true, and don't include the command parameter
wp-cli also needs cURL to build
Ensure git is installed before cloning