Programatically download a plugin

WP CLI is best tool out there to manage plugins/ themes through command line, instead of uploading plugins through FTP or admin panel.

Once you Install WP-CLI on your machine then run below command and see magic.

wp plugin install bbpress –activate

Please check WP-CLI official documentation for further understanding.

tech