Skip to content

Commit 6b3de67

Browse files
committed
Reuse env:cli in wp_cli command in env:install
1 parent 23ac059 commit 6b3de67

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tools/local-env/scripts/install.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,5 @@ wait_on( {
6161
* @param {string} cmd The WP-CLI command to run.
6262
*/
6363
function wp_cli( cmd ) {
64-
const composeFiles = local_env_utils.get_compose_files();
65-
66-
execSync( `docker compose ${composeFiles} exec cli wp --allow-root ${cmd} --path=/var/www/${process.env.LOCAL_DIR}`, { stdio: 'inherit' } );
64+
execSync( `npm --silent run env:cli -- ${cmd} --path=/var/www/${process.env.LOCAL_DIR}`, { stdio: 'inherit' } );
6765
}

0 commit comments

Comments
 (0)