WP-CLI support with MySQL sockets in Local 5

Thanks, Ben.

Just one modification to your instructions is required for those of us who are using Local with Roots Bedrock WordPress.

When using Bedrock with Local, the Bedrock wp directory is in a different location from the standard Local setup, but wp-cli works if I just add the path to Bedrock’s wp directory using the –path parameter as shown below… (the command is being run from the …/app/public directory that Site Shell opens in)…

       wp db tables   --path='../bedrock/web/wp'
1 Like