forked from wp-cli/wp-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoption.1
More file actions
60 lines (55 loc) · 924 Bytes
/
Copy pathoption.1
File metadata and controls
60 lines (55 loc) · 924 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "WP\-OPTION" "1" "September 2012" "" "WP-CLI"
.
.SH "NAME"
\fBwp\-option\fR \- Manage WordPress options\.
.
.SH "SYNOPSIS"
wp option get \fIkey\fR [\-\-json]
.
.P
wp option add \fIkey\fR \fIvalue\fR [\-\-json]
.
.P
wp option update \fIkey\fR \fIvalue\fR [\-\-json]
.
.P
wp option delete \fIkey\fR
.
.SH "SUBCOMMANDS"
.
.TP
\fBget\fR:
.
.IP
Get an option value\. Passing \-\-json causes the output to be formatted as JSON\.
.
.TP
\fBadd\fR:
.
.IP
Add a new option\. Pass \-\-json to decode JSON values before adding the option\.
.
.TP
\fBupdate\fR:
.
.IP
Update an existing option\. Pass \-\-json to decode JSON values before updating the option\.
.
.TP
\fBdelete\fR:
.
.IP
Delete an option\.
.
.SH "EXAMPLES"
.
.nf
wp option get siteurl
wp option add my_option foobar
wp option update my_option barfoo
wp option delete my_option
.
.fi