Skip to content

Commit 7fcf14c

Browse files
committed
update command docs for WP 0.13
1 parent 9bb605e commit 7fcf14c

33 files changed

Lines changed: 148 additions & 58 deletions

File tree

_includes/cmd-list.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
<td><a href="/commands/comment/">comment</a></td>
1515
<td>Manage comments.</td>
1616
</tr>
17+
<tr>
18+
<td><a href="/commands/comment-meta/">comment-meta</a></td>
19+
<td>Manage comment custom fields.</td>
20+
</tr>
1721
<tr>
1822
<td><a href="/commands/core/">core</a></td>
1923
<td>Download, install, update and otherwise manage WordPress proper.</td>

_includes/param-list.html

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
<tr>
2-
<td><code></code></td>
3-
<td><code>--config=&lt;path&gt;</code></td>
4-
<td><code>null</code></td>
5-
<td>Path to the wp-cli config file</td>
6-
</tr>
71
<tr>
82
<td><code>path: &lt;path&gt;</code></td>
93
<td><code>--path=&lt;path&gt;</code></td>

commands/cap/list/index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,8 @@ title: 'wp cap list'
55

66
`wp cap list` - List capabilities for a given role.
77

8+
### EXAMPLES
89

10+
# Display alphabetical list of bbPress moderator capabilities
11+
wp cap list 'bbp_moderator' | sort
912

commands/cli/info/index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,8 @@ title: 'wp cli info'
55

66
`wp cli info` - Print various data about the CLI environment.
77

8+
### OPTIONS
89

10+
[\--format=&lt;format&gt;]
11+
: Accepted values: json
912

commands/comment-meta/add/index.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
layout: default
3+
title: 'wp comment-meta add'
4+
---
5+
6+
`wp comment-meta add` - Add a meta field.
7+
8+
9+
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
layout: default
3+
title: 'wp comment-meta delete'
4+
---
5+
6+
`wp comment-meta delete` - Delete a meta field.
7+
8+
9+

commands/comment-meta/get/index.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
layout: default
3+
title: 'wp comment-meta get'
4+
---
5+
6+
`wp comment-meta get` - Get meta field value.
7+
8+
9+

commands/comment-meta/index.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
layout: default
3+
title: 'wp comment-meta'
4+
---
5+
6+
`wp comment-meta` - Manage comment custom fields.
7+
8+
### OPTIONS
9+
10+
\--format=json
11+
: Encode/decode values as JSON.
12+
13+
### EXAMPLES
14+
15+
wp comment-meta set 123 description &quot;Mary is a WordPress developer.&quot;
16+
17+
### SUBCOMMANDS
18+
19+
<table>
20+
<thead>
21+
<tr>
22+
<th>Name</th>
23+
<th>Description</th>
24+
</tr>
25+
</thead>
26+
<tbody>
27+
<tr>
28+
<td><a href="/commands/comment-meta/add/">add</a></td>
29+
<td>Add a meta field.</td>
30+
</tr>
31+
<tr>
32+
<td><a href="/commands/comment-meta/delete/">delete</a></td>
33+
<td>Delete a meta field.</td>
34+
</tr>
35+
<tr>
36+
<td><a href="/commands/comment-meta/get/">get</a></td>
37+
<td>Get meta field value.</td>
38+
</tr>
39+
<tr>
40+
<td><a href="/commands/comment-meta/update/">update</a></td>
41+
<td>Update a meta field.</td>
42+
</tr>
43+
</tbody>
44+
</table>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
layout: default
3+
title: 'wp comment-meta update'
4+
---
5+
6+
`wp comment-meta update` - Update a meta field.
7+
8+
9+

commands/comment/get/index.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,7 @@ title: 'wp comment get'
1414
: Instead of returning the whole comment, returns the value of a single field.
1515

1616
[\--format=&lt;format&gt;]
17-
: The format to use when printing the comment, acceptable values:
18-
19-
- **table**: Outputs all fields of the comment as a table.
20-
- **json**: Outputs all fields in JSON format.
17+
: Accepted values: table, json. Default: table
2118

2219
### EXAMPLES
2320

0 commit comments

Comments
 (0)