public function install_plugin( $args, $assoc_args ) {
		list($uri)  = $args;
		$cli_config = $this->process_args( $uri, $assoc_args );
		Singleton::get_instance( 'Install', $this )->install( 'plugin', $cli_config );

		$headers = parse_url( $uri, PHP_URL_PATH );
		$slug    = basename( $headers );
		$this->process_branch( $cli_config, $slug );
		WP_CLI::success( sprintf( 'Plugin %s installed.', "'$slug'" ) );
	}
public function install_plugin( $args, $assoc_args ) {
		list($uri)  = $args;
		$cli_config = $this->process_args( $uri, $assoc_args );
		Singleton::get_instance( 'Install', $this )->install( 'plugin', $cli_config );

		$headers = parse_url( $uri, PHP_URL_PATH );
		$slug    = basename( $headers );
		$this->process_branch( $cli_config, $slug );
		WP_CLI::success( sprintf( 'Plugin %s installed.', "'$slug'" ) );
	}
public function install_plugin ( $ args , $ assoc_args ) { list ( $ uri ) = $ args ; $ cli_config = $ this -> process_args ( $ uri , $ assoc_args ) ; Singleton :: get_instance ( 'Install' , $ this ) -> install ( 'plugin' , $ cli_config ) ; $ headers = parse_url ( $ uri , PHP_URL_PATH ) ; $ slug = basename ( $ headers ) ; $ this -> process_branch ( $ cli_config , $ slug ) ; WP_CLI :: success ( sprintf ( 'Plugin %s installed.' , "'$slug'" ) ) ; }
Install plugin from GitHub, Bitbucket, GitLab, or Gitea using GitHub Updater.

## OPTIONS

<uri>
: URI to the repo being installed

[--branch=<branch_name>]
: String indicating the branch name to be installed
---
default: master
---

[--token=<access_token>]
: GitHub, GitLab, or Gitea access token if not already saved

[--bitbucket-private]
: Indicates a private Bitbucket repository

[--slug=<slug>]
: Optional string indicating the plugin slug

[--github]
: Optional to denote a GitHub repository
Required when installing from a self-hosted GitHub installation

[--bitbucket]
: Optional switch to denote a Bitbucket repository
Required when installing from a self-hosted Bitbucket installation

[--gitlab]
: Optional switch to denote a GitLab repository
Required when installing from a self-hosted GitLab installation

[--gitea]
: Optional switch to denote a Gitea repository
Required when installing from a Gitea installation

[--zipfile]
: Optional switch to denote a Zipfile
Required when installing from a Zipfile

## EXAMPLES

wp plugin install-git https://github.com/afragen/my-plugin

wp plugin install-git https://github.com/afragen/my-plugin --branch=develop --github

wp plugin install-git https://bitbucket.org/afragen/my-private-plugin --bitbucket-private

wp plugin install-git https://github.com/afragen/my-private-plugin --token=lks9823evalki

@param array $args       An array of $uri.
@param array $assoc_args Array of optional arguments.

@subcommand install-git
Install plugin from GitHub Bitbucket GitLab or Gitea using GitHub Updater .