Skip to content

Commit 7a437df

Browse files
Merge pull request #264 from wp-cli/release-1-0-0
Release v1.0.0
2 parents 060711b + b4a90ae commit 7a437df

File tree

182 files changed

+779
-367
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

182 files changed

+779
-367
lines changed

_includes/global-parameters.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ <h3>Global Parameters</h3>
2424
Whether to colorize the output.</p>
2525
<p><code>--debug[=&lt;group&gt;]</code>
2626
Show all PHP errors; add verbosity to WP-CLI bootstrap.</p>
27-
<p><code>--prompt</code>
28-
Prompt the user to enter values for all command arguments.</p>
27+
<p><code>--prompt[=&lt;assoc&gt;]</code>
28+
Prompt the user to enter values for all command arguments, or a subset specified as comma-separated values.</p>
2929
<p><code>--quiet</code>
3030
Suppress informational messages.</p>
3131

_includes/param-list.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,12 +156,12 @@
156156
</tr>
157157
<tr>
158158
<td>
159-
Prompt the user to enter values for all command arguments.
159+
Prompt the user to enter values for all command arguments, or a subset specified as comma-separated values.
160160
<br />
161161
Default value: <code>false</code>
162162
</td>
163163
<td>
164-
<code class="flag">--prompt</code>
164+
<code class="flag">--prompt[=&lt;assoc&gt;]</code>
165165
</td>
166166
<td>
167167
<em>Not available as an option</em>

