Skip to content

Commit d7457bb

Browse files
Rebuild docs for v0.25.0
1 parent f29590d commit d7457bb

File tree

103 files changed

+989
-219
lines changed

Some content is hidden

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

103 files changed

+989
-219
lines changed

commands/cli/alias/index.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ display_global_parameters: true
1313
<hr />
1414

1515
Aliases are shorthand references to WordPress installs. For instance,
16-
'@dev' could refer to a development install and '@prod' could refer to
16+
`@dev` could refer to a development install and `@prod` could refer to
1717
a production install. This command gives you visibility in what
1818
registered aliases you have available.
1919

@@ -28,5 +28,19 @@ options:
2828
- json
2929
\---
3030

31+
### EXAMPLES
32+
33+
# List all available aliases.
34+
$ wp cli alias
35+
---
36+
@all: Run command against every registered alias.
37+
@prod:
38+
ssh: [email protected]~/webapps/production
39+
@dev:
40+
ssh: [email protected]/srv/www/runcommand.dev
41+
@both:
42+
- @prod
43+
- @dev
44+
3145

3246

commands/cli/check-update/index.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ display_global_parameters: true
1515
### OPTIONS
1616

1717
[\--patch]
18-
: Only list patch updates
18+
: Only list patch updates.
1919

2020
[\--minor]
21-
: Only list minor updates
21+
: Only list minor updates.
2222

2323
[\--major]
24-
: Only list major updates
24+
: Only list major updates.
2525

2626
[\--field=&lt;field&gt;]
2727
: Prints the value of a single field for each update.
@@ -43,16 +43,16 @@ options:
4343

4444
### EXAMPLES
4545

46-
# Check for update
46+
# Check for update.
4747
$ wp cli check-update
4848
Success: WP-CLI is at the latest version.
4949

50-
# Check for update and new version is available
50+
# Check for update and new version is available.
5151
$ wp cli check-update
5252
+---------+-------------+-------------------------------------------------------------------------------+
5353
| version | update_type | package_url |
5454
+---------+-------------+-------------------------------------------------------------------------------+
55-
| 0.23.1 | patch | https://github.com/wp-cli/wp-cli/releases/download/v0.23.1/wp-cli-0.23.1.phar |
55+
| 0.24.1 | patch | https://github.com/wp-cli/wp-cli/releases/download/v0.24.1/wp-cli-0.24.1.phar |
5656
+---------+-------------+-------------------------------------------------------------------------------+
5757

5858

commands/cli/cmd-dump/index.md

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

1515
### EXAMPLES
1616

