Activate plugins after added via composer.json

Hi there,

I’m using trellis + bedrock to run WP locally. I added few new plugins inside composer.json and after run composer update all plugins are available inside WP Admin.

Is there a way to use a composer hook to run wp plugin activate -all? I should run this command inside vagrant machine right?

Composer has hooks you could potentially use. See Not sure if any exist to do what you want.

But yes, if you want to run that WP-CLI command, you need to do on the VM within your site folder.