wordpress using WP-CLI Commands inside a plugin code example
Example: wp cli plugin install
// --activate is optional
wp plugin install <PLUGIN-SLUG> --activate
// --activate is optional
wp plugin install <PLUGIN-SLUG> --activate