@loopress/cli 0.23.0 → 0.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +515 -83
- package/dist/commands/acf/diff.d.ts +2 -0
- package/dist/commands/acf/diff.js +5 -0
- package/dist/commands/api/diff.d.ts +2 -0
- package/dist/commands/api/diff.js +5 -0
- package/dist/commands/api/list.d.ts +2 -12
- package/dist/commands/api/list.js +2 -20
- package/dist/commands/api/pull.d.ts +2 -20
- package/dist/commands/api/pull.js +2 -53
- package/dist/commands/api/push.d.ts +2 -22
- package/dist/commands/api/push.js +2 -116
- package/dist/commands/composer/pull.js +6 -16
- package/dist/commands/dev.js +1 -1
- package/dist/commands/diff.d.ts +13 -0
- package/dist/commands/diff.js +42 -0
- package/dist/commands/form/diff.d.ts +2 -0
- package/dist/commands/form/diff.js +5 -0
- package/dist/commands/hook/diff.d.ts +2 -0
- package/dist/commands/hook/diff.js +5 -0
- package/dist/commands/hook/list.d.ts +2 -0
- package/dist/commands/hook/list.js +2 -0
- package/dist/commands/hook/pull.d.ts +2 -0
- package/dist/commands/hook/pull.js +2 -0
- package/dist/commands/hook/push.d.ts +2 -0
- package/dist/commands/hook/push.js +2 -0
- package/dist/commands/init.js +1 -1
- package/dist/commands/option/add.d.ts +15 -0
- package/dist/commands/option/add.js +47 -0
- package/dist/commands/option/diff.d.ts +2 -0
- package/dist/commands/option/diff.js +5 -0
- package/dist/commands/{page → option}/list.d.ts +5 -1
- package/dist/commands/option/list.js +151 -0
- package/dist/commands/{page → option}/pull.d.ts +3 -12
- package/dist/commands/option/pull.js +75 -0
- package/dist/commands/{page → option}/push.d.ts +3 -8
- package/dist/commands/option/push.js +66 -0
- package/dist/commands/option/remove.d.ts +22 -0
- package/dist/commands/option/remove.js +69 -0
- package/dist/commands/plugin/push.d.ts +0 -1
- package/dist/commands/plugin/push.js +3 -10
- package/dist/commands/pull.js +3 -2
- package/dist/commands/push.js +4 -3
- package/dist/commands/seo/diff.d.ts +2 -0
- package/dist/commands/seo/diff.js +5 -0
- package/dist/commands/snippet/diff.d.ts +2 -0
- package/dist/commands/snippet/diff.js +5 -0
- package/dist/commands/theme/push.d.ts +0 -1
- package/dist/commands/theme/push.js +3 -10
- package/dist/lib/base.d.ts +2 -1
- package/dist/lib/base.js +12 -22
- package/dist/lib/dev-watch.d.ts +1 -1
- package/dist/lib/dev-watch.js +1 -2
- package/dist/lib/diff-command.d.ts +47 -0
- package/dist/lib/diff-command.js +180 -0
- package/dist/lib/diff-state.d.ts +22 -0
- package/dist/lib/diff-state.js +88 -0
- package/dist/lib/find-orphaned-files.js +1 -1
- package/dist/lib/interactive.d.ts +1 -0
- package/dist/lib/interactive.js +10 -0
- package/dist/lib/php-files-command.d.ts +54 -0
- package/dist/lib/php-files-command.js +216 -0
- package/dist/lib/put-or-create.js +1 -1
- package/dist/lib/readdir-tolerant.d.ts +1 -0
- package/dist/lib/readdir-tolerant.js +3 -1
- package/dist/lib/resource-state.d.ts +14 -0
- package/dist/lib/resource-state.js +361 -0
- package/dist/lib/validate-local.js +15 -7
- package/dist/lib/wp-client.d.ts +5 -0
- package/dist/lib/wp-client.js +56 -0
- package/dist/types/project-config.generated.d.ts +8 -4
- package/dist/utils/option-format.d.ts +31 -0
- package/dist/utils/option-format.js +51 -0
- package/dist/utils/resource-dirs.d.ts +13 -0
- package/dist/utils/resource-dirs.js +34 -0
- package/oclif.manifest.json +1156 -149
- package/package.json +10 -7
- package/schemas/project-config.schema.json +10 -5
- package/dist/commands/page/list.js +0 -19
- package/dist/commands/page/pull.js +0 -57
- package/dist/commands/page/push.js +0 -132
- package/dist/utils/page-format.d.ts +0 -7
- package/dist/utils/page-format.js +0 -78
package/oclif.manifest.json
CHANGED
|
@@ -6,19 +6,19 @@
|
|
|
6
6
|
"description": "Watch project files and push changes to the local WordPress instance as they happen. Always targets the \"local\" environment, run `lps snippet push` etc. directly for any other environment.",
|
|
7
7
|
"examples": [
|
|
8
8
|
"$ lps dev",
|
|
9
|
-
"$ lps dev --only=snippets,
|
|
9
|
+
"$ lps dev --only=snippets,api",
|
|
10
10
|
"$ lps dev --skip=plugins"
|
|
11
11
|
],
|
|
12
12
|
"flags": {
|
|
13
13
|
"only": {
|
|
14
|
-
"description": "Only watch these resource types (comma-separated): snippets,
|
|
14
|
+
"description": "Only watch these resource types (comma-separated): snippets, api, plugins",
|
|
15
15
|
"name": "only",
|
|
16
16
|
"hasDynamicHelp": false,
|
|
17
17
|
"multiple": false,
|
|
18
18
|
"type": "option"
|
|
19
19
|
},
|
|
20
20
|
"skip": {
|
|
21
|
-
"description": "Skip these resource types (comma-separated): snippets,
|
|
21
|
+
"description": "Skip these resource types (comma-separated): snippets, api, plugins",
|
|
22
22
|
"name": "skip",
|
|
23
23
|
"hasDynamicHelp": false,
|
|
24
24
|
"multiple": false,
|
|
@@ -40,6 +40,113 @@
|
|
|
40
40
|
"dev.js"
|
|
41
41
|
]
|
|
42
42
|
},
|
|
43
|
+
"diff": {
|
|
44
|
+
"aliases": [],
|
|
45
|
+
"args": {},
|
|
46
|
+
"description": "Show what differs between your local tracked files and a WordPress environment, or between two environments. Covers snippets, forms, ACF, API routes, Hooks, SEO, and Composer. Plugins and themes have their own `lps plugin status` / `lps theme status`. Exit code: 0 in sync, 1 on drift, 2 when a resource could not be compared, so it doubles as a CI drift gate.",
|
|
47
|
+
"examples": [
|
|
48
|
+
"$ lps diff",
|
|
49
|
+
"$ lps diff --env staging",
|
|
50
|
+
"$ lps diff --env staging --against production",
|
|
51
|
+
"$ lps diff --only snippet --only acf",
|
|
52
|
+
"$ lps diff --skip composer"
|
|
53
|
+
],
|
|
54
|
+
"flags": {
|
|
55
|
+
"json": {
|
|
56
|
+
"description": "Format output as json.",
|
|
57
|
+
"helpGroup": "GLOBAL",
|
|
58
|
+
"name": "json",
|
|
59
|
+
"allowNo": false,
|
|
60
|
+
"type": "boolean"
|
|
61
|
+
},
|
|
62
|
+
"env": {
|
|
63
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
64
|
+
"name": "env",
|
|
65
|
+
"hasDynamicHelp": false,
|
|
66
|
+
"multiple": false,
|
|
67
|
+
"type": "option"
|
|
68
|
+
},
|
|
69
|
+
"against": {
|
|
70
|
+
"description": "Compare the primary environment against this second environment instead of against local files",
|
|
71
|
+
"name": "against",
|
|
72
|
+
"hasDynamicHelp": false,
|
|
73
|
+
"multiple": false,
|
|
74
|
+
"type": "option"
|
|
75
|
+
},
|
|
76
|
+
"only": {
|
|
77
|
+
"description": "Only compare these resources",
|
|
78
|
+
"name": "only",
|
|
79
|
+
"hasDynamicHelp": false,
|
|
80
|
+
"multiple": true,
|
|
81
|
+
"options": [
|
|
82
|
+
"snippet",
|
|
83
|
+
"form",
|
|
84
|
+
"acf",
|
|
85
|
+
"api",
|
|
86
|
+
"hook",
|
|
87
|
+
"seo",
|
|
88
|
+
"option",
|
|
89
|
+
"composer"
|
|
90
|
+
],
|
|
91
|
+
"type": "option"
|
|
92
|
+
},
|
|
93
|
+
"skip": {
|
|
94
|
+
"description": "Compare every resource except these",
|
|
95
|
+
"name": "skip",
|
|
96
|
+
"hasDynamicHelp": false,
|
|
97
|
+
"multiple": true,
|
|
98
|
+
"options": [
|
|
99
|
+
"snippet",
|
|
100
|
+
"form",
|
|
101
|
+
"acf",
|
|
102
|
+
"api",
|
|
103
|
+
"hook",
|
|
104
|
+
"seo",
|
|
105
|
+
"option",
|
|
106
|
+
"composer"
|
|
107
|
+
],
|
|
108
|
+
"type": "option"
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"hasDynamicHelp": false,
|
|
112
|
+
"hiddenAliases": [],
|
|
113
|
+
"id": "diff",
|
|
114
|
+
"pluginAlias": "@loopress/cli",
|
|
115
|
+
"pluginName": "@loopress/cli",
|
|
116
|
+
"pluginType": "core",
|
|
117
|
+
"strict": true,
|
|
118
|
+
"enableJsonFlag": true,
|
|
119
|
+
"dryRunFlag": {
|
|
120
|
+
"dry-run": {
|
|
121
|
+
"char": "d",
|
|
122
|
+
"description": "Show what would change without making changes",
|
|
123
|
+
"allowNo": false,
|
|
124
|
+
"type": "boolean"
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
"yesFlag": {
|
|
128
|
+
"yes": {
|
|
129
|
+
"char": "y",
|
|
130
|
+
"description": "Answer yes to confirmation prompts",
|
|
131
|
+
"allowNo": false,
|
|
132
|
+
"type": "boolean"
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
"againstFlag": {
|
|
136
|
+
"against": {
|
|
137
|
+
"description": "Compare the primary environment against this second environment instead of against local files",
|
|
138
|
+
"input": [],
|
|
139
|
+
"multiple": false,
|
|
140
|
+
"type": "option"
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
"isESM": true,
|
|
144
|
+
"relativePath": [
|
|
145
|
+
"dist",
|
|
146
|
+
"commands",
|
|
147
|
+
"diff.js"
|
|
148
|
+
]
|
|
149
|
+
},
|
|
43
150
|
"doctor": {
|
|
44
151
|
"aliases": [],
|
|
45
152
|
"args": {},
|
|
@@ -210,7 +317,7 @@
|
|
|
210
317
|
"pull": {
|
|
211
318
|
"aliases": [],
|
|
212
319
|
"args": {},
|
|
213
|
-
"description": "Pull all content, plugins, composer dependencies, ACF, API routes,
|
|
320
|
+
"description": "Pull all content, plugins, composer dependencies, ACF, API routes, hooks, forms, SEO, options, and snippets, from WordPress",
|
|
214
321
|
"examples": [
|
|
215
322
|
"$ lps pull",
|
|
216
323
|
"$ lps pull --env staging",
|
|
@@ -273,7 +380,7 @@
|
|
|
273
380
|
"push": {
|
|
274
381
|
"aliases": [],
|
|
275
382
|
"args": {},
|
|
276
|
-
"description": "Push all local content, plugins, composer dependencies, ACF, API routes,
|
|
383
|
+
"description": "Push all local content, plugins, composer dependencies, ACF, API routes, hooks, forms, SEO, options, and snippets, to WordPress",
|
|
277
384
|
"examples": [
|
|
278
385
|
"$ lps push",
|
|
279
386
|
"$ lps push --env staging",
|
|
@@ -424,6 +531,83 @@
|
|
|
424
531
|
"validate.js"
|
|
425
532
|
]
|
|
426
533
|
},
|
|
534
|
+
"acf:diff": {
|
|
535
|
+
"aliases": [],
|
|
536
|
+
"args": {
|
|
537
|
+
"path": {
|
|
538
|
+
"description": "Path to ACF directory (overrides project config)",
|
|
539
|
+
"name": "path"
|
|
540
|
+
}
|
|
541
|
+
},
|
|
542
|
+
"description": "Show what differs in ACF field groups, post types, taxonomies, and options pages between your local files and a WordPress environment, or between two environments",
|
|
543
|
+
"examples": [
|
|
544
|
+
"$ lps acf diff",
|
|
545
|
+
"$ lps acf diff --env staging",
|
|
546
|
+
"$ lps acf diff --env staging --against production"
|
|
547
|
+
],
|
|
548
|
+
"flags": {
|
|
549
|
+
"json": {
|
|
550
|
+
"description": "Format output as json.",
|
|
551
|
+
"helpGroup": "GLOBAL",
|
|
552
|
+
"name": "json",
|
|
553
|
+
"allowNo": false,
|
|
554
|
+
"type": "boolean"
|
|
555
|
+
},
|
|
556
|
+
"env": {
|
|
557
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
558
|
+
"name": "env",
|
|
559
|
+
"hasDynamicHelp": false,
|
|
560
|
+
"multiple": false,
|
|
561
|
+
"type": "option"
|
|
562
|
+
},
|
|
563
|
+
"against": {
|
|
564
|
+
"description": "Compare the primary environment against this second environment instead of against local files",
|
|
565
|
+
"name": "against",
|
|
566
|
+
"hasDynamicHelp": false,
|
|
567
|
+
"multiple": false,
|
|
568
|
+
"type": "option"
|
|
569
|
+
}
|
|
570
|
+
},
|
|
571
|
+
"hasDynamicHelp": false,
|
|
572
|
+
"hiddenAliases": [],
|
|
573
|
+
"id": "acf:diff",
|
|
574
|
+
"pluginAlias": "@loopress/cli",
|
|
575
|
+
"pluginName": "@loopress/cli",
|
|
576
|
+
"pluginType": "core",
|
|
577
|
+
"strict": true,
|
|
578
|
+
"enableJsonFlag": true,
|
|
579
|
+
"dryRunFlag": {
|
|
580
|
+
"dry-run": {
|
|
581
|
+
"char": "d",
|
|
582
|
+
"description": "Show what would change without making changes",
|
|
583
|
+
"allowNo": false,
|
|
584
|
+
"type": "boolean"
|
|
585
|
+
}
|
|
586
|
+
},
|
|
587
|
+
"yesFlag": {
|
|
588
|
+
"yes": {
|
|
589
|
+
"char": "y",
|
|
590
|
+
"description": "Answer yes to confirmation prompts",
|
|
591
|
+
"allowNo": false,
|
|
592
|
+
"type": "boolean"
|
|
593
|
+
}
|
|
594
|
+
},
|
|
595
|
+
"againstFlag": {
|
|
596
|
+
"against": {
|
|
597
|
+
"description": "Compare the primary environment against this second environment instead of against local files",
|
|
598
|
+
"input": [],
|
|
599
|
+
"multiple": false,
|
|
600
|
+
"type": "option"
|
|
601
|
+
}
|
|
602
|
+
},
|
|
603
|
+
"isESM": true,
|
|
604
|
+
"relativePath": [
|
|
605
|
+
"dist",
|
|
606
|
+
"commands",
|
|
607
|
+
"acf",
|
|
608
|
+
"diff.js"
|
|
609
|
+
]
|
|
610
|
+
},
|
|
427
611
|
"acf:list": {
|
|
428
612
|
"aliases": [],
|
|
429
613
|
"args": {},
|
|
@@ -638,6 +822,83 @@
|
|
|
638
822
|
"push.js"
|
|
639
823
|
]
|
|
640
824
|
},
|
|
825
|
+
"api:diff": {
|
|
826
|
+
"aliases": [],
|
|
827
|
+
"args": {
|
|
828
|
+
"path": {
|
|
829
|
+
"description": "Path to api directory (overrides project config)",
|
|
830
|
+
"name": "path"
|
|
831
|
+
}
|
|
832
|
+
},
|
|
833
|
+
"description": "Show what differs in custom API route files between your local files and a WordPress environment, or between two environments",
|
|
834
|
+
"examples": [
|
|
835
|
+
"$ lps api diff",
|
|
836
|
+
"$ lps api diff --env staging",
|
|
837
|
+
"$ lps api diff --env staging --against production"
|
|
838
|
+
],
|
|
839
|
+
"flags": {
|
|
840
|
+
"json": {
|
|
841
|
+
"description": "Format output as json.",
|
|
842
|
+
"helpGroup": "GLOBAL",
|
|
843
|
+
"name": "json",
|
|
844
|
+
"allowNo": false,
|
|
845
|
+
"type": "boolean"
|
|
846
|
+
},
|
|
847
|
+
"env": {
|
|
848
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
849
|
+
"name": "env",
|
|
850
|
+
"hasDynamicHelp": false,
|
|
851
|
+
"multiple": false,
|
|
852
|
+
"type": "option"
|
|
853
|
+
},
|
|
854
|
+
"against": {
|
|
855
|
+
"description": "Compare the primary environment against this second environment instead of against local files",
|
|
856
|
+
"name": "against",
|
|
857
|
+
"hasDynamicHelp": false,
|
|
858
|
+
"multiple": false,
|
|
859
|
+
"type": "option"
|
|
860
|
+
}
|
|
861
|
+
},
|
|
862
|
+
"hasDynamicHelp": false,
|
|
863
|
+
"hiddenAliases": [],
|
|
864
|
+
"id": "api:diff",
|
|
865
|
+
"pluginAlias": "@loopress/cli",
|
|
866
|
+
"pluginName": "@loopress/cli",
|
|
867
|
+
"pluginType": "core",
|
|
868
|
+
"strict": true,
|
|
869
|
+
"enableJsonFlag": true,
|
|
870
|
+
"dryRunFlag": {
|
|
871
|
+
"dry-run": {
|
|
872
|
+
"char": "d",
|
|
873
|
+
"description": "Show what would change without making changes",
|
|
874
|
+
"allowNo": false,
|
|
875
|
+
"type": "boolean"
|
|
876
|
+
}
|
|
877
|
+
},
|
|
878
|
+
"yesFlag": {
|
|
879
|
+
"yes": {
|
|
880
|
+
"char": "y",
|
|
881
|
+
"description": "Answer yes to confirmation prompts",
|
|
882
|
+
"allowNo": false,
|
|
883
|
+
"type": "boolean"
|
|
884
|
+
}
|
|
885
|
+
},
|
|
886
|
+
"againstFlag": {
|
|
887
|
+
"against": {
|
|
888
|
+
"description": "Compare the primary environment against this second environment instead of against local files",
|
|
889
|
+
"input": [],
|
|
890
|
+
"multiple": false,
|
|
891
|
+
"type": "option"
|
|
892
|
+
}
|
|
893
|
+
},
|
|
894
|
+
"isESM": true,
|
|
895
|
+
"relativePath": [
|
|
896
|
+
"dist",
|
|
897
|
+
"commands",
|
|
898
|
+
"api",
|
|
899
|
+
"diff.js"
|
|
900
|
+
]
|
|
901
|
+
},
|
|
641
902
|
"api:list": {
|
|
642
903
|
"aliases": [],
|
|
643
904
|
"args": {},
|
|
@@ -1299,12 +1560,19 @@
|
|
|
1299
1560
|
"push.js"
|
|
1300
1561
|
]
|
|
1301
1562
|
},
|
|
1302
|
-
"form:
|
|
1563
|
+
"form:diff": {
|
|
1303
1564
|
"aliases": [],
|
|
1304
|
-
"args": {
|
|
1305
|
-
|
|
1565
|
+
"args": {
|
|
1566
|
+
"path": {
|
|
1567
|
+
"description": "Path to forms directory (overrides project config)",
|
|
1568
|
+
"name": "path"
|
|
1569
|
+
}
|
|
1570
|
+
},
|
|
1571
|
+
"description": "Show what differs in forms between your local files and a WordPress environment, or between two environments",
|
|
1306
1572
|
"examples": [
|
|
1307
|
-
"$ lps form
|
|
1573
|
+
"$ lps form diff",
|
|
1574
|
+
"$ lps form diff --env staging",
|
|
1575
|
+
"$ lps form diff --env staging --against production"
|
|
1308
1576
|
],
|
|
1309
1577
|
"flags": {
|
|
1310
1578
|
"json": {
|
|
@@ -1320,11 +1588,18 @@
|
|
|
1320
1588
|
"hasDynamicHelp": false,
|
|
1321
1589
|
"multiple": false,
|
|
1322
1590
|
"type": "option"
|
|
1591
|
+
},
|
|
1592
|
+
"against": {
|
|
1593
|
+
"description": "Compare the primary environment against this second environment instead of against local files",
|
|
1594
|
+
"name": "against",
|
|
1595
|
+
"hasDynamicHelp": false,
|
|
1596
|
+
"multiple": false,
|
|
1597
|
+
"type": "option"
|
|
1323
1598
|
}
|
|
1324
1599
|
},
|
|
1325
1600
|
"hasDynamicHelp": false,
|
|
1326
1601
|
"hiddenAliases": [],
|
|
1327
|
-
"id": "form:
|
|
1602
|
+
"id": "form:diff",
|
|
1328
1603
|
"pluginAlias": "@loopress/cli",
|
|
1329
1604
|
"pluginName": "@loopress/cli",
|
|
1330
1605
|
"pluginType": "core",
|
|
@@ -1346,57 +1621,53 @@
|
|
|
1346
1621
|
"type": "boolean"
|
|
1347
1622
|
}
|
|
1348
1623
|
},
|
|
1624
|
+
"againstFlag": {
|
|
1625
|
+
"against": {
|
|
1626
|
+
"description": "Compare the primary environment against this second environment instead of against local files",
|
|
1627
|
+
"input": [],
|
|
1628
|
+
"multiple": false,
|
|
1629
|
+
"type": "option"
|
|
1630
|
+
}
|
|
1631
|
+
},
|
|
1349
1632
|
"isESM": true,
|
|
1350
1633
|
"relativePath": [
|
|
1351
1634
|
"dist",
|
|
1352
1635
|
"commands",
|
|
1353
1636
|
"form",
|
|
1354
|
-
"
|
|
1637
|
+
"diff.js"
|
|
1355
1638
|
]
|
|
1356
1639
|
},
|
|
1357
|
-
"form:
|
|
1640
|
+
"form:list": {
|
|
1358
1641
|
"aliases": [],
|
|
1359
|
-
"args": {
|
|
1360
|
-
|
|
1361
|
-
"description": "Path to forms directory (overrides project config)",
|
|
1362
|
-
"name": "path"
|
|
1363
|
-
}
|
|
1364
|
-
},
|
|
1365
|
-
"description": "Pull forms from WordPress",
|
|
1642
|
+
"args": {},
|
|
1643
|
+
"description": "List forms from WordPress",
|
|
1366
1644
|
"examples": [
|
|
1367
|
-
"$ lps form
|
|
1645
|
+
"$ lps form list"
|
|
1368
1646
|
],
|
|
1369
1647
|
"flags": {
|
|
1648
|
+
"json": {
|
|
1649
|
+
"description": "Format output as json.",
|
|
1650
|
+
"helpGroup": "GLOBAL",
|
|
1651
|
+
"name": "json",
|
|
1652
|
+
"allowNo": false,
|
|
1653
|
+
"type": "boolean"
|
|
1654
|
+
},
|
|
1370
1655
|
"env": {
|
|
1371
1656
|
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
1372
1657
|
"name": "env",
|
|
1373
1658
|
"hasDynamicHelp": false,
|
|
1374
1659
|
"multiple": false,
|
|
1375
1660
|
"type": "option"
|
|
1376
|
-
},
|
|
1377
|
-
"dry-run": {
|
|
1378
|
-
"char": "d",
|
|
1379
|
-
"description": "Show what would change without making changes",
|
|
1380
|
-
"name": "dry-run",
|
|
1381
|
-
"allowNo": false,
|
|
1382
|
-
"type": "boolean"
|
|
1383
|
-
},
|
|
1384
|
-
"yes": {
|
|
1385
|
-
"char": "y",
|
|
1386
|
-
"description": "Answer yes to confirmation prompts",
|
|
1387
|
-
"name": "yes",
|
|
1388
|
-
"allowNo": false,
|
|
1389
|
-
"type": "boolean"
|
|
1390
1661
|
}
|
|
1391
1662
|
},
|
|
1392
1663
|
"hasDynamicHelp": false,
|
|
1393
1664
|
"hiddenAliases": [],
|
|
1394
|
-
"id": "form:
|
|
1665
|
+
"id": "form:list",
|
|
1395
1666
|
"pluginAlias": "@loopress/cli",
|
|
1396
1667
|
"pluginName": "@loopress/cli",
|
|
1397
1668
|
"pluginType": "core",
|
|
1398
1669
|
"strict": true,
|
|
1399
|
-
"enableJsonFlag":
|
|
1670
|
+
"enableJsonFlag": true,
|
|
1400
1671
|
"dryRunFlag": {
|
|
1401
1672
|
"dry-run": {
|
|
1402
1673
|
"char": "d",
|
|
@@ -1418,10 +1689,10 @@
|
|
|
1418
1689
|
"dist",
|
|
1419
1690
|
"commands",
|
|
1420
1691
|
"form",
|
|
1421
|
-
"
|
|
1692
|
+
"list.js"
|
|
1422
1693
|
]
|
|
1423
1694
|
},
|
|
1424
|
-
"form:
|
|
1695
|
+
"form:pull": {
|
|
1425
1696
|
"aliases": [],
|
|
1426
1697
|
"args": {
|
|
1427
1698
|
"path": {
|
|
@@ -1429,9 +1700,9 @@
|
|
|
1429
1700
|
"name": "path"
|
|
1430
1701
|
}
|
|
1431
1702
|
},
|
|
1432
|
-
"description": "
|
|
1703
|
+
"description": "Pull forms from WordPress",
|
|
1433
1704
|
"examples": [
|
|
1434
|
-
"$ lps form
|
|
1705
|
+
"$ lps form pull"
|
|
1435
1706
|
],
|
|
1436
1707
|
"flags": {
|
|
1437
1708
|
"env": {
|
|
@@ -1458,33 +1729,47 @@
|
|
|
1458
1729
|
},
|
|
1459
1730
|
"hasDynamicHelp": false,
|
|
1460
1731
|
"hiddenAliases": [],
|
|
1461
|
-
"id": "form:
|
|
1732
|
+
"id": "form:pull",
|
|
1462
1733
|
"pluginAlias": "@loopress/cli",
|
|
1463
1734
|
"pluginName": "@loopress/cli",
|
|
1464
1735
|
"pluginType": "core",
|
|
1465
1736
|
"strict": true,
|
|
1737
|
+
"enableJsonFlag": false,
|
|
1738
|
+
"dryRunFlag": {
|
|
1739
|
+
"dry-run": {
|
|
1740
|
+
"char": "d",
|
|
1741
|
+
"description": "Show what would change without making changes",
|
|
1742
|
+
"allowNo": false,
|
|
1743
|
+
"type": "boolean"
|
|
1744
|
+
}
|
|
1745
|
+
},
|
|
1746
|
+
"yesFlag": {
|
|
1747
|
+
"yes": {
|
|
1748
|
+
"char": "y",
|
|
1749
|
+
"description": "Answer yes to confirmation prompts",
|
|
1750
|
+
"allowNo": false,
|
|
1751
|
+
"type": "boolean"
|
|
1752
|
+
}
|
|
1753
|
+
},
|
|
1466
1754
|
"isESM": true,
|
|
1467
1755
|
"relativePath": [
|
|
1468
1756
|
"dist",
|
|
1469
1757
|
"commands",
|
|
1470
1758
|
"form",
|
|
1471
|
-
"
|
|
1759
|
+
"pull.js"
|
|
1472
1760
|
]
|
|
1473
1761
|
},
|
|
1474
|
-
"
|
|
1762
|
+
"form:push": {
|
|
1475
1763
|
"aliases": [],
|
|
1476
1764
|
"args": {
|
|
1477
|
-
"
|
|
1478
|
-
"description": "
|
|
1479
|
-
"name": "
|
|
1480
|
-
"required": true
|
|
1765
|
+
"path": {
|
|
1766
|
+
"description": "Path to forms directory (overrides project config)",
|
|
1767
|
+
"name": "path"
|
|
1481
1768
|
}
|
|
1482
1769
|
},
|
|
1483
|
-
"description": "
|
|
1770
|
+
"description": "Push forms to WordPress. Local files created or updated remotely are renamed on disk to the `<id>-<slug>.json` convention.",
|
|
1484
1771
|
"examples": [
|
|
1485
|
-
"$ lps
|
|
1486
|
-
"$ lps plugin add woocommerce --version 9.4.2",
|
|
1487
|
-
"$ lps plugin add contact-form-7 --dry-run"
|
|
1772
|
+
"$ lps form push"
|
|
1488
1773
|
],
|
|
1489
1774
|
"flags": {
|
|
1490
1775
|
"env": {
|
|
@@ -1501,9 +1786,61 @@
|
|
|
1501
1786
|
"allowNo": false,
|
|
1502
1787
|
"type": "boolean"
|
|
1503
1788
|
},
|
|
1504
|
-
"
|
|
1505
|
-
"
|
|
1506
|
-
"
|
|
1789
|
+
"yes": {
|
|
1790
|
+
"char": "y",
|
|
1791
|
+
"description": "Answer yes to confirmation prompts",
|
|
1792
|
+
"name": "yes",
|
|
1793
|
+
"allowNo": false,
|
|
1794
|
+
"type": "boolean"
|
|
1795
|
+
}
|
|
1796
|
+
},
|
|
1797
|
+
"hasDynamicHelp": false,
|
|
1798
|
+
"hiddenAliases": [],
|
|
1799
|
+
"id": "form:push",
|
|
1800
|
+
"pluginAlias": "@loopress/cli",
|
|
1801
|
+
"pluginName": "@loopress/cli",
|
|
1802
|
+
"pluginType": "core",
|
|
1803
|
+
"strict": true,
|
|
1804
|
+
"isESM": true,
|
|
1805
|
+
"relativePath": [
|
|
1806
|
+
"dist",
|
|
1807
|
+
"commands",
|
|
1808
|
+
"form",
|
|
1809
|
+
"push.js"
|
|
1810
|
+
]
|
|
1811
|
+
},
|
|
1812
|
+
"hook:diff": {
|
|
1813
|
+
"aliases": [],
|
|
1814
|
+
"args": {
|
|
1815
|
+
"path": {
|
|
1816
|
+
"description": "Path to hooks directory (overrides project config)",
|
|
1817
|
+
"name": "path"
|
|
1818
|
+
}
|
|
1819
|
+
},
|
|
1820
|
+
"description": "Show what differs in hook files between your local files and a WordPress environment, or between two environments",
|
|
1821
|
+
"examples": [
|
|
1822
|
+
"$ lps hook diff",
|
|
1823
|
+
"$ lps hook diff --env staging",
|
|
1824
|
+
"$ lps hook diff --env staging --against production"
|
|
1825
|
+
],
|
|
1826
|
+
"flags": {
|
|
1827
|
+
"json": {
|
|
1828
|
+
"description": "Format output as json.",
|
|
1829
|
+
"helpGroup": "GLOBAL",
|
|
1830
|
+
"name": "json",
|
|
1831
|
+
"allowNo": false,
|
|
1832
|
+
"type": "boolean"
|
|
1833
|
+
},
|
|
1834
|
+
"env": {
|
|
1835
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
1836
|
+
"name": "env",
|
|
1837
|
+
"hasDynamicHelp": false,
|
|
1838
|
+
"multiple": false,
|
|
1839
|
+
"type": "option"
|
|
1840
|
+
},
|
|
1841
|
+
"against": {
|
|
1842
|
+
"description": "Compare the primary environment against this second environment instead of against local files",
|
|
1843
|
+
"name": "against",
|
|
1507
1844
|
"hasDynamicHelp": false,
|
|
1508
1845
|
"multiple": false,
|
|
1509
1846
|
"type": "option"
|
|
@@ -1511,12 +1848,12 @@
|
|
|
1511
1848
|
},
|
|
1512
1849
|
"hasDynamicHelp": false,
|
|
1513
1850
|
"hiddenAliases": [],
|
|
1514
|
-
"id": "
|
|
1851
|
+
"id": "hook:diff",
|
|
1515
1852
|
"pluginAlias": "@loopress/cli",
|
|
1516
1853
|
"pluginName": "@loopress/cli",
|
|
1517
1854
|
"pluginType": "core",
|
|
1518
1855
|
"strict": true,
|
|
1519
|
-
"enableJsonFlag":
|
|
1856
|
+
"enableJsonFlag": true,
|
|
1520
1857
|
"dryRunFlag": {
|
|
1521
1858
|
"dry-run": {
|
|
1522
1859
|
"char": "d",
|
|
@@ -1533,20 +1870,28 @@
|
|
|
1533
1870
|
"type": "boolean"
|
|
1534
1871
|
}
|
|
1535
1872
|
},
|
|
1873
|
+
"againstFlag": {
|
|
1874
|
+
"against": {
|
|
1875
|
+
"description": "Compare the primary environment against this second environment instead of against local files",
|
|
1876
|
+
"input": [],
|
|
1877
|
+
"multiple": false,
|
|
1878
|
+
"type": "option"
|
|
1879
|
+
}
|
|
1880
|
+
},
|
|
1536
1881
|
"isESM": true,
|
|
1537
1882
|
"relativePath": [
|
|
1538
1883
|
"dist",
|
|
1539
1884
|
"commands",
|
|
1540
|
-
"
|
|
1541
|
-
"
|
|
1885
|
+
"hook",
|
|
1886
|
+
"diff.js"
|
|
1542
1887
|
]
|
|
1543
1888
|
},
|
|
1544
|
-
"
|
|
1889
|
+
"hook:list": {
|
|
1545
1890
|
"aliases": [],
|
|
1546
1891
|
"args": {},
|
|
1547
|
-
"description": "
|
|
1892
|
+
"description": "List hook files (actions, filters, cron) from WordPress",
|
|
1548
1893
|
"examples": [
|
|
1549
|
-
"$ lps
|
|
1894
|
+
"$ lps hook list"
|
|
1550
1895
|
],
|
|
1551
1896
|
"flags": {
|
|
1552
1897
|
"json": {
|
|
@@ -1566,7 +1911,7 @@
|
|
|
1566
1911
|
},
|
|
1567
1912
|
"hasDynamicHelp": false,
|
|
1568
1913
|
"hiddenAliases": [],
|
|
1569
|
-
"id": "
|
|
1914
|
+
"id": "hook:list",
|
|
1570
1915
|
"pluginAlias": "@loopress/cli",
|
|
1571
1916
|
"pluginName": "@loopress/cli",
|
|
1572
1917
|
"pluginType": "core",
|
|
@@ -1592,17 +1937,22 @@
|
|
|
1592
1937
|
"relativePath": [
|
|
1593
1938
|
"dist",
|
|
1594
1939
|
"commands",
|
|
1595
|
-
"
|
|
1596
|
-
"
|
|
1940
|
+
"hook",
|
|
1941
|
+
"list.js"
|
|
1597
1942
|
]
|
|
1598
1943
|
},
|
|
1599
|
-
"
|
|
1944
|
+
"hook:pull": {
|
|
1600
1945
|
"aliases": [],
|
|
1601
|
-
"args": {
|
|
1602
|
-
|
|
1946
|
+
"args": {
|
|
1947
|
+
"path": {
|
|
1948
|
+
"description": "Path to hooks directory (overrides project config)",
|
|
1949
|
+
"name": "path"
|
|
1950
|
+
}
|
|
1951
|
+
},
|
|
1952
|
+
"description": "Pull hook files (actions, filters, cron) from WordPress",
|
|
1603
1953
|
"examples": [
|
|
1604
|
-
"$ lps
|
|
1605
|
-
"$ lps
|
|
1954
|
+
"$ lps hook pull",
|
|
1955
|
+
"$ lps hook pull --path ./hooks"
|
|
1606
1956
|
],
|
|
1607
1957
|
"flags": {
|
|
1608
1958
|
"json": {
|
|
@@ -1625,11 +1975,18 @@
|
|
|
1625
1975
|
"name": "dry-run",
|
|
1626
1976
|
"allowNo": false,
|
|
1627
1977
|
"type": "boolean"
|
|
1978
|
+
},
|
|
1979
|
+
"yes": {
|
|
1980
|
+
"char": "y",
|
|
1981
|
+
"description": "Answer yes to confirmation prompts",
|
|
1982
|
+
"name": "yes",
|
|
1983
|
+
"allowNo": false,
|
|
1984
|
+
"type": "boolean"
|
|
1628
1985
|
}
|
|
1629
1986
|
},
|
|
1630
1987
|
"hasDynamicHelp": false,
|
|
1631
1988
|
"hiddenAliases": [],
|
|
1632
|
-
"id": "
|
|
1989
|
+
"id": "hook:pull",
|
|
1633
1990
|
"pluginAlias": "@loopress/cli",
|
|
1634
1991
|
"pluginName": "@loopress/cli",
|
|
1635
1992
|
"pluginType": "core",
|
|
@@ -1655,18 +2012,22 @@
|
|
|
1655
2012
|
"relativePath": [
|
|
1656
2013
|
"dist",
|
|
1657
2014
|
"commands",
|
|
1658
|
-
"
|
|
2015
|
+
"hook",
|
|
1659
2016
|
"pull.js"
|
|
1660
2017
|
]
|
|
1661
2018
|
},
|
|
1662
|
-
"
|
|
2019
|
+
"hook:push": {
|
|
1663
2020
|
"aliases": [],
|
|
1664
|
-
"args": {
|
|
1665
|
-
|
|
2021
|
+
"args": {
|
|
2022
|
+
"path": {
|
|
2023
|
+
"description": "Path to hooks directory (overrides project config)",
|
|
2024
|
+
"name": "path"
|
|
2025
|
+
}
|
|
2026
|
+
},
|
|
2027
|
+
"description": "Push hook files (actions, filters, cron) to WordPress",
|
|
1666
2028
|
"examples": [
|
|
1667
|
-
"$ lps
|
|
1668
|
-
"$ lps
|
|
1669
|
-
"$ lps plugin push --force --prune"
|
|
2029
|
+
"$ lps hook push",
|
|
2030
|
+
"$ lps hook push --path ./hooks"
|
|
1670
2031
|
],
|
|
1671
2032
|
"flags": {
|
|
1672
2033
|
"json": {
|
|
@@ -1696,42 +2057,536 @@
|
|
|
1696
2057
|
"name": "yes",
|
|
1697
2058
|
"allowNo": false,
|
|
1698
2059
|
"type": "boolean"
|
|
2060
|
+
}
|
|
2061
|
+
},
|
|
2062
|
+
"hasDynamicHelp": false,
|
|
2063
|
+
"hiddenAliases": [],
|
|
2064
|
+
"id": "hook:push",
|
|
2065
|
+
"pluginAlias": "@loopress/cli",
|
|
2066
|
+
"pluginName": "@loopress/cli",
|
|
2067
|
+
"pluginType": "core",
|
|
2068
|
+
"strict": true,
|
|
2069
|
+
"enableJsonFlag": true,
|
|
2070
|
+
"isESM": true,
|
|
2071
|
+
"relativePath": [
|
|
2072
|
+
"dist",
|
|
2073
|
+
"commands",
|
|
2074
|
+
"hook",
|
|
2075
|
+
"push.js"
|
|
2076
|
+
]
|
|
2077
|
+
},
|
|
2078
|
+
"option:add": {
|
|
2079
|
+
"aliases": [],
|
|
2080
|
+
"args": {
|
|
2081
|
+
"name": {
|
|
2082
|
+
"description": "Option name to start tracking (see `lps option list`)",
|
|
2083
|
+
"name": "name",
|
|
2084
|
+
"required": true
|
|
2085
|
+
}
|
|
2086
|
+
},
|
|
2087
|
+
"description": "Fetch a WordPress option by name and start tracking it locally. Run `lps option list` first to find the name: this copies a raw value across environments, verify it does not embed post/user IDs before pushing it elsewhere.",
|
|
2088
|
+
"examples": [
|
|
2089
|
+
"$ lps option add wpseo_titles",
|
|
2090
|
+
"$ lps option add siteurl"
|
|
2091
|
+
],
|
|
2092
|
+
"flags": {
|
|
2093
|
+
"json": {
|
|
2094
|
+
"description": "Format output as json.",
|
|
2095
|
+
"helpGroup": "GLOBAL",
|
|
2096
|
+
"name": "json",
|
|
2097
|
+
"allowNo": false,
|
|
2098
|
+
"type": "boolean"
|
|
1699
2099
|
},
|
|
1700
|
-
"
|
|
1701
|
-
"description": "
|
|
1702
|
-
"name": "
|
|
2100
|
+
"env": {
|
|
2101
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
2102
|
+
"name": "env",
|
|
2103
|
+
"hasDynamicHelp": false,
|
|
2104
|
+
"multiple": false,
|
|
2105
|
+
"type": "option"
|
|
2106
|
+
},
|
|
2107
|
+
"dry-run": {
|
|
2108
|
+
"char": "d",
|
|
2109
|
+
"description": "Show what would change without making changes",
|
|
2110
|
+
"name": "dry-run",
|
|
1703
2111
|
"allowNo": false,
|
|
1704
2112
|
"type": "boolean"
|
|
1705
2113
|
},
|
|
1706
|
-
"
|
|
1707
|
-
"description": "
|
|
1708
|
-
"name": "
|
|
2114
|
+
"path": {
|
|
2115
|
+
"description": "Path to options directory (overrides project config)",
|
|
2116
|
+
"name": "path",
|
|
2117
|
+
"hasDynamicHelp": false,
|
|
2118
|
+
"multiple": false,
|
|
2119
|
+
"type": "option"
|
|
2120
|
+
}
|
|
2121
|
+
},
|
|
2122
|
+
"hasDynamicHelp": false,
|
|
2123
|
+
"hiddenAliases": [],
|
|
2124
|
+
"id": "option:add",
|
|
2125
|
+
"pluginAlias": "@loopress/cli",
|
|
2126
|
+
"pluginName": "@loopress/cli",
|
|
2127
|
+
"pluginType": "core",
|
|
2128
|
+
"strict": true,
|
|
2129
|
+
"enableJsonFlag": true,
|
|
2130
|
+
"dryRunFlag": {
|
|
2131
|
+
"dry-run": {
|
|
2132
|
+
"char": "d",
|
|
2133
|
+
"description": "Show what would change without making changes",
|
|
2134
|
+
"allowNo": false,
|
|
2135
|
+
"type": "boolean"
|
|
2136
|
+
}
|
|
2137
|
+
},
|
|
2138
|
+
"yesFlag": {
|
|
2139
|
+
"yes": {
|
|
2140
|
+
"char": "y",
|
|
2141
|
+
"description": "Answer yes to confirmation prompts",
|
|
2142
|
+
"allowNo": false,
|
|
2143
|
+
"type": "boolean"
|
|
2144
|
+
}
|
|
2145
|
+
},
|
|
2146
|
+
"isESM": true,
|
|
2147
|
+
"relativePath": [
|
|
2148
|
+
"dist",
|
|
2149
|
+
"commands",
|
|
2150
|
+
"option",
|
|
2151
|
+
"add.js"
|
|
2152
|
+
]
|
|
2153
|
+
},
|
|
2154
|
+
"option:diff": {
|
|
2155
|
+
"aliases": [],
|
|
2156
|
+
"args": {
|
|
2157
|
+
"path": {
|
|
2158
|
+
"description": "Path to options directory (overrides project config)",
|
|
2159
|
+
"name": "path"
|
|
2160
|
+
}
|
|
2161
|
+
},
|
|
2162
|
+
"description": "Show what differs, for locally tracked options, between your local files and a WordPress environment, or between two environments",
|
|
2163
|
+
"examples": [
|
|
2164
|
+
"$ lps option diff",
|
|
2165
|
+
"$ lps option diff --env staging",
|
|
2166
|
+
"$ lps option diff --env staging --against production"
|
|
2167
|
+
],
|
|
2168
|
+
"flags": {
|
|
2169
|
+
"json": {
|
|
2170
|
+
"description": "Format output as json.",
|
|
2171
|
+
"helpGroup": "GLOBAL",
|
|
2172
|
+
"name": "json",
|
|
1709
2173
|
"allowNo": false,
|
|
1710
2174
|
"type": "boolean"
|
|
2175
|
+
},
|
|
2176
|
+
"env": {
|
|
2177
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
2178
|
+
"name": "env",
|
|
2179
|
+
"hasDynamicHelp": false,
|
|
2180
|
+
"multiple": false,
|
|
2181
|
+
"type": "option"
|
|
2182
|
+
},
|
|
2183
|
+
"against": {
|
|
2184
|
+
"description": "Compare the primary environment against this second environment instead of against local files",
|
|
2185
|
+
"name": "against",
|
|
2186
|
+
"hasDynamicHelp": false,
|
|
2187
|
+
"multiple": false,
|
|
2188
|
+
"type": "option"
|
|
2189
|
+
}
|
|
2190
|
+
},
|
|
2191
|
+
"hasDynamicHelp": false,
|
|
2192
|
+
"hiddenAliases": [],
|
|
2193
|
+
"id": "option:diff",
|
|
2194
|
+
"pluginAlias": "@loopress/cli",
|
|
2195
|
+
"pluginName": "@loopress/cli",
|
|
2196
|
+
"pluginType": "core",
|
|
2197
|
+
"strict": true,
|
|
2198
|
+
"enableJsonFlag": true,
|
|
2199
|
+
"dryRunFlag": {
|
|
2200
|
+
"dry-run": {
|
|
2201
|
+
"char": "d",
|
|
2202
|
+
"description": "Show what would change without making changes",
|
|
2203
|
+
"allowNo": false,
|
|
2204
|
+
"type": "boolean"
|
|
2205
|
+
}
|
|
2206
|
+
},
|
|
2207
|
+
"yesFlag": {
|
|
2208
|
+
"yes": {
|
|
2209
|
+
"char": "y",
|
|
2210
|
+
"description": "Answer yes to confirmation prompts",
|
|
2211
|
+
"allowNo": false,
|
|
2212
|
+
"type": "boolean"
|
|
2213
|
+
}
|
|
2214
|
+
},
|
|
2215
|
+
"againstFlag": {
|
|
2216
|
+
"against": {
|
|
2217
|
+
"description": "Compare the primary environment against this second environment instead of against local files",
|
|
2218
|
+
"input": [],
|
|
2219
|
+
"multiple": false,
|
|
2220
|
+
"type": "option"
|
|
2221
|
+
}
|
|
2222
|
+
},
|
|
2223
|
+
"isESM": true,
|
|
2224
|
+
"relativePath": [
|
|
2225
|
+
"dist",
|
|
2226
|
+
"commands",
|
|
2227
|
+
"option",
|
|
2228
|
+
"diff.js"
|
|
2229
|
+
]
|
|
2230
|
+
},
|
|
2231
|
+
"option:list": {
|
|
2232
|
+
"aliases": [],
|
|
2233
|
+
"args": {},
|
|
2234
|
+
"description": "List WordPress option names currently on the site (names and autoload only, never values). CORE flags a WordPress-native default (certain); SOURCE? is a best-effort guessed plugin slug, found by name or by scanning active plugins' own PHP source (uncertain unless confirmed, occasionally wrong or blank, never trust it over CORE); PLUGIN is that slug's own declared display name, a label only, no confidence of its own. Use this to find the name of the option you want, then `lps option add <name>` to track it.",
|
|
2235
|
+
"examples": [
|
|
2236
|
+
"$ lps option list",
|
|
2237
|
+
"$ lps option list --no-core"
|
|
2238
|
+
],
|
|
2239
|
+
"flags": {
|
|
2240
|
+
"json": {
|
|
2241
|
+
"description": "Format output as json.",
|
|
2242
|
+
"helpGroup": "GLOBAL",
|
|
2243
|
+
"name": "json",
|
|
2244
|
+
"allowNo": false,
|
|
2245
|
+
"type": "boolean"
|
|
2246
|
+
},
|
|
2247
|
+
"env": {
|
|
2248
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
2249
|
+
"name": "env",
|
|
2250
|
+
"hasDynamicHelp": false,
|
|
2251
|
+
"multiple": false,
|
|
2252
|
+
"type": "option"
|
|
2253
|
+
},
|
|
2254
|
+
"no-core": {
|
|
2255
|
+
"description": "Exclude WordPress-native default options and the CORE column from the output, including --json",
|
|
2256
|
+
"name": "no-core",
|
|
2257
|
+
"allowNo": false,
|
|
2258
|
+
"type": "boolean"
|
|
2259
|
+
}
|
|
2260
|
+
},
|
|
2261
|
+
"hasDynamicHelp": false,
|
|
2262
|
+
"hiddenAliases": [],
|
|
2263
|
+
"id": "option:list",
|
|
2264
|
+
"pluginAlias": "@loopress/cli",
|
|
2265
|
+
"pluginName": "@loopress/cli",
|
|
2266
|
+
"pluginType": "core",
|
|
2267
|
+
"strict": true,
|
|
2268
|
+
"enableJsonFlag": true,
|
|
2269
|
+
"dryRunFlag": {
|
|
2270
|
+
"dry-run": {
|
|
2271
|
+
"char": "d",
|
|
2272
|
+
"description": "Show what would change without making changes",
|
|
2273
|
+
"allowNo": false,
|
|
2274
|
+
"type": "boolean"
|
|
2275
|
+
}
|
|
2276
|
+
},
|
|
2277
|
+
"yesFlag": {
|
|
2278
|
+
"yes": {
|
|
2279
|
+
"char": "y",
|
|
2280
|
+
"description": "Answer yes to confirmation prompts",
|
|
2281
|
+
"allowNo": false,
|
|
2282
|
+
"type": "boolean"
|
|
2283
|
+
}
|
|
2284
|
+
},
|
|
2285
|
+
"isESM": true,
|
|
2286
|
+
"relativePath": [
|
|
2287
|
+
"dist",
|
|
2288
|
+
"commands",
|
|
2289
|
+
"option",
|
|
2290
|
+
"list.js"
|
|
2291
|
+
]
|
|
2292
|
+
},
|
|
2293
|
+
"option:pull": {
|
|
2294
|
+
"aliases": [],
|
|
2295
|
+
"args": {
|
|
2296
|
+
"path": {
|
|
2297
|
+
"description": "Path to options directory (overrides project config)",
|
|
2298
|
+
"name": "path"
|
|
2299
|
+
}
|
|
2300
|
+
},
|
|
2301
|
+
"description": "Refresh locally tracked options from WordPress. Options not yet tracked are never pulled, run `lps option add <name>` for those first.",
|
|
2302
|
+
"examples": [
|
|
2303
|
+
"$ lps option pull"
|
|
2304
|
+
],
|
|
2305
|
+
"flags": {
|
|
2306
|
+
"json": {
|
|
2307
|
+
"description": "Format output as json.",
|
|
2308
|
+
"helpGroup": "GLOBAL",
|
|
2309
|
+
"name": "json",
|
|
2310
|
+
"allowNo": false,
|
|
2311
|
+
"type": "boolean"
|
|
2312
|
+
},
|
|
2313
|
+
"env": {
|
|
2314
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
2315
|
+
"name": "env",
|
|
2316
|
+
"hasDynamicHelp": false,
|
|
2317
|
+
"multiple": false,
|
|
2318
|
+
"type": "option"
|
|
2319
|
+
},
|
|
2320
|
+
"dry-run": {
|
|
2321
|
+
"char": "d",
|
|
2322
|
+
"description": "Show what would change without making changes",
|
|
2323
|
+
"name": "dry-run",
|
|
2324
|
+
"allowNo": false,
|
|
2325
|
+
"type": "boolean"
|
|
2326
|
+
},
|
|
2327
|
+
"yes": {
|
|
2328
|
+
"char": "y",
|
|
2329
|
+
"description": "Answer yes to confirmation prompts",
|
|
2330
|
+
"name": "yes",
|
|
2331
|
+
"allowNo": false,
|
|
2332
|
+
"type": "boolean"
|
|
2333
|
+
}
|
|
2334
|
+
},
|
|
2335
|
+
"hasDynamicHelp": false,
|
|
2336
|
+
"hiddenAliases": [],
|
|
2337
|
+
"id": "option:pull",
|
|
2338
|
+
"pluginAlias": "@loopress/cli",
|
|
2339
|
+
"pluginName": "@loopress/cli",
|
|
2340
|
+
"pluginType": "core",
|
|
2341
|
+
"strict": true,
|
|
2342
|
+
"enableJsonFlag": true,
|
|
2343
|
+
"dryRunFlag": {
|
|
2344
|
+
"dry-run": {
|
|
2345
|
+
"char": "d",
|
|
2346
|
+
"description": "Show what would change without making changes",
|
|
2347
|
+
"allowNo": false,
|
|
2348
|
+
"type": "boolean"
|
|
2349
|
+
}
|
|
2350
|
+
},
|
|
2351
|
+
"yesFlag": {
|
|
2352
|
+
"yes": {
|
|
2353
|
+
"char": "y",
|
|
2354
|
+
"description": "Answer yes to confirmation prompts",
|
|
2355
|
+
"allowNo": false,
|
|
2356
|
+
"type": "boolean"
|
|
2357
|
+
}
|
|
2358
|
+
},
|
|
2359
|
+
"isESM": true,
|
|
2360
|
+
"relativePath": [
|
|
2361
|
+
"dist",
|
|
2362
|
+
"commands",
|
|
2363
|
+
"option",
|
|
2364
|
+
"pull.js"
|
|
2365
|
+
]
|
|
2366
|
+
},
|
|
2367
|
+
"option:push": {
|
|
2368
|
+
"aliases": [],
|
|
2369
|
+
"args": {
|
|
2370
|
+
"path": {
|
|
2371
|
+
"description": "Path to options directory (overrides project config)",
|
|
2372
|
+
"name": "path"
|
|
2373
|
+
}
|
|
2374
|
+
},
|
|
2375
|
+
"description": "Push locally tracked, non-readonly options to WordPress (upsert only, never deletes an untracked option). Options marked \"readonly\": true in their local file are skipped, edit the file to override.",
|
|
2376
|
+
"examples": [
|
|
2377
|
+
"$ lps option push"
|
|
2378
|
+
],
|
|
2379
|
+
"flags": {
|
|
2380
|
+
"json": {
|
|
2381
|
+
"description": "Format output as json.",
|
|
2382
|
+
"helpGroup": "GLOBAL",
|
|
2383
|
+
"name": "json",
|
|
2384
|
+
"allowNo": false,
|
|
2385
|
+
"type": "boolean"
|
|
2386
|
+
},
|
|
2387
|
+
"env": {
|
|
2388
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
2389
|
+
"name": "env",
|
|
2390
|
+
"hasDynamicHelp": false,
|
|
2391
|
+
"multiple": false,
|
|
2392
|
+
"type": "option"
|
|
2393
|
+
},
|
|
2394
|
+
"dry-run": {
|
|
2395
|
+
"char": "d",
|
|
2396
|
+
"description": "Show what would change without making changes",
|
|
2397
|
+
"name": "dry-run",
|
|
2398
|
+
"allowNo": false,
|
|
2399
|
+
"type": "boolean"
|
|
2400
|
+
},
|
|
2401
|
+
"yes": {
|
|
2402
|
+
"char": "y",
|
|
2403
|
+
"description": "Answer yes to confirmation prompts",
|
|
2404
|
+
"name": "yes",
|
|
2405
|
+
"allowNo": false,
|
|
2406
|
+
"type": "boolean"
|
|
2407
|
+
}
|
|
2408
|
+
},
|
|
2409
|
+
"hasDynamicHelp": false,
|
|
2410
|
+
"hiddenAliases": [],
|
|
2411
|
+
"id": "option:push",
|
|
2412
|
+
"pluginAlias": "@loopress/cli",
|
|
2413
|
+
"pluginName": "@loopress/cli",
|
|
2414
|
+
"pluginType": "core",
|
|
2415
|
+
"strict": true,
|
|
2416
|
+
"enableJsonFlag": true,
|
|
2417
|
+
"isESM": true,
|
|
2418
|
+
"relativePath": [
|
|
2419
|
+
"dist",
|
|
2420
|
+
"commands",
|
|
2421
|
+
"option",
|
|
2422
|
+
"push.js"
|
|
2423
|
+
]
|
|
2424
|
+
},
|
|
2425
|
+
"option:remove": {
|
|
2426
|
+
"aliases": [],
|
|
2427
|
+
"args": {
|
|
2428
|
+
"name": {
|
|
2429
|
+
"description": "Option name to stop tracking",
|
|
2430
|
+
"name": "name",
|
|
2431
|
+
"required": true
|
|
2432
|
+
}
|
|
2433
|
+
},
|
|
2434
|
+
"description": "Stop tracking an option locally and delete it from WordPress. Local untracking always happens (git-reversible); pass --local-only to skip the WordPress delete and only stop tracking.",
|
|
2435
|
+
"examples": [
|
|
2436
|
+
"$ lps option remove wpseo_titles",
|
|
2437
|
+
"$ lps option remove wpseo_titles --local-only"
|
|
2438
|
+
],
|
|
2439
|
+
"flags": {
|
|
2440
|
+
"json": {
|
|
2441
|
+
"description": "Format output as json.",
|
|
2442
|
+
"helpGroup": "GLOBAL",
|
|
2443
|
+
"name": "json",
|
|
2444
|
+
"allowNo": false,
|
|
2445
|
+
"type": "boolean"
|
|
2446
|
+
},
|
|
2447
|
+
"env": {
|
|
2448
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
2449
|
+
"name": "env",
|
|
2450
|
+
"hasDynamicHelp": false,
|
|
2451
|
+
"multiple": false,
|
|
2452
|
+
"type": "option"
|
|
2453
|
+
},
|
|
2454
|
+
"dry-run": {
|
|
2455
|
+
"char": "d",
|
|
2456
|
+
"description": "Show what would change without making changes",
|
|
2457
|
+
"name": "dry-run",
|
|
2458
|
+
"allowNo": false,
|
|
2459
|
+
"type": "boolean"
|
|
2460
|
+
},
|
|
2461
|
+
"yes": {
|
|
2462
|
+
"char": "y",
|
|
2463
|
+
"description": "Answer yes to confirmation prompts",
|
|
2464
|
+
"name": "yes",
|
|
2465
|
+
"allowNo": false,
|
|
2466
|
+
"type": "boolean"
|
|
2467
|
+
},
|
|
2468
|
+
"local-only": {
|
|
2469
|
+
"description": "Untrack locally without deleting the option on WordPress",
|
|
2470
|
+
"name": "local-only",
|
|
2471
|
+
"allowNo": false,
|
|
2472
|
+
"type": "boolean"
|
|
2473
|
+
},
|
|
2474
|
+
"path": {
|
|
2475
|
+
"description": "Path to options directory (overrides project config)",
|
|
2476
|
+
"name": "path",
|
|
2477
|
+
"hasDynamicHelp": false,
|
|
2478
|
+
"multiple": false,
|
|
2479
|
+
"type": "option"
|
|
2480
|
+
}
|
|
2481
|
+
},
|
|
2482
|
+
"hasDynamicHelp": false,
|
|
2483
|
+
"hiddenAliases": [],
|
|
2484
|
+
"id": "option:remove",
|
|
2485
|
+
"pluginAlias": "@loopress/cli",
|
|
2486
|
+
"pluginName": "@loopress/cli",
|
|
2487
|
+
"pluginType": "core",
|
|
2488
|
+
"strict": true,
|
|
2489
|
+
"enableJsonFlag": true,
|
|
2490
|
+
"dryRunFlag": {
|
|
2491
|
+
"dry-run": {
|
|
2492
|
+
"char": "d",
|
|
2493
|
+
"description": "Show what would change without making changes",
|
|
2494
|
+
"allowNo": false,
|
|
2495
|
+
"type": "boolean"
|
|
2496
|
+
}
|
|
2497
|
+
},
|
|
2498
|
+
"yesFlag": {
|
|
2499
|
+
"yes": {
|
|
2500
|
+
"char": "y",
|
|
2501
|
+
"description": "Answer yes to confirmation prompts",
|
|
2502
|
+
"allowNo": false,
|
|
2503
|
+
"type": "boolean"
|
|
2504
|
+
}
|
|
2505
|
+
},
|
|
2506
|
+
"isESM": true,
|
|
2507
|
+
"relativePath": [
|
|
2508
|
+
"dist",
|
|
2509
|
+
"commands",
|
|
2510
|
+
"option",
|
|
2511
|
+
"remove.js"
|
|
2512
|
+
]
|
|
2513
|
+
},
|
|
2514
|
+
"plugin:add": {
|
|
2515
|
+
"aliases": [],
|
|
2516
|
+
"args": {
|
|
2517
|
+
"slug": {
|
|
2518
|
+
"description": "Plugin slug on WordPress.org",
|
|
2519
|
+
"name": "slug",
|
|
2520
|
+
"required": true
|
|
2521
|
+
}
|
|
2522
|
+
},
|
|
2523
|
+
"description": "Add a WordPress.org plugin to loopress.json",
|
|
2524
|
+
"examples": [
|
|
2525
|
+
"$ lps plugin add woocommerce",
|
|
2526
|
+
"$ lps plugin add woocommerce --version 9.4.2",
|
|
2527
|
+
"$ lps plugin add contact-form-7 --dry-run"
|
|
2528
|
+
],
|
|
2529
|
+
"flags": {
|
|
2530
|
+
"env": {
|
|
2531
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
2532
|
+
"name": "env",
|
|
2533
|
+
"hasDynamicHelp": false,
|
|
2534
|
+
"multiple": false,
|
|
2535
|
+
"type": "option"
|
|
2536
|
+
},
|
|
2537
|
+
"dry-run": {
|
|
2538
|
+
"char": "d",
|
|
2539
|
+
"description": "Show what would change without making changes",
|
|
2540
|
+
"name": "dry-run",
|
|
2541
|
+
"allowNo": false,
|
|
2542
|
+
"type": "boolean"
|
|
2543
|
+
},
|
|
2544
|
+
"version": {
|
|
2545
|
+
"description": "Exact version to pin (default: \"latest\", tracked on every push)",
|
|
2546
|
+
"name": "version",
|
|
2547
|
+
"hasDynamicHelp": false,
|
|
2548
|
+
"multiple": false,
|
|
2549
|
+
"type": "option"
|
|
1711
2550
|
}
|
|
1712
2551
|
},
|
|
1713
2552
|
"hasDynamicHelp": false,
|
|
1714
2553
|
"hiddenAliases": [],
|
|
1715
|
-
"id": "plugin:
|
|
2554
|
+
"id": "plugin:add",
|
|
1716
2555
|
"pluginAlias": "@loopress/cli",
|
|
1717
2556
|
"pluginName": "@loopress/cli",
|
|
1718
2557
|
"pluginType": "core",
|
|
1719
2558
|
"strict": true,
|
|
1720
|
-
"enableJsonFlag":
|
|
2559
|
+
"enableJsonFlag": false,
|
|
2560
|
+
"dryRunFlag": {
|
|
2561
|
+
"dry-run": {
|
|
2562
|
+
"char": "d",
|
|
2563
|
+
"description": "Show what would change without making changes",
|
|
2564
|
+
"allowNo": false,
|
|
2565
|
+
"type": "boolean"
|
|
2566
|
+
}
|
|
2567
|
+
},
|
|
2568
|
+
"yesFlag": {
|
|
2569
|
+
"yes": {
|
|
2570
|
+
"char": "y",
|
|
2571
|
+
"description": "Answer yes to confirmation prompts",
|
|
2572
|
+
"allowNo": false,
|
|
2573
|
+
"type": "boolean"
|
|
2574
|
+
}
|
|
2575
|
+
},
|
|
1721
2576
|
"isESM": true,
|
|
1722
2577
|
"relativePath": [
|
|
1723
2578
|
"dist",
|
|
1724
2579
|
"commands",
|
|
1725
2580
|
"plugin",
|
|
1726
|
-
"
|
|
2581
|
+
"add.js"
|
|
1727
2582
|
]
|
|
1728
2583
|
},
|
|
1729
|
-
"plugin:
|
|
2584
|
+
"plugin:audit": {
|
|
1730
2585
|
"aliases": [],
|
|
1731
2586
|
"args": {},
|
|
1732
|
-
"description": "
|
|
2587
|
+
"description": "Check the plugins in loopress.json for known vulnerabilities and health issues",
|
|
1733
2588
|
"examples": [
|
|
1734
|
-
"$ lps plugin
|
|
2589
|
+
"$ lps plugin audit"
|
|
1735
2590
|
],
|
|
1736
2591
|
"flags": {
|
|
1737
2592
|
"json": {
|
|
@@ -1751,7 +2606,7 @@
|
|
|
1751
2606
|
},
|
|
1752
2607
|
"hasDynamicHelp": false,
|
|
1753
2608
|
"hiddenAliases": [],
|
|
1754
|
-
"id": "plugin:
|
|
2609
|
+
"id": "plugin:audit",
|
|
1755
2610
|
"pluginAlias": "@loopress/cli",
|
|
1756
2611
|
"pluginName": "@loopress/cli",
|
|
1757
2612
|
"pluginType": "core",
|
|
@@ -1778,15 +2633,16 @@
|
|
|
1778
2633
|
"dist",
|
|
1779
2634
|
"commands",
|
|
1780
2635
|
"plugin",
|
|
1781
|
-
"
|
|
2636
|
+
"audit.js"
|
|
1782
2637
|
]
|
|
1783
2638
|
},
|
|
1784
|
-
"
|
|
2639
|
+
"plugin:pull": {
|
|
1785
2640
|
"aliases": [],
|
|
1786
2641
|
"args": {},
|
|
1787
|
-
"description": "
|
|
2642
|
+
"description": "Pull installed plugins from WordPress into loopress.json, pinned to their live versions",
|
|
1788
2643
|
"examples": [
|
|
1789
|
-
"$ lps
|
|
2644
|
+
"$ lps plugin pull",
|
|
2645
|
+
"$ lps plugin pull --dry-run"
|
|
1790
2646
|
],
|
|
1791
2647
|
"flags": {
|
|
1792
2648
|
"json": {
|
|
@@ -1802,11 +2658,18 @@
|
|
|
1802
2658
|
"hasDynamicHelp": false,
|
|
1803
2659
|
"multiple": false,
|
|
1804
2660
|
"type": "option"
|
|
2661
|
+
},
|
|
2662
|
+
"dry-run": {
|
|
2663
|
+
"char": "d",
|
|
2664
|
+
"description": "Show what would change without making changes",
|
|
2665
|
+
"name": "dry-run",
|
|
2666
|
+
"allowNo": false,
|
|
2667
|
+
"type": "boolean"
|
|
1805
2668
|
}
|
|
1806
2669
|
},
|
|
1807
2670
|
"hasDynamicHelp": false,
|
|
1808
2671
|
"hiddenAliases": [],
|
|
1809
|
-
"id": "
|
|
2672
|
+
"id": "plugin:pull",
|
|
1810
2673
|
"pluginAlias": "@loopress/cli",
|
|
1811
2674
|
"pluginName": "@loopress/cli",
|
|
1812
2675
|
"pluginType": "core",
|
|
@@ -1832,21 +2695,18 @@
|
|
|
1832
2695
|
"relativePath": [
|
|
1833
2696
|
"dist",
|
|
1834
2697
|
"commands",
|
|
1835
|
-
"
|
|
1836
|
-
"
|
|
2698
|
+
"plugin",
|
|
2699
|
+
"pull.js"
|
|
1837
2700
|
]
|
|
1838
2701
|
},
|
|
1839
|
-
"
|
|
2702
|
+
"plugin:push": {
|
|
1840
2703
|
"aliases": [],
|
|
1841
|
-
"args": {
|
|
1842
|
-
|
|
1843
|
-
"description": "Path to pages directory (overrides project config)",
|
|
1844
|
-
"name": "path"
|
|
1845
|
-
}
|
|
1846
|
-
},
|
|
1847
|
-
"description": "Pull pages from WordPress",
|
|
2704
|
+
"args": {},
|
|
2705
|
+
"description": "Install plugins on WordPress to match loopress.json, pinned via Composer + WPackagist",
|
|
1848
2706
|
"examples": [
|
|
1849
|
-
"$ lps
|
|
2707
|
+
"$ lps plugin push",
|
|
2708
|
+
"$ lps plugin push --dry-run",
|
|
2709
|
+
"$ lps plugin push --force --prune"
|
|
1850
2710
|
],
|
|
1851
2711
|
"flags": {
|
|
1852
2712
|
"json": {
|
|
@@ -1876,51 +2736,42 @@
|
|
|
1876
2736
|
"name": "yes",
|
|
1877
2737
|
"allowNo": false,
|
|
1878
2738
|
"type": "boolean"
|
|
2739
|
+
},
|
|
2740
|
+
"force": {
|
|
2741
|
+
"description": "Allow downgrades and let Loopress take over plugins installed outside it (replaces their files)",
|
|
2742
|
+
"name": "force",
|
|
2743
|
+
"allowNo": false,
|
|
2744
|
+
"type": "boolean"
|
|
2745
|
+
},
|
|
2746
|
+
"prune": {
|
|
2747
|
+
"description": "Deactivate plugins that are active on the site but absent from loopress.json",
|
|
2748
|
+
"name": "prune",
|
|
2749
|
+
"allowNo": false,
|
|
2750
|
+
"type": "boolean"
|
|
1879
2751
|
}
|
|
1880
2752
|
},
|
|
1881
2753
|
"hasDynamicHelp": false,
|
|
1882
2754
|
"hiddenAliases": [],
|
|
1883
|
-
"id": "
|
|
2755
|
+
"id": "plugin:push",
|
|
1884
2756
|
"pluginAlias": "@loopress/cli",
|
|
1885
2757
|
"pluginName": "@loopress/cli",
|
|
1886
2758
|
"pluginType": "core",
|
|
1887
2759
|
"strict": true,
|
|
1888
2760
|
"enableJsonFlag": true,
|
|
1889
|
-
"dryRunFlag": {
|
|
1890
|
-
"dry-run": {
|
|
1891
|
-
"char": "d",
|
|
1892
|
-
"description": "Show what would change without making changes",
|
|
1893
|
-
"allowNo": false,
|
|
1894
|
-
"type": "boolean"
|
|
1895
|
-
}
|
|
1896
|
-
},
|
|
1897
|
-
"yesFlag": {
|
|
1898
|
-
"yes": {
|
|
1899
|
-
"char": "y",
|
|
1900
|
-
"description": "Answer yes to confirmation prompts",
|
|
1901
|
-
"allowNo": false,
|
|
1902
|
-
"type": "boolean"
|
|
1903
|
-
}
|
|
1904
|
-
},
|
|
1905
2761
|
"isESM": true,
|
|
1906
2762
|
"relativePath": [
|
|
1907
2763
|
"dist",
|
|
1908
2764
|
"commands",
|
|
1909
|
-
"
|
|
1910
|
-
"
|
|
2765
|
+
"plugin",
|
|
2766
|
+
"push.js"
|
|
1911
2767
|
]
|
|
1912
2768
|
},
|
|
1913
|
-
"
|
|
2769
|
+
"plugin:status": {
|
|
1914
2770
|
"aliases": [],
|
|
1915
|
-
"args": {
|
|
1916
|
-
|
|
1917
|
-
"description": "Path to pages directory (overrides project config)",
|
|
1918
|
-
"name": "path"
|
|
1919
|
-
}
|
|
1920
|
-
},
|
|
1921
|
-
"description": "Push pages to WordPress. Local files created or updated remotely are renamed on disk to the `<id>-<slug>` convention.",
|
|
2771
|
+
"args": {},
|
|
2772
|
+
"description": "Compare the plugins on WordPress against loopress.json and report drift",
|
|
1922
2773
|
"examples": [
|
|
1923
|
-
"$ lps
|
|
2774
|
+
"$ lps plugin status"
|
|
1924
2775
|
],
|
|
1925
2776
|
"flags": {
|
|
1926
2777
|
"json": {
|
|
@@ -1936,36 +2787,38 @@
|
|
|
1936
2787
|
"hasDynamicHelp": false,
|
|
1937
2788
|
"multiple": false,
|
|
1938
2789
|
"type": "option"
|
|
1939
|
-
}
|
|
2790
|
+
}
|
|
2791
|
+
},
|
|
2792
|
+
"hasDynamicHelp": false,
|
|
2793
|
+
"hiddenAliases": [],
|
|
2794
|
+
"id": "plugin:status",
|
|
2795
|
+
"pluginAlias": "@loopress/cli",
|
|
2796
|
+
"pluginName": "@loopress/cli",
|
|
2797
|
+
"pluginType": "core",
|
|
2798
|
+
"strict": true,
|
|
2799
|
+
"enableJsonFlag": true,
|
|
2800
|
+
"dryRunFlag": {
|
|
1940
2801
|
"dry-run": {
|
|
1941
2802
|
"char": "d",
|
|
1942
2803
|
"description": "Show what would change without making changes",
|
|
1943
|
-
"name": "dry-run",
|
|
1944
2804
|
"allowNo": false,
|
|
1945
2805
|
"type": "boolean"
|
|
1946
|
-
}
|
|
2806
|
+
}
|
|
2807
|
+
},
|
|
2808
|
+
"yesFlag": {
|
|
1947
2809
|
"yes": {
|
|
1948
2810
|
"char": "y",
|
|
1949
2811
|
"description": "Answer yes to confirmation prompts",
|
|
1950
|
-
"name": "yes",
|
|
1951
2812
|
"allowNo": false,
|
|
1952
2813
|
"type": "boolean"
|
|
1953
2814
|
}
|
|
1954
2815
|
},
|
|
1955
|
-
"hasDynamicHelp": false,
|
|
1956
|
-
"hiddenAliases": [],
|
|
1957
|
-
"id": "page:push",
|
|
1958
|
-
"pluginAlias": "@loopress/cli",
|
|
1959
|
-
"pluginName": "@loopress/cli",
|
|
1960
|
-
"pluginType": "core",
|
|
1961
|
-
"strict": true,
|
|
1962
|
-
"enableJsonFlag": true,
|
|
1963
2816
|
"isESM": true,
|
|
1964
2817
|
"relativePath": [
|
|
1965
2818
|
"dist",
|
|
1966
2819
|
"commands",
|
|
1967
|
-
"
|
|
1968
|
-
"
|
|
2820
|
+
"plugin",
|
|
2821
|
+
"status.js"
|
|
1969
2822
|
]
|
|
1970
2823
|
},
|
|
1971
2824
|
"project:config": {
|
|
@@ -2177,6 +3030,83 @@
|
|
|
2177
3030
|
"switch.js"
|
|
2178
3031
|
]
|
|
2179
3032
|
},
|
|
3033
|
+
"seo:diff": {
|
|
3034
|
+
"aliases": [],
|
|
3035
|
+
"args": {
|
|
3036
|
+
"path": {
|
|
3037
|
+
"description": "Path to SEO directory (overrides project config)",
|
|
3038
|
+
"name": "path"
|
|
3039
|
+
}
|
|
3040
|
+
},
|
|
3041
|
+
"description": "Show what differs in SEO settings, post meta, and redirects between your local files and a WordPress environment, or between two environments",
|
|
3042
|
+
"examples": [
|
|
3043
|
+
"$ lps seo diff",
|
|
3044
|
+
"$ lps seo diff --env staging",
|
|
3045
|
+
"$ lps seo diff --env staging --against production"
|
|
3046
|
+
],
|
|
3047
|
+
"flags": {
|
|
3048
|
+
"json": {
|
|
3049
|
+
"description": "Format output as json.",
|
|
3050
|
+
"helpGroup": "GLOBAL",
|
|
3051
|
+
"name": "json",
|
|
3052
|
+
"allowNo": false,
|
|
3053
|
+
"type": "boolean"
|
|
3054
|
+
},
|
|
3055
|
+
"env": {
|
|
3056
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
3057
|
+
"name": "env",
|
|
3058
|
+
"hasDynamicHelp": false,
|
|
3059
|
+
"multiple": false,
|
|
3060
|
+
"type": "option"
|
|
3061
|
+
},
|
|
3062
|
+
"against": {
|
|
3063
|
+
"description": "Compare the primary environment against this second environment instead of against local files",
|
|
3064
|
+
"name": "against",
|
|
3065
|
+
"hasDynamicHelp": false,
|
|
3066
|
+
"multiple": false,
|
|
3067
|
+
"type": "option"
|
|
3068
|
+
}
|
|
3069
|
+
},
|
|
3070
|
+
"hasDynamicHelp": false,
|
|
3071
|
+
"hiddenAliases": [],
|
|
3072
|
+
"id": "seo:diff",
|
|
3073
|
+
"pluginAlias": "@loopress/cli",
|
|
3074
|
+
"pluginName": "@loopress/cli",
|
|
3075
|
+
"pluginType": "core",
|
|
3076
|
+
"strict": true,
|
|
3077
|
+
"enableJsonFlag": true,
|
|
3078
|
+
"dryRunFlag": {
|
|
3079
|
+
"dry-run": {
|
|
3080
|
+
"char": "d",
|
|
3081
|
+
"description": "Show what would change without making changes",
|
|
3082
|
+
"allowNo": false,
|
|
3083
|
+
"type": "boolean"
|
|
3084
|
+
}
|
|
3085
|
+
},
|
|
3086
|
+
"yesFlag": {
|
|
3087
|
+
"yes": {
|
|
3088
|
+
"char": "y",
|
|
3089
|
+
"description": "Answer yes to confirmation prompts",
|
|
3090
|
+
"allowNo": false,
|
|
3091
|
+
"type": "boolean"
|
|
3092
|
+
}
|
|
3093
|
+
},
|
|
3094
|
+
"againstFlag": {
|
|
3095
|
+
"against": {
|
|
3096
|
+
"description": "Compare the primary environment against this second environment instead of against local files",
|
|
3097
|
+
"input": [],
|
|
3098
|
+
"multiple": false,
|
|
3099
|
+
"type": "option"
|
|
3100
|
+
}
|
|
3101
|
+
},
|
|
3102
|
+
"isESM": true,
|
|
3103
|
+
"relativePath": [
|
|
3104
|
+
"dist",
|
|
3105
|
+
"commands",
|
|
3106
|
+
"seo",
|
|
3107
|
+
"diff.js"
|
|
3108
|
+
]
|
|
3109
|
+
},
|
|
2180
3110
|
"seo:list": {
|
|
2181
3111
|
"aliases": [],
|
|
2182
3112
|
"args": {},
|
|
@@ -2365,6 +3295,83 @@
|
|
|
2365
3295
|
"push.js"
|
|
2366
3296
|
]
|
|
2367
3297
|
},
|
|
3298
|
+
"snippet:diff": {
|
|
3299
|
+
"aliases": [],
|
|
3300
|
+
"args": {
|
|
3301
|
+
"path": {
|
|
3302
|
+
"description": "Path to snippets directory (overrides project config)",
|
|
3303
|
+
"name": "path"
|
|
3304
|
+
}
|
|
3305
|
+
},
|
|
3306
|
+
"description": "Show what differs in snippets between your local files and a WordPress environment, or between two environments",
|
|
3307
|
+
"examples": [
|
|
3308
|
+
"$ lps snippet diff",
|
|
3309
|
+
"$ lps snippet diff --env staging",
|
|
3310
|
+
"$ lps snippet diff --env staging --against production"
|
|
3311
|
+
],
|
|
3312
|
+
"flags": {
|
|
3313
|
+
"json": {
|
|
3314
|
+
"description": "Format output as json.",
|
|
3315
|
+
"helpGroup": "GLOBAL",
|
|
3316
|
+
"name": "json",
|
|
3317
|
+
"allowNo": false,
|
|
3318
|
+
"type": "boolean"
|
|
3319
|
+
},
|
|
3320
|
+
"env": {
|
|
3321
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
3322
|
+
"name": "env",
|
|
3323
|
+
"hasDynamicHelp": false,
|
|
3324
|
+
"multiple": false,
|
|
3325
|
+
"type": "option"
|
|
3326
|
+
},
|
|
3327
|
+
"against": {
|
|
3328
|
+
"description": "Compare the primary environment against this second environment instead of against local files",
|
|
3329
|
+
"name": "against",
|
|
3330
|
+
"hasDynamicHelp": false,
|
|
3331
|
+
"multiple": false,
|
|
3332
|
+
"type": "option"
|
|
3333
|
+
}
|
|
3334
|
+
},
|
|
3335
|
+
"hasDynamicHelp": false,
|
|
3336
|
+
"hiddenAliases": [],
|
|
3337
|
+
"id": "snippet:diff",
|
|
3338
|
+
"pluginAlias": "@loopress/cli",
|
|
3339
|
+
"pluginName": "@loopress/cli",
|
|
3340
|
+
"pluginType": "core",
|
|
3341
|
+
"strict": true,
|
|
3342
|
+
"enableJsonFlag": true,
|
|
3343
|
+
"dryRunFlag": {
|
|
3344
|
+
"dry-run": {
|
|
3345
|
+
"char": "d",
|
|
3346
|
+
"description": "Show what would change without making changes",
|
|
3347
|
+
"allowNo": false,
|
|
3348
|
+
"type": "boolean"
|
|
3349
|
+
}
|
|
3350
|
+
},
|
|
3351
|
+
"yesFlag": {
|
|
3352
|
+
"yes": {
|
|
3353
|
+
"char": "y",
|
|
3354
|
+
"description": "Answer yes to confirmation prompts",
|
|
3355
|
+
"allowNo": false,
|
|
3356
|
+
"type": "boolean"
|
|
3357
|
+
}
|
|
3358
|
+
},
|
|
3359
|
+
"againstFlag": {
|
|
3360
|
+
"against": {
|
|
3361
|
+
"description": "Compare the primary environment against this second environment instead of against local files",
|
|
3362
|
+
"input": [],
|
|
3363
|
+
"multiple": false,
|
|
3364
|
+
"type": "option"
|
|
3365
|
+
}
|
|
3366
|
+
},
|
|
3367
|
+
"isESM": true,
|
|
3368
|
+
"relativePath": [
|
|
3369
|
+
"dist",
|
|
3370
|
+
"commands",
|
|
3371
|
+
"snippet",
|
|
3372
|
+
"diff.js"
|
|
3373
|
+
]
|
|
3374
|
+
},
|
|
2368
3375
|
"snippet:list": {
|
|
2369
3376
|
"aliases": [],
|
|
2370
3377
|
"args": {},
|
|
@@ -2879,5 +3886,5 @@
|
|
|
2879
3886
|
]
|
|
2880
3887
|
}
|
|
2881
3888
|
},
|
|
2882
|
-
"version": "0.
|
|
3889
|
+
"version": "0.24.0"
|
|
2883
3890
|
}
|