_posts/2016-11-29-version-1.0.0.md

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
---
2+
layout: post
3+
author: danielbachhuber
4+
title: Version 1.0.0 released
5+
---
6+
7+
Woohoo!
8+
9+
Over the course of 5+ years, hundreds of contributors have worked to bring you WP-CLI v1.0.0, which I'm proud to announce today.
10+
11+
This release represents a level of maturity few open source projects achieve. It also marks a moment of transition. The WP-CLI project will shift its focus to the WP-CLI package ecosystem, where it will enable innovation by building and encouraging new features as standalone packages. We hope this approach will promote faster iteration and more creativity, and more sustainably distribute the maintenance burden. As these community packages find success, we'll bring their learnings back into WP-CLI, alongside bug fixes and minor enhancements.
12+
13+
Now that the issue backlog is [down to zero](https://twitter.com/danielbachhuber/status/802951083354009600), I'm personally looking forward to getting more ideas cooking for [runcommand](https://runcommand.io/), my own WP-CLI innovation studio.
14+
15+
Headed to Philly this week? I'll be at Post Status Publish and WCUS (although only until mid-afternoon Friday). Say hello - [@danielbachhuber](https://twitter.com/danielbachhuber)!
16+
17+
On with the show...
18+
19+
### Introducing `WP_CLI::runcommand()`
20+
21+
`WP_CLI::runcommand()` ([doc](/docs/internal-api/wp-cli-runcommand/)) is the new best way to run WP-CLI commands from within your WP-CLI command. It's as though `WP_CLI::run_command()` and `WP_CLI::launch_self()` grew up, married, and had the perfect child.
22+
23+
With `WP_CLI::runcommand()`, you can:
24+
25+
* Launch a new child process (default), or reuse the existing process.
26+
* Optionally prevent the process from exiting on error.
27+
* Return STDOUT generated by the command, or all command execution details (STDOUT, STDERR, return_code) as an object.
28+
* Optionally parse captured STDOUT as JSON.
29+
30+
Relevant pull requests include: [#3605](https://github.com/wp-cli/wp-cli/pull/3605), [#3619](https://github.com/wp-cli/wp-cli/pull/3619), [#3621](https://github.com/wp-cli/wp-cli/pull/3621).
31+
32+
### Breaking changes: Uses return code 1 when batch operation partially fails.
33+
34+
Some commands support performing the same operation against multiple resources (e.g. updating two or more plugins with `wp plugin update akismet hello`). Previously, if one of the operations failed (e.g. a plugin update failed to be downloaded), WP-CLI would display a warning, continue on, and exit with return code 0. Beginning in v1.0.0, WP-CLI uses return code 1 when one or more operations fails.
35+
36+
See [this issue](https://github.com/wp-cli/wp-cli/issues/3577) for more background and rationale.
37+
38+
Affected commands include:
39+
40+
* `wp media (regenerate|import)`
41+
* `wp menu delete`
42+
* `wp menu item delete`
43+
* `wp plugin (install|activate|update|toggle|deactivate|uninstall|delete)`
44+
* `wp super-admin add`
45+
* `wp theme (install|update)`
46+
* `wp term delete`
47+
* `wp widget (delete|deactivate|reset)`
48+
49+
Use `WP_CLI\Utils\report_batch_operation_results()` ([doc](/docs/internal-api/wp-cli-utils-report-batch-operation-results/)) in your custom WP-CLI commands to more easily support this behavior.
50+
51+
Relevant pull requests include: [#3584](https://github.com/wp-cli/wp-cli/pull/3584), [#3583](https://github.com/wp-cli/wp-cli/pull/3583), [#3582](https://github.com/wp-cli/wp-cli/pull/3582), [#3585](https://github.com/wp-cli/wp-cli/pull/3585), [#3586](https://github.com/wp-cli/wp-cli/pull/3586), [#3588](https://github.com/wp-cli/wp-cli/pull/3588).
52+
53+
### Everything else in 1.0.0
54+
55+
New commands:
56+
57+
* `wp package update` - Update all installed WP-CLI packages to their latest version.
58+
* `wp scaffold theme-tests` - Scaffold PHPUnit tests for themes.
59+
60+
Command improvements:
61+
62+
* `wp cache type`:
63+
* Supports WP LCache as a cache type [[#3504](https://github.com/wp-cli/wp-cli/pull/3504)].
64+
* `wp cli aliases`:
65+
* Adds `alias` to subcommand for easier access [[#3512](https://github.com/wp-cli/wp-cli/pull/3512)].
66+
* `wp cli update`:
67+
* Verifies release hash when updating [[#3515](https://github.com/wp-cli/wp-cli/pull/3515)].
68+
* No longer requires `--allow--root` flag when running as root [[#3576](https://github.com/wp-cli/wp-cli/pull/3576)].
69+
* `wp core config`:
70+
* Ensures WordPress Coding Standards are applied to the generated wp-config [[#3496](https://github.com/wp-cli/wp-cli/pull/3496)].
71+
* `wp core (install|multisite-install)`
72+
* Defaults to a randomly generated password for `--admin_password=<password>`, which is now optional [[#3535](https://github.com/wp-cli/wp-cli/pull/3535), [#3573](https://github.com/wp-cli/wp-cli/pull/3573)].
73+
* `wp core language (install|update)`:
74+
* Caches language pack downloads [[#3595](https://github.com/wp-cli/wp-cli/pull/3595)].
75+
* `wp core update`:
76+
* Uses global namespace for `WP_Error` in `CoreUpgrader` class [[#3593](https://github.com/wp-cli/wp-cli/pull/3593)].
77+
* `wp core update-db`:
78+
* Sets the `WP_INSTALLING` constant for the update process [[#3503](https://github.com/wp-cli/wp-cli/pull/3503)].
79+
* `wp package install`:
80+
* Uses supplied version in package composer.json, instead of "dev-master" [[#3519](https://github.com/wp-cli/wp-cli/pull/3519)].
81+
* Adds WP-CLI version to package manager's `composer.json`, to gracefully handle WP-CLI version constraints [[#3603](https://github.com/wp-cli/wp-cli/pull/3603)].
82+
* `wp package list`:
83+
* Indicates when a package has an update available [[#3611](https://github.com/wp-cli/wp-cli/pull/3611), [#3612](https://github.com/wp-cli/wp-cli/pull/3612)].
84+
* `wp post delete`:
85+
* Correctly indicates revisions are deleted immediately in success message [[#3524](https://github.com/wp-cli/wp-cli/pull/3524)].
86+
* `wp scaffold plugin`:
87+
* Ignores distribution archive files in `.gitignore` and `.distignore` [[#3520](https://github.com/wp-cli/wp-cli/pull/3520)].
88+
* Ignores `circle.yml`, `.gitlab-ci.yml` and `behat.yml` in `.distignore` [[#3599](https://github.com/wp-cli/wp-cli/pull/3599)].
89+
* `wp scaffold plugin-tests`:
90+
* Checks out the data directory in `install-wp-tests.sh` to prevent notices in WP 4.7 [[#3571](https://github.com/wp-cli/wp-cli/pull/3571)].
91+
92+
Framework enhancements:
93+
94+
* Updates Composer-based dependencies to latest [[#3498](https://github.com/wp-cli/wp-cli/pull/3498), [#3525](https://github.com/wp-cli/wp-cli/pull/3525)].
95+
* Introduces `--prompt=<assoc>` to prompt for specific associative args, which lets users avoid exposing secure data in bash history [[#3531](https://github.com/wp-cli/wp-cli/pull/3531)].
96+
* Adds support for the version of PHP that comes with Cygwin [[#3591](https://github.com/wp-cli/wp-cli/pull/3591)].
97+
98+
Contributors to this release (pull requests, documentation, and package authors): [abea](https://github.com/abea), [anttiviljami](https://github.com/anttiviljami), [cobyan](https://github.com/cobyan), [danielbachhuber](https://github.com/danielbachhuber), [diggy](https://github.com/diggy), [ernilambar](https://github.com/ernilambar), [franz-josef-kaiser](https://github.com/franz-josef-kaiser), [greatislander](https://github.com/greatislander), [itspriddle](https://github.com/itspriddle), [miya0001](https://github.com/miya0001), [mmcev106](https://github.com/mmcev106), [mopquill](https://github.com/mopquill), [ocean90](https://github.com/ocean90), [pj-dave](https://github.com/pj-dave), [pkarjala](https://github.com/pkarjala), [richardbuff](https://github.com/richardbuff), [sommarnatt](https://github.com/sommarnatt), [szepeviktor](https://github.com/szepeviktor), [torounit](https://github.com/torounit)
99+
100+
You can browse the full list of [resolved issues](https://github.com/wp-cli/wp-cli/issues?q=milestone%3A1.0.0+is%3Aclosed) on Github.

commands/cache/add/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ display_global_parameters: true
1212

1313
<hr />
1414

15-
If a value already exists for the key, the value isn't added.
15+
Errors if a value already exists for the key, which means the value can't
16+
be added.
1617

1718
### OPTIONS
1819

commands/cache/decr/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ display_global_parameters: true
1212

1313
<hr />
1414

15+
Errors if the value can't be decremented.
16+
1517
### OPTIONS
1618

1719
&lt;key&gt;

commands/cache/delete/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ display_global_parameters: true
1212

1313
<hr />
1414

15+
Errors if the value can't be deleted.
16+
1517
### OPTIONS
1618

1719
&lt;key&gt;

commands/cache/flush/index.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,12 @@ display_global_parameters: true
1212

1313
<hr />
1414

15-
For sites using a persistent object cache, because WordPress Multisite simply adds a blog id
16-
to the cache key, flushing cache is typically a global operation.
15+
For WordPress multisite instances using a persistent object cache,
16+
flushing the object cache will typically flush the cache for all sites.
17+
Beware of the performance impact when flushing the object cache in
18+
production.
19+
20+
Errors if the object cache can't be flushed.
1721

1822
### EXAMPLES
1923

commands/cache/get/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ display_global_parameters: true
1212

1313
<hr />
1414

15+
Errors if the value doesn't exist.
16+
1517
### OPTIONS
1618

1719
&lt;key&gt;

commands/cache/incr/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ display_global_parameters: true
1212

1313
<hr />
1414

15+
Errors if the value can't be incremented.
16+
1517
### OPTIONS
1618

1719
&lt;key&gt;

commands/cache/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ display_global_parameters: true
1212

1313
<hr />
1414

15-
Note: Persistent Object Caching is needed for these commands.
15+
Use a persistent object cache drop-in to persist cache values between requests.
1616

1717
### EXAMPLES
1818

0 commit comments

Comments
 (0)