Skip to content

Commit 6f53018

Browse files
Add section on installing packages
1 parent 8cfe24f commit 6f53018

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

_posts/2016-10-25-version-0.25.0.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,20 @@ WordPress 4.7 introduces a new `WP_Hook` implementation for registering and exec
1212

1313
Inspect the nature of the change in [this pull request](https://github.com/wp-cli/wp-cli/pull/3384).
1414

15+
### More ways to install WP-CLI packages
16+
17+
Although we'd love to see your package listed in the package index, we realize there are reasons you might not be able to do so. `wp package install` now supports installing an arbitrary Git URL [[#3482](https://github.com/wp-cli/wp-cli/pull/3482)], `.zip` file [[#3485](https://github.com/wp-cli/wp-cli/pull/3485)], or directory path [[#3484](https://github.com/wp-cli/wp-cli/pull/3484)] as a package.
18+
19+
$ wp package install [email protected]:wp-cli/google-sitemap-generator-cli.git
20+
$ wp package install https://github.com/wp-cli/google-sitemap-generator.zip
21+
$ wp package install google-sitemap-generator
22+
23+
It's worth noting Composer's behavior is slightly different for each package type:
24+
25+
* Git URLs are treated as VCS repositories, and cloned to `~/.wp-cli/packages/vendor`.
26+
* ZIP archives (remote and local) are extracted to `~/.wp-cli/packages/local`, and added as path repositories.
27+
* Local directory paths are added as path repositories, which means Composer creates a symlink to the existing directory path. If the directory you've provided is removed, then the installation will break.
28+
1529
### Everything else in 0.25.0
1630

1731
New commands:
@@ -89,6 +103,7 @@ Framework enhancements:
89103
* Provides more verbosity in `wp_die()` handler to give the end user more detail when a database connection fails [[#3459](https://github.com/wp-cli/wp-cli/pull/3459)].
90104
* Support passing arguments to `WP_CLI::do_hook()` [[#3470](https://github.com/wp-cli/wp-cli/pull/3470)].
91105
* Logs the current alias when executing an alias group [[#3471](https://github.com/wp-cli/wp-cli/pull/3471)].
106+
* Only checks `options` for a positional argument when a value is present [[#3481](https://github.com/wp-cli/wp-cli/pull/3481)].
92107

93108
Bug fixes across the board:
94109

@@ -98,3 +113,7 @@ Bug fixes across the board:
98113
* Passes slashed data in meta commands [[#3274](https://github.com/wp-cli/wp-cli/pull/3274)].
99114
* Ensures appropriate WP-CLI package index URL is used in the `composer.json` [[#3276](https://github.com/wp-cli/wp-cli/pull/3276)].
100115
* Corrects reference of `WP_CLI` to use global namespace in `WP_CLI\Utils\get_temp_dir()` [[#3369](https://github.com/wp-cli/wp-cli/pull/3369)].
116+
117+
Contributors to this release:
118+
119+
You can browse the full list of [resolved issues](https://github.com/wp-cli/wp-cli/issues?q=milestone%3A0.25.0+is%3Aclosed) on Github.

0 commit comments

Comments
 (0)