17-
# Dump the list of installed commands
17+
# Dump the list of installed commands.
1818
$ wp cli cmd-dump
1919
{"name":"wp","description":"Manage WordPress through the command-line.","longdesc":"\n\n
2020

commands/cli/index.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,20 @@ display_global_parameters: true
1414

1515
### EXAMPLES
1616

17-
# Display CLI version
17+
# Display CLI version.
1818
$ wp cli version
19-
WP-CLI 0.23.1
19+
WP-CLI 0.24.1
2020

21-
# Check for update
21+
# Check for update.
2222
$ wp cli check-update
2323
Success: WP-CLI is at the latest version.
2424

25-
# Update CLI
25+
# Update CLI.
2626
$ wp cli update
27-
You have version 0.23.0. Would you like to update to 0.23.1? [y/n] y
28-
Downloading from https://github.com/wp-cli/wp-cli/releases/download/v0.23.1/wp-cli-0.23.1.phar...
27+
You have version 0.24.0. Would you like to update to 0.24.1? [y/n] y
28+
Downloading from https://github.com/wp-cli/wp-cli/releases/download/v0.24.1/wp-cli-0.24.1.phar...
2929
New version works. Proceeding to replace.
30-
Success: Updated WP-CLI to 0.23.1
30+
Success: Updated WP-CLI to 0.24.1.
3131

3232

3333

@@ -67,7 +67,7 @@ display_global_parameters: true
6767
</tr>
6868
<tr>
6969
<td><a href="/commands/cli/update/">update</a></td>
70-
<td>Fetch most recent update matching the requirements. Returns the available versions if there are updates, or empty if no update available.</td>
70+
<td>Update WP-CLI.</td>
7171
</tr>
7272
<tr>
7373
<td><a href="/commands/cli/version/">version</a></td>

commands/cli/info/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ options:
2525

2626
### EXAMPLES
2727

28+
# Display various data about the CLI environment.
2829
$ wp cli info
2930
PHP binary: /usr/bin/php5
3031
PHP version: 5.5.9-1ubuntu4.16
@@ -33,7 +34,7 @@ options:
3334
WP-CLI packages dir: /home/person/.wp-cli/packages/
3435
WP-CLI global config:
3536
WP-CLI project config:
36-
WP-CLI version: 0.23.1
37+
WP-CLI version: 0.24.1
3738

3839

3940

commands/cli/param-dump/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ options:
2828

2929
### EXAMPLES
3030

31+
# Dump the list of global parameters.
3132
$ wp cli param-dump --format=var_export
3233
array (
3334
'path' =&gt;

commands/cli/update/index.md

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,36 +6,52 @@ display_global_parameters: true
66

77
<small>[Commands](/commands/) &raquo; [cli](/commands/cli/) &raquo; update</small>
88

9-
`wp cli update` - Fetch most recent update matching the requirements. Returns the available versions if there are updates, or empty if no update available.
9+
`wp cli update` - Update WP-CLI.
1010

1111
<small>Quick links: <a href="https://github.com/wp-cli/wp-cli/issues?q=is%3Aopen+label%3Acommand%3Acli-update+sort%3Aupdated-desc">Github issues</a></small>
1212

1313
<hr />
1414

15+
Default behavior is to check the releases API for a newer version, and
16+
prompt if one is available.
17+
18+
Use `--stable` to install or reinstall the latest stable version.
19+
20+
Use `--nightly` to install the latest built version of the master branch.
21+
While not recommended for production, nightly contains the latest and
22+
greatest, and should be stable enough for development and staging
23+
environments.
24+
25+
Only works for the Phar installation mechanism.
26+
1527
### OPTIONS
1628

1729
[\--patch]
18-
: Only perform patch updates
30+
: Only perform patch updates.
1931

2032
[\--minor]
21-
: Only perform minor updates
33+
: Only perform minor updates.
2234

2335
[\--major]
24-
: Only perform major updates
36+
: Only perform major updates.
37+
38+
[\--stable]
39+
: Update to the latest stable release. Skips update check.
2540

2641
[\--nightly]
2742
: Update to the latest built version of the master branch. Potentially unstable.
2843

2944
[\--yes]
30-
: Do not prompt for confirmation
45+
: Do not prompt for confirmation.
3146

3247
### EXAMPLES
3348

49+
# Update CLI.
3450
$ wp cli update
35-
You have version 0.23.0. Would you like to update to 0.23.1? [y/n] y
36-
Downloading from https://github.com/wp-cli/wp-cli/releases/download/v0.23.1/wp-cli-0.23.1.phar...
51+
You have version 0.24.0. Would you like to update to 0.24.1? [y/n] y
52+
Downloading from https://github.com/wp-cli/wp-cli/releases/download/v0.24.1/wp-cli-0.24.1.phar...
3753
New version works. Proceeding to replace.
38-
Success: Updated WP-CLI to 0.23.1
54+
Success: Updated WP-CLI to 0.24.1.
3955

4056

4157

commands/cli/version/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ display_global_parameters: true
1414

1515
### EXAMPLES
1616

17+
# Display CLI version.
1718
$ wp cli version
18-
WP-CLI 0.23.1
19+
WP-CLI 0.24.1
1920

2021

2122

commands/comment/approve/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ display_global_parameters: true
1919

2020
### EXAMPLES
2121

22+
# Approve comment.
2223
$ wp comment approve 1337
23-
Success: Approved comment 1337
24+
Success: Approved comment 1337.
2425

2526

2627

commands/comment/count/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ display_global_parameters: true
1919

2020
### EXAMPLES
2121

22-
# Count comments on whole blog
22+
# Count comments on whole blog.
2323
$ wp comment count
2424
approved: 33
2525
spam: 3
@@ -29,7 +29,7 @@ display_global_parameters: true
2929
moderated: 1
3030
total_comments: 37
3131

32-
# Count comments in a post
32+
# Count comments in a post.
3333
$ wp comment count 42
3434
approved: 19
3535
spam: 0

0 commit comments

Comments
 (0)