diff --git a/packages/env/lib/env.js b/packages/env/lib/env.js index 80b0415e7085d..90228f0f4bc1e 100644 --- a/packages/env/lib/env.js +++ b/packages/env/lib/env.js @@ -411,13 +411,17 @@ async function configureWordPress( environment, config ) { // Install WordPress. await dockerCompose.run( environment === 'development' ? 'cli' : 'tests-cli', - `wp core install - --url=localhost:${ port } - --title='${ config.name }' - --admin_user=admin - --admin_password=password - --admin_email=wordpress@example.com - --skip-email`, + [ + 'wp', + 'core', + 'install', + `--url=localhost:${ port }`, + `--title=${ config.name }`, + '--admin_user=admin', + '--admin_password=password', + '--admin_email=wordpress@example.com', + '--skip-email', + ], options );