diff --git a/README.md b/README.md index c7de6d6b..567a7220 100644 --- a/README.md +++ b/README.md @@ -151,6 +151,13 @@ reference breaks. When installing a .zip file, WP-CLI extracts the package to `~/.wp-cli/packages/local/`. +If Github token authorization is required, a GitHub Personal Access Token +(https://github.com/settings/tokens) can be used. The following command +will add a GitHub Personal Access Token to Composer's global configuration: +composer config -g github-oauth.github.com +Once this has been added, the value used for will be used +for future authorization requests. + **OPTIONS** diff --git a/src/Package_Command.php b/src/Package_Command.php index e50d6662..72807bae 100644 --- a/src/Package_Command.php +++ b/src/Package_Command.php @@ -188,6 +188,13 @@ public function browse( $_, $assoc_args ) { * When installing a .zip file, WP-CLI extracts the package to * `~/.wp-cli/packages/local/`. * + * If Github token authorization is required, a GitHub Personal Access Token + * (https://github.com/settings/tokens) can be used. The following command + * will add a GitHub Personal Access Token to Composer's global configuration: + * composer config -g github-oauth.github.com + * Once this has been added, the value used for will be used + * for future authorization requests. + * * ## OPTIONS * *