@loopress/cli 0.23.0 → 0.24.1
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 +603 -94
- 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/api/rm.d.ts +2 -0
- package/dist/commands/api/rm.js +2 -0
- package/dist/commands/composer/pull.js +6 -16
- package/dist/commands/composer/push.d.ts +3 -0
- package/dist/commands/composer/push.js +24 -7
- 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/form/push.d.ts +2 -0
- package/dist/commands/form/push.js +11 -4
- 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/hook/rm.d.ts +2 -0
- package/dist/commands/hook/rm.js +2 -0
- package/dist/commands/init.js +1 -1
- package/dist/commands/login.js +3 -2
- 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/seo/push.d.ts +2 -0
- package/dist/commands/seo/push.js +16 -4
- 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/hooks/finally.js +4 -1
- 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/local-callback-server.d.ts +14 -1
- package/dist/lib/local-callback-server.js +40 -1
- package/dist/lib/php-files-command.d.ts +67 -0
- package/dist/lib/php-files-command.js +338 -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/sentry.d.ts +3 -0
- package/dist/lib/sentry.js +30 -0
- package/dist/lib/validate-local.js +15 -7
- package/dist/lib/wp-authorize-flow.d.ts +4 -0
- package/dist/lib/wp-authorize-flow.js +10 -8
- 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 +69 -0
- package/dist/utils/plugin-sync.d.ts +6 -0
- package/dist/utils/resource-dirs.d.ts +13 -0
- package/dist/utils/resource-dirs.js +34 -0
- package/oclif.manifest.json +1488 -301
- package/package.json +11 -8
- 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": {},
|
|
@@ -809,7 +1070,8 @@
|
|
|
809
1070
|
"description": "Push custom API route files to WordPress",
|
|
810
1071
|
"examples": [
|
|
811
1072
|
"$ lps api push",
|
|
812
|
-
"$ lps api push --path ./api"
|
|
1073
|
+
"$ lps api push --path ./api",
|
|
1074
|
+
"$ lps api push --prune"
|
|
813
1075
|
],
|
|
814
1076
|
"flags": {
|
|
815
1077
|
"json": {
|
|
@@ -839,6 +1101,12 @@
|
|
|
839
1101
|
"name": "yes",
|
|
840
1102
|
"allowNo": false,
|
|
841
1103
|
"type": "boolean"
|
|
1104
|
+
},
|
|
1105
|
+
"prune": {
|
|
1106
|
+
"description": "Delete server-side route files not present locally after pushing",
|
|
1107
|
+
"name": "prune",
|
|
1108
|
+
"allowNo": false,
|
|
1109
|
+
"type": "boolean"
|
|
842
1110
|
}
|
|
843
1111
|
},
|
|
844
1112
|
"hasDynamicHelp": false,
|
|
@@ -857,12 +1125,19 @@
|
|
|
857
1125
|
"push.js"
|
|
858
1126
|
]
|
|
859
1127
|
},
|
|
860
|
-
"
|
|
1128
|
+
"api:rm": {
|
|
861
1129
|
"aliases": [],
|
|
862
|
-
"args": {
|
|
863
|
-
|
|
1130
|
+
"args": {
|
|
1131
|
+
"filename": {
|
|
1132
|
+
"description": "The route file to remove, its slug without the .php extension (e.g. \"hello\" or \"invoice-pdf/[order_id]\")",
|
|
1133
|
+
"name": "filename",
|
|
1134
|
+
"required": true
|
|
1135
|
+
}
|
|
1136
|
+
},
|
|
1137
|
+
"description": "Remove a custom API route file from WordPress",
|
|
864
1138
|
"examples": [
|
|
865
|
-
"$ lps
|
|
1139
|
+
"$ lps api rm hello",
|
|
1140
|
+
"$ lps api rm hello --yes"
|
|
866
1141
|
],
|
|
867
1142
|
"flags": {
|
|
868
1143
|
"json": {
|
|
@@ -878,11 +1153,25 @@
|
|
|
878
1153
|
"hasDynamicHelp": false,
|
|
879
1154
|
"multiple": false,
|
|
880
1155
|
"type": "option"
|
|
1156
|
+
},
|
|
1157
|
+
"dry-run": {
|
|
1158
|
+
"char": "d",
|
|
1159
|
+
"description": "Show what would change without making changes",
|
|
1160
|
+
"name": "dry-run",
|
|
1161
|
+
"allowNo": false,
|
|
1162
|
+
"type": "boolean"
|
|
1163
|
+
},
|
|
1164
|
+
"yes": {
|
|
1165
|
+
"char": "y",
|
|
1166
|
+
"description": "Answer yes to confirmation prompts",
|
|
1167
|
+
"name": "yes",
|
|
1168
|
+
"allowNo": false,
|
|
1169
|
+
"type": "boolean"
|
|
881
1170
|
}
|
|
882
1171
|
},
|
|
883
1172
|
"hasDynamicHelp": false,
|
|
884
1173
|
"hiddenAliases": [],
|
|
885
|
-
"id": "
|
|
1174
|
+
"id": "api:rm",
|
|
886
1175
|
"pluginAlias": "@loopress/cli",
|
|
887
1176
|
"pluginName": "@loopress/cli",
|
|
888
1177
|
"pluginType": "core",
|
|
@@ -908,30 +1197,19 @@
|
|
|
908
1197
|
"relativePath": [
|
|
909
1198
|
"dist",
|
|
910
1199
|
"commands",
|
|
911
|
-
"
|
|
912
|
-
"
|
|
1200
|
+
"api",
|
|
1201
|
+
"rm.js"
|
|
913
1202
|
]
|
|
914
1203
|
},
|
|
915
|
-
"
|
|
1204
|
+
"composer:init": {
|
|
916
1205
|
"aliases": [],
|
|
917
|
-
"args": {
|
|
918
|
-
|
|
919
|
-
"description": "Path to apps directory (overrides project config)",
|
|
920
|
-
"name": "path"
|
|
921
|
-
}
|
|
922
|
-
},
|
|
923
|
-
"description": "Pull single-page app bundles from WordPress into local files",
|
|
1206
|
+
"args": {},
|
|
1207
|
+
"description": "Create a composer.json wired to WPackagist for installing WordPress.org plugins and themes",
|
|
924
1208
|
"examples": [
|
|
925
|
-
"$ lps
|
|
1209
|
+
"$ lps composer init",
|
|
1210
|
+
"$ lps composer init --dry-run"
|
|
926
1211
|
],
|
|
927
1212
|
"flags": {
|
|
928
|
-
"json": {
|
|
929
|
-
"description": "Format output as json.",
|
|
930
|
-
"helpGroup": "GLOBAL",
|
|
931
|
-
"name": "json",
|
|
932
|
-
"allowNo": false,
|
|
933
|
-
"type": "boolean"
|
|
934
|
-
},
|
|
935
1213
|
"env": {
|
|
936
1214
|
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
937
1215
|
"name": "env",
|
|
@@ -945,23 +1223,16 @@
|
|
|
945
1223
|
"name": "dry-run",
|
|
946
1224
|
"allowNo": false,
|
|
947
1225
|
"type": "boolean"
|
|
948
|
-
},
|
|
949
|
-
"yes": {
|
|
950
|
-
"char": "y",
|
|
951
|
-
"description": "Answer yes to confirmation prompts",
|
|
952
|
-
"name": "yes",
|
|
953
|
-
"allowNo": false,
|
|
954
|
-
"type": "boolean"
|
|
955
1226
|
}
|
|
956
1227
|
},
|
|
957
1228
|
"hasDynamicHelp": false,
|
|
958
1229
|
"hiddenAliases": [],
|
|
959
|
-
"id": "
|
|
1230
|
+
"id": "composer:init",
|
|
960
1231
|
"pluginAlias": "@loopress/cli",
|
|
961
1232
|
"pluginName": "@loopress/cli",
|
|
962
1233
|
"pluginType": "core",
|
|
963
1234
|
"strict": true,
|
|
964
|
-
"enableJsonFlag":
|
|
1235
|
+
"enableJsonFlag": false,
|
|
965
1236
|
"dryRunFlag": {
|
|
966
1237
|
"dry-run": {
|
|
967
1238
|
"char": "d",
|
|
@@ -982,22 +1253,17 @@
|
|
|
982
1253
|
"relativePath": [
|
|
983
1254
|
"dist",
|
|
984
1255
|
"commands",
|
|
985
|
-
"
|
|
986
|
-
"
|
|
1256
|
+
"composer",
|
|
1257
|
+
"init.js"
|
|
987
1258
|
]
|
|
988
1259
|
},
|
|
989
|
-
"
|
|
1260
|
+
"composer:pull": {
|
|
990
1261
|
"aliases": [],
|
|
991
|
-
"args": {
|
|
992
|
-
|
|
993
|
-
"description": "Push only this app (defaults to every app in the directory)",
|
|
994
|
-
"name": "name"
|
|
995
|
-
}
|
|
996
|
-
},
|
|
997
|
-
"description": "Push built single-page app bundles to WordPress. Each app is an `apps/<name>/` directory holding a loopress.app.json and a built dist/ folder. Only files whose content changed are uploaded.",
|
|
1262
|
+
"args": {},
|
|
1263
|
+
"description": "Pull composer.json and composer.lock from WordPress",
|
|
998
1264
|
"examples": [
|
|
999
|
-
"$ lps
|
|
1000
|
-
"$ lps
|
|
1265
|
+
"$ lps composer pull",
|
|
1266
|
+
"$ lps composer pull --dry-run"
|
|
1001
1267
|
],
|
|
1002
1268
|
"flags": {
|
|
1003
1269
|
"json": {
|
|
@@ -1020,43 +1286,47 @@
|
|
|
1020
1286
|
"name": "dry-run",
|
|
1021
1287
|
"allowNo": false,
|
|
1022
1288
|
"type": "boolean"
|
|
1023
|
-
},
|
|
1024
|
-
"yes": {
|
|
1025
|
-
"char": "y",
|
|
1026
|
-
"description": "Answer yes to confirmation prompts",
|
|
1027
|
-
"name": "yes",
|
|
1028
|
-
"allowNo": false,
|
|
1029
|
-
"type": "boolean"
|
|
1030
1289
|
}
|
|
1031
1290
|
},
|
|
1032
1291
|
"hasDynamicHelp": false,
|
|
1033
1292
|
"hiddenAliases": [],
|
|
1034
|
-
"id": "
|
|
1293
|
+
"id": "composer:pull",
|
|
1035
1294
|
"pluginAlias": "@loopress/cli",
|
|
1036
1295
|
"pluginName": "@loopress/cli",
|
|
1037
1296
|
"pluginType": "core",
|
|
1038
1297
|
"strict": true,
|
|
1039
1298
|
"enableJsonFlag": true,
|
|
1299
|
+
"dryRunFlag": {
|
|
1300
|
+
"dry-run": {
|
|
1301
|
+
"char": "d",
|
|
1302
|
+
"description": "Show what would change without making changes",
|
|
1303
|
+
"allowNo": false,
|
|
1304
|
+
"type": "boolean"
|
|
1305
|
+
}
|
|
1306
|
+
},
|
|
1307
|
+
"yesFlag": {
|
|
1308
|
+
"yes": {
|
|
1309
|
+
"char": "y",
|
|
1310
|
+
"description": "Answer yes to confirmation prompts",
|
|
1311
|
+
"allowNo": false,
|
|
1312
|
+
"type": "boolean"
|
|
1313
|
+
}
|
|
1314
|
+
},
|
|
1040
1315
|
"isESM": true,
|
|
1041
1316
|
"relativePath": [
|
|
1042
1317
|
"dist",
|
|
1043
1318
|
"commands",
|
|
1044
|
-
"
|
|
1045
|
-
"
|
|
1319
|
+
"composer",
|
|
1320
|
+
"pull.js"
|
|
1046
1321
|
]
|
|
1047
1322
|
},
|
|
1048
|
-
"
|
|
1323
|
+
"composer:push": {
|
|
1049
1324
|
"aliases": [],
|
|
1050
|
-
"args": {
|
|
1051
|
-
|
|
1052
|
-
"description": "App to remove from WordPress",
|
|
1053
|
-
"name": "name",
|
|
1054
|
-
"required": true
|
|
1055
|
-
}
|
|
1056
|
-
},
|
|
1057
|
-
"description": "Remove a single-page app from WordPress: deletes its bundle from wp-content/loopress/apps/ and unregisters the shortcode. Local files are left untouched.",
|
|
1325
|
+
"args": {},
|
|
1326
|
+
"description": "Push composer.json to WordPress and run Composer to resolve and install dependencies",
|
|
1058
1327
|
"examples": [
|
|
1059
|
-
"$ lps
|
|
1328
|
+
"$ lps composer push",
|
|
1329
|
+
"$ lps composer push --dry-run"
|
|
1060
1330
|
],
|
|
1061
1331
|
"flags": {
|
|
1062
1332
|
"json": {
|
|
@@ -1086,72 +1356,61 @@
|
|
|
1086
1356
|
"name": "yes",
|
|
1087
1357
|
"allowNo": false,
|
|
1088
1358
|
"type": "boolean"
|
|
1359
|
+
},
|
|
1360
|
+
"force": {
|
|
1361
|
+
"description": "Allow downgrades and take over plugins/themes installed outside Loopress",
|
|
1362
|
+
"name": "force",
|
|
1363
|
+
"allowNo": false,
|
|
1364
|
+
"type": "boolean"
|
|
1089
1365
|
}
|
|
1090
1366
|
},
|
|
1091
1367
|
"hasDynamicHelp": false,
|
|
1092
1368
|
"hiddenAliases": [],
|
|
1093
|
-
"id": "
|
|
1369
|
+
"id": "composer:push",
|
|
1094
1370
|
"pluginAlias": "@loopress/cli",
|
|
1095
1371
|
"pluginName": "@loopress/cli",
|
|
1096
1372
|
"pluginType": "core",
|
|
1097
1373
|
"strict": true,
|
|
1098
1374
|
"enableJsonFlag": true,
|
|
1099
|
-
"dryRunFlag": {
|
|
1100
|
-
"dry-run": {
|
|
1101
|
-
"char": "d",
|
|
1102
|
-
"description": "Show what would change without making changes",
|
|
1103
|
-
"allowNo": false,
|
|
1104
|
-
"type": "boolean"
|
|
1105
|
-
}
|
|
1106
|
-
},
|
|
1107
|
-
"yesFlag": {
|
|
1108
|
-
"yes": {
|
|
1109
|
-
"char": "y",
|
|
1110
|
-
"description": "Answer yes to confirmation prompts",
|
|
1111
|
-
"allowNo": false,
|
|
1112
|
-
"type": "boolean"
|
|
1113
|
-
}
|
|
1114
|
-
},
|
|
1115
1375
|
"isESM": true,
|
|
1116
1376
|
"relativePath": [
|
|
1117
1377
|
"dist",
|
|
1118
1378
|
"commands",
|
|
1119
|
-
"
|
|
1120
|
-
"
|
|
1379
|
+
"composer",
|
|
1380
|
+
"push.js"
|
|
1121
1381
|
]
|
|
1122
1382
|
},
|
|
1123
|
-
"
|
|
1383
|
+
"app:list": {
|
|
1124
1384
|
"aliases": [],
|
|
1125
1385
|
"args": {},
|
|
1126
|
-
"description": "
|
|
1386
|
+
"description": "List single-page apps deployed to WordPress",
|
|
1127
1387
|
"examples": [
|
|
1128
|
-
"$ lps
|
|
1129
|
-
"$ lps composer init --dry-run"
|
|
1388
|
+
"$ lps app list"
|
|
1130
1389
|
],
|
|
1131
1390
|
"flags": {
|
|
1391
|
+
"json": {
|
|
1392
|
+
"description": "Format output as json.",
|
|
1393
|
+
"helpGroup": "GLOBAL",
|
|
1394
|
+
"name": "json",
|
|
1395
|
+
"allowNo": false,
|
|
1396
|
+
"type": "boolean"
|
|
1397
|
+
},
|
|
1132
1398
|
"env": {
|
|
1133
1399
|
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
1134
1400
|
"name": "env",
|
|
1135
1401
|
"hasDynamicHelp": false,
|
|
1136
1402
|
"multiple": false,
|
|
1137
1403
|
"type": "option"
|
|
1138
|
-
},
|
|
1139
|
-
"dry-run": {
|
|
1140
|
-
"char": "d",
|
|
1141
|
-
"description": "Show what would change without making changes",
|
|
1142
|
-
"name": "dry-run",
|
|
1143
|
-
"allowNo": false,
|
|
1144
|
-
"type": "boolean"
|
|
1145
1404
|
}
|
|
1146
1405
|
},
|
|
1147
1406
|
"hasDynamicHelp": false,
|
|
1148
1407
|
"hiddenAliases": [],
|
|
1149
|
-
"id": "
|
|
1408
|
+
"id": "app:list",
|
|
1150
1409
|
"pluginAlias": "@loopress/cli",
|
|
1151
1410
|
"pluginName": "@loopress/cli",
|
|
1152
1411
|
"pluginType": "core",
|
|
1153
1412
|
"strict": true,
|
|
1154
|
-
"enableJsonFlag":
|
|
1413
|
+
"enableJsonFlag": true,
|
|
1155
1414
|
"dryRunFlag": {
|
|
1156
1415
|
"dry-run": {
|
|
1157
1416
|
"char": "d",
|
|
@@ -1172,17 +1431,21 @@
|
|
|
1172
1431
|
"relativePath": [
|
|
1173
1432
|
"dist",
|
|
1174
1433
|
"commands",
|
|
1175
|
-
"
|
|
1176
|
-
"
|
|
1434
|
+
"app",
|
|
1435
|
+
"list.js"
|
|
1177
1436
|
]
|
|
1178
1437
|
},
|
|
1179
|
-
"
|
|
1438
|
+
"app:pull": {
|
|
1180
1439
|
"aliases": [],
|
|
1181
|
-
"args": {
|
|
1182
|
-
|
|
1440
|
+
"args": {
|
|
1441
|
+
"path": {
|
|
1442
|
+
"description": "Path to apps directory (overrides project config)",
|
|
1443
|
+
"name": "path"
|
|
1444
|
+
}
|
|
1445
|
+
},
|
|
1446
|
+
"description": "Pull single-page app bundles from WordPress into local files",
|
|
1183
1447
|
"examples": [
|
|
1184
|
-
"$ lps
|
|
1185
|
-
"$ lps composer pull --dry-run"
|
|
1448
|
+
"$ lps app pull"
|
|
1186
1449
|
],
|
|
1187
1450
|
"flags": {
|
|
1188
1451
|
"json": {
|
|
@@ -1205,11 +1468,18 @@
|
|
|
1205
1468
|
"name": "dry-run",
|
|
1206
1469
|
"allowNo": false,
|
|
1207
1470
|
"type": "boolean"
|
|
1471
|
+
},
|
|
1472
|
+
"yes": {
|
|
1473
|
+
"char": "y",
|
|
1474
|
+
"description": "Answer yes to confirmation prompts",
|
|
1475
|
+
"name": "yes",
|
|
1476
|
+
"allowNo": false,
|
|
1477
|
+
"type": "boolean"
|
|
1208
1478
|
}
|
|
1209
1479
|
},
|
|
1210
1480
|
"hasDynamicHelp": false,
|
|
1211
1481
|
"hiddenAliases": [],
|
|
1212
|
-
"id": "
|
|
1482
|
+
"id": "app:pull",
|
|
1213
1483
|
"pluginAlias": "@loopress/cli",
|
|
1214
1484
|
"pluginName": "@loopress/cli",
|
|
1215
1485
|
"pluginType": "core",
|
|
@@ -1235,17 +1505,22 @@
|
|
|
1235
1505
|
"relativePath": [
|
|
1236
1506
|
"dist",
|
|
1237
1507
|
"commands",
|
|
1238
|
-
"
|
|
1508
|
+
"app",
|
|
1239
1509
|
"pull.js"
|
|
1240
1510
|
]
|
|
1241
1511
|
},
|
|
1242
|
-
"
|
|
1512
|
+
"app:push": {
|
|
1243
1513
|
"aliases": [],
|
|
1244
|
-
"args": {
|
|
1245
|
-
|
|
1514
|
+
"args": {
|
|
1515
|
+
"name": {
|
|
1516
|
+
"description": "Push only this app (defaults to every app in the directory)",
|
|
1517
|
+
"name": "name"
|
|
1518
|
+
}
|
|
1519
|
+
},
|
|
1520
|
+
"description": "Push built single-page app bundles to WordPress. Each app is an `apps/<name>/` directory holding a loopress.app.json and a built dist/ folder. Only files whose content changed are uploaded.",
|
|
1246
1521
|
"examples": [
|
|
1247
|
-
"$ lps
|
|
1248
|
-
"$ lps
|
|
1522
|
+
"$ lps app push",
|
|
1523
|
+
"$ lps app push search"
|
|
1249
1524
|
],
|
|
1250
1525
|
"flags": {
|
|
1251
1526
|
"json": {
|
|
@@ -1275,17 +1550,11 @@
|
|
|
1275
1550
|
"name": "yes",
|
|
1276
1551
|
"allowNo": false,
|
|
1277
1552
|
"type": "boolean"
|
|
1278
|
-
},
|
|
1279
|
-
"force": {
|
|
1280
|
-
"description": "Allow downgrades and take over plugins/themes installed outside Loopress",
|
|
1281
|
-
"name": "force",
|
|
1282
|
-
"allowNo": false,
|
|
1283
|
-
"type": "boolean"
|
|
1284
1553
|
}
|
|
1285
1554
|
},
|
|
1286
1555
|
"hasDynamicHelp": false,
|
|
1287
1556
|
"hiddenAliases": [],
|
|
1288
|
-
"id": "
|
|
1557
|
+
"id": "app:push",
|
|
1289
1558
|
"pluginAlias": "@loopress/cli",
|
|
1290
1559
|
"pluginName": "@loopress/cli",
|
|
1291
1560
|
"pluginType": "core",
|
|
@@ -1295,16 +1564,22 @@
|
|
|
1295
1564
|
"relativePath": [
|
|
1296
1565
|
"dist",
|
|
1297
1566
|
"commands",
|
|
1298
|
-
"
|
|
1567
|
+
"app",
|
|
1299
1568
|
"push.js"
|
|
1300
1569
|
]
|
|
1301
1570
|
},
|
|
1302
|
-
"
|
|
1571
|
+
"app:remove": {
|
|
1303
1572
|
"aliases": [],
|
|
1304
|
-
"args": {
|
|
1305
|
-
|
|
1573
|
+
"args": {
|
|
1574
|
+
"name": {
|
|
1575
|
+
"description": "App to remove from WordPress",
|
|
1576
|
+
"name": "name",
|
|
1577
|
+
"required": true
|
|
1578
|
+
}
|
|
1579
|
+
},
|
|
1580
|
+
"description": "Remove a single-page app from WordPress: deletes its bundle from wp-content/loopress/apps/ and unregisters the shortcode. Local files are left untouched.",
|
|
1306
1581
|
"examples": [
|
|
1307
|
-
"$ lps
|
|
1582
|
+
"$ lps app remove search"
|
|
1308
1583
|
],
|
|
1309
1584
|
"flags": {
|
|
1310
1585
|
"json": {
|
|
@@ -1320,11 +1595,25 @@
|
|
|
1320
1595
|
"hasDynamicHelp": false,
|
|
1321
1596
|
"multiple": false,
|
|
1322
1597
|
"type": "option"
|
|
1598
|
+
},
|
|
1599
|
+
"dry-run": {
|
|
1600
|
+
"char": "d",
|
|
1601
|
+
"description": "Show what would change without making changes",
|
|
1602
|
+
"name": "dry-run",
|
|
1603
|
+
"allowNo": false,
|
|
1604
|
+
"type": "boolean"
|
|
1605
|
+
},
|
|
1606
|
+
"yes": {
|
|
1607
|
+
"char": "y",
|
|
1608
|
+
"description": "Answer yes to confirmation prompts",
|
|
1609
|
+
"name": "yes",
|
|
1610
|
+
"allowNo": false,
|
|
1611
|
+
"type": "boolean"
|
|
1323
1612
|
}
|
|
1324
1613
|
},
|
|
1325
1614
|
"hasDynamicHelp": false,
|
|
1326
1615
|
"hiddenAliases": [],
|
|
1327
|
-
"id": "
|
|
1616
|
+
"id": "app:remove",
|
|
1328
1617
|
"pluginAlias": "@loopress/cli",
|
|
1329
1618
|
"pluginName": "@loopress/cli",
|
|
1330
1619
|
"pluginType": "core",
|
|
@@ -1350,11 +1639,11 @@
|
|
|
1350
1639
|
"relativePath": [
|
|
1351
1640
|
"dist",
|
|
1352
1641
|
"commands",
|
|
1353
|
-
"
|
|
1354
|
-
"
|
|
1642
|
+
"app",
|
|
1643
|
+
"remove.js"
|
|
1355
1644
|
]
|
|
1356
1645
|
},
|
|
1357
|
-
"form:
|
|
1646
|
+
"form:diff": {
|
|
1358
1647
|
"aliases": [],
|
|
1359
1648
|
"args": {
|
|
1360
1649
|
"path": {
|
|
@@ -1362,11 +1651,20 @@
|
|
|
1362
1651
|
"name": "path"
|
|
1363
1652
|
}
|
|
1364
1653
|
},
|
|
1365
|
-
"description": "
|
|
1654
|
+
"description": "Show what differs in forms between your local files and a WordPress environment, or between two environments",
|
|
1366
1655
|
"examples": [
|
|
1367
|
-
"$ lps form
|
|
1656
|
+
"$ lps form diff",
|
|
1657
|
+
"$ lps form diff --env staging",
|
|
1658
|
+
"$ lps form diff --env staging --against production"
|
|
1368
1659
|
],
|
|
1369
1660
|
"flags": {
|
|
1661
|
+
"json": {
|
|
1662
|
+
"description": "Format output as json.",
|
|
1663
|
+
"helpGroup": "GLOBAL",
|
|
1664
|
+
"name": "json",
|
|
1665
|
+
"allowNo": false,
|
|
1666
|
+
"type": "boolean"
|
|
1667
|
+
},
|
|
1370
1668
|
"env": {
|
|
1371
1669
|
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
1372
1670
|
"name": "env",
|
|
@@ -1374,29 +1672,22 @@
|
|
|
1374
1672
|
"multiple": false,
|
|
1375
1673
|
"type": "option"
|
|
1376
1674
|
},
|
|
1377
|
-
"
|
|
1378
|
-
"
|
|
1379
|
-
"
|
|
1380
|
-
"
|
|
1381
|
-
"
|
|
1382
|
-
"type": "
|
|
1383
|
-
},
|
|
1384
|
-
"yes": {
|
|
1385
|
-
"char": "y",
|
|
1386
|
-
"description": "Answer yes to confirmation prompts",
|
|
1387
|
-
"name": "yes",
|
|
1388
|
-
"allowNo": false,
|
|
1389
|
-
"type": "boolean"
|
|
1675
|
+
"against": {
|
|
1676
|
+
"description": "Compare the primary environment against this second environment instead of against local files",
|
|
1677
|
+
"name": "against",
|
|
1678
|
+
"hasDynamicHelp": false,
|
|
1679
|
+
"multiple": false,
|
|
1680
|
+
"type": "option"
|
|
1390
1681
|
}
|
|
1391
1682
|
},
|
|
1392
1683
|
"hasDynamicHelp": false,
|
|
1393
1684
|
"hiddenAliases": [],
|
|
1394
|
-
"id": "form:
|
|
1685
|
+
"id": "form:diff",
|
|
1395
1686
|
"pluginAlias": "@loopress/cli",
|
|
1396
1687
|
"pluginName": "@loopress/cli",
|
|
1397
1688
|
"pluginType": "core",
|
|
1398
1689
|
"strict": true,
|
|
1399
|
-
"enableJsonFlag":
|
|
1690
|
+
"enableJsonFlag": true,
|
|
1400
1691
|
"dryRunFlag": {
|
|
1401
1692
|
"dry-run": {
|
|
1402
1693
|
"char": "d",
|
|
@@ -1413,29 +1704,92 @@
|
|
|
1413
1704
|
"type": "boolean"
|
|
1414
1705
|
}
|
|
1415
1706
|
},
|
|
1707
|
+
"againstFlag": {
|
|
1708
|
+
"against": {
|
|
1709
|
+
"description": "Compare the primary environment against this second environment instead of against local files",
|
|
1710
|
+
"input": [],
|
|
1711
|
+
"multiple": false,
|
|
1712
|
+
"type": "option"
|
|
1713
|
+
}
|
|
1714
|
+
},
|
|
1416
1715
|
"isESM": true,
|
|
1417
1716
|
"relativePath": [
|
|
1418
1717
|
"dist",
|
|
1419
1718
|
"commands",
|
|
1420
1719
|
"form",
|
|
1421
|
-
"
|
|
1720
|
+
"diff.js"
|
|
1422
1721
|
]
|
|
1423
1722
|
},
|
|
1424
|
-
"form:
|
|
1723
|
+
"form:list": {
|
|
1425
1724
|
"aliases": [],
|
|
1426
|
-
"args": {
|
|
1427
|
-
|
|
1428
|
-
"description": "Path to forms directory (overrides project config)",
|
|
1429
|
-
"name": "path"
|
|
1430
|
-
}
|
|
1431
|
-
},
|
|
1432
|
-
"description": "Push forms to WordPress. Local files created or updated remotely are renamed on disk to the `<id>-<slug>.json` convention.",
|
|
1725
|
+
"args": {},
|
|
1726
|
+
"description": "List forms from WordPress",
|
|
1433
1727
|
"examples": [
|
|
1434
|
-
"$ lps form
|
|
1728
|
+
"$ lps form list"
|
|
1435
1729
|
],
|
|
1436
1730
|
"flags": {
|
|
1437
|
-
"
|
|
1438
|
-
"description": "
|
|
1731
|
+
"json": {
|
|
1732
|
+
"description": "Format output as json.",
|
|
1733
|
+
"helpGroup": "GLOBAL",
|
|
1734
|
+
"name": "json",
|
|
1735
|
+
"allowNo": false,
|
|
1736
|
+
"type": "boolean"
|
|
1737
|
+
},
|
|
1738
|
+
"env": {
|
|
1739
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
1740
|
+
"name": "env",
|
|
1741
|
+
"hasDynamicHelp": false,
|
|
1742
|
+
"multiple": false,
|
|
1743
|
+
"type": "option"
|
|
1744
|
+
}
|
|
1745
|
+
},
|
|
1746
|
+
"hasDynamicHelp": false,
|
|
1747
|
+
"hiddenAliases": [],
|
|
1748
|
+
"id": "form:list",
|
|
1749
|
+
"pluginAlias": "@loopress/cli",
|
|
1750
|
+
"pluginName": "@loopress/cli",
|
|
1751
|
+
"pluginType": "core",
|
|
1752
|
+
"strict": true,
|
|
1753
|
+
"enableJsonFlag": true,
|
|
1754
|
+
"dryRunFlag": {
|
|
1755
|
+
"dry-run": {
|
|
1756
|
+
"char": "d",
|
|
1757
|
+
"description": "Show what would change without making changes",
|
|
1758
|
+
"allowNo": false,
|
|
1759
|
+
"type": "boolean"
|
|
1760
|
+
}
|
|
1761
|
+
},
|
|
1762
|
+
"yesFlag": {
|
|
1763
|
+
"yes": {
|
|
1764
|
+
"char": "y",
|
|
1765
|
+
"description": "Answer yes to confirmation prompts",
|
|
1766
|
+
"allowNo": false,
|
|
1767
|
+
"type": "boolean"
|
|
1768
|
+
}
|
|
1769
|
+
},
|
|
1770
|
+
"isESM": true,
|
|
1771
|
+
"relativePath": [
|
|
1772
|
+
"dist",
|
|
1773
|
+
"commands",
|
|
1774
|
+
"form",
|
|
1775
|
+
"list.js"
|
|
1776
|
+
]
|
|
1777
|
+
},
|
|
1778
|
+
"form:pull": {
|
|
1779
|
+
"aliases": [],
|
|
1780
|
+
"args": {
|
|
1781
|
+
"path": {
|
|
1782
|
+
"description": "Path to forms directory (overrides project config)",
|
|
1783
|
+
"name": "path"
|
|
1784
|
+
}
|
|
1785
|
+
},
|
|
1786
|
+
"description": "Pull forms from WordPress",
|
|
1787
|
+
"examples": [
|
|
1788
|
+
"$ lps form pull"
|
|
1789
|
+
],
|
|
1790
|
+
"flags": {
|
|
1791
|
+
"env": {
|
|
1792
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
1439
1793
|
"name": "env",
|
|
1440
1794
|
"hasDynamicHelp": false,
|
|
1441
1795
|
"multiple": false,
|
|
@@ -1458,33 +1812,48 @@
|
|
|
1458
1812
|
},
|
|
1459
1813
|
"hasDynamicHelp": false,
|
|
1460
1814
|
"hiddenAliases": [],
|
|
1461
|
-
"id": "form:
|
|
1815
|
+
"id": "form:pull",
|
|
1462
1816
|
"pluginAlias": "@loopress/cli",
|
|
1463
1817
|
"pluginName": "@loopress/cli",
|
|
1464
1818
|
"pluginType": "core",
|
|
1465
1819
|
"strict": true,
|
|
1820
|
+
"enableJsonFlag": false,
|
|
1821
|
+
"dryRunFlag": {
|
|
1822
|
+
"dry-run": {
|
|
1823
|
+
"char": "d",
|
|
1824
|
+
"description": "Show what would change without making changes",
|
|
1825
|
+
"allowNo": false,
|
|
1826
|
+
"type": "boolean"
|
|
1827
|
+
}
|
|
1828
|
+
},
|
|
1829
|
+
"yesFlag": {
|
|
1830
|
+
"yes": {
|
|
1831
|
+
"char": "y",
|
|
1832
|
+
"description": "Answer yes to confirmation prompts",
|
|
1833
|
+
"allowNo": false,
|
|
1834
|
+
"type": "boolean"
|
|
1835
|
+
}
|
|
1836
|
+
},
|
|
1466
1837
|
"isESM": true,
|
|
1467
1838
|
"relativePath": [
|
|
1468
1839
|
"dist",
|
|
1469
1840
|
"commands",
|
|
1470
1841
|
"form",
|
|
1471
|
-
"
|
|
1842
|
+
"pull.js"
|
|
1472
1843
|
]
|
|
1473
1844
|
},
|
|
1474
|
-
"
|
|
1845
|
+
"form:push": {
|
|
1475
1846
|
"aliases": [],
|
|
1476
1847
|
"args": {
|
|
1477
|
-
"
|
|
1478
|
-
"description": "
|
|
1479
|
-
"name": "
|
|
1480
|
-
"required": true
|
|
1848
|
+
"path": {
|
|
1849
|
+
"description": "Path to forms directory (overrides project config)",
|
|
1850
|
+
"name": "path"
|
|
1481
1851
|
}
|
|
1482
1852
|
},
|
|
1483
|
-
"description": "
|
|
1853
|
+
"description": "Push forms to WordPress. Local files created or updated remotely are renamed on disk to the `<id>-<slug>.json` convention.",
|
|
1484
1854
|
"examples": [
|
|
1485
|
-
"$ lps
|
|
1486
|
-
"$ lps
|
|
1487
|
-
"$ lps plugin add contact-form-7 --dry-run"
|
|
1855
|
+
"$ lps form push",
|
|
1856
|
+
"$ lps form push --allow-notifications"
|
|
1488
1857
|
],
|
|
1489
1858
|
"flags": {
|
|
1490
1859
|
"env": {
|
|
@@ -1501,9 +1870,67 @@
|
|
|
1501
1870
|
"allowNo": false,
|
|
1502
1871
|
"type": "boolean"
|
|
1503
1872
|
},
|
|
1504
|
-
"
|
|
1505
|
-
"
|
|
1506
|
-
"
|
|
1873
|
+
"yes": {
|
|
1874
|
+
"char": "y",
|
|
1875
|
+
"description": "Answer yes to confirmation prompts",
|
|
1876
|
+
"name": "yes",
|
|
1877
|
+
"allowNo": false,
|
|
1878
|
+
"type": "boolean"
|
|
1879
|
+
},
|
|
1880
|
+
"allow-notifications": {
|
|
1881
|
+
"description": "Also push each form's notification and confirmation settings (recipients, sender, messages). Off by default: the server keeps its own so a stray push can't redirect submissions.",
|
|
1882
|
+
"name": "allow-notifications",
|
|
1883
|
+
"allowNo": false,
|
|
1884
|
+
"type": "boolean"
|
|
1885
|
+
}
|
|
1886
|
+
},
|
|
1887
|
+
"hasDynamicHelp": false,
|
|
1888
|
+
"hiddenAliases": [],
|
|
1889
|
+
"id": "form:push",
|
|
1890
|
+
"pluginAlias": "@loopress/cli",
|
|
1891
|
+
"pluginName": "@loopress/cli",
|
|
1892
|
+
"pluginType": "core",
|
|
1893
|
+
"strict": true,
|
|
1894
|
+
"isESM": true,
|
|
1895
|
+
"relativePath": [
|
|
1896
|
+
"dist",
|
|
1897
|
+
"commands",
|
|
1898
|
+
"form",
|
|
1899
|
+
"push.js"
|
|
1900
|
+
]
|
|
1901
|
+
},
|
|
1902
|
+
"hook:diff": {
|
|
1903
|
+
"aliases": [],
|
|
1904
|
+
"args": {
|
|
1905
|
+
"path": {
|
|
1906
|
+
"description": "Path to hooks directory (overrides project config)",
|
|
1907
|
+
"name": "path"
|
|
1908
|
+
}
|
|
1909
|
+
},
|
|
1910
|
+
"description": "Show what differs in hook files between your local files and a WordPress environment, or between two environments",
|
|
1911
|
+
"examples": [
|
|
1912
|
+
"$ lps hook diff",
|
|
1913
|
+
"$ lps hook diff --env staging",
|
|
1914
|
+
"$ lps hook diff --env staging --against production"
|
|
1915
|
+
],
|
|
1916
|
+
"flags": {
|
|
1917
|
+
"json": {
|
|
1918
|
+
"description": "Format output as json.",
|
|
1919
|
+
"helpGroup": "GLOBAL",
|
|
1920
|
+
"name": "json",
|
|
1921
|
+
"allowNo": false,
|
|
1922
|
+
"type": "boolean"
|
|
1923
|
+
},
|
|
1924
|
+
"env": {
|
|
1925
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
1926
|
+
"name": "env",
|
|
1927
|
+
"hasDynamicHelp": false,
|
|
1928
|
+
"multiple": false,
|
|
1929
|
+
"type": "option"
|
|
1930
|
+
},
|
|
1931
|
+
"against": {
|
|
1932
|
+
"description": "Compare the primary environment against this second environment instead of against local files",
|
|
1933
|
+
"name": "against",
|
|
1507
1934
|
"hasDynamicHelp": false,
|
|
1508
1935
|
"multiple": false,
|
|
1509
1936
|
"type": "option"
|
|
@@ -1511,12 +1938,12 @@
|
|
|
1511
1938
|
},
|
|
1512
1939
|
"hasDynamicHelp": false,
|
|
1513
1940
|
"hiddenAliases": [],
|
|
1514
|
-
"id": "
|
|
1941
|
+
"id": "hook:diff",
|
|
1515
1942
|
"pluginAlias": "@loopress/cli",
|
|
1516
1943
|
"pluginName": "@loopress/cli",
|
|
1517
1944
|
"pluginType": "core",
|
|
1518
1945
|
"strict": true,
|
|
1519
|
-
"enableJsonFlag":
|
|
1946
|
+
"enableJsonFlag": true,
|
|
1520
1947
|
"dryRunFlag": {
|
|
1521
1948
|
"dry-run": {
|
|
1522
1949
|
"char": "d",
|
|
@@ -1533,20 +1960,28 @@
|
|
|
1533
1960
|
"type": "boolean"
|
|
1534
1961
|
}
|
|
1535
1962
|
},
|
|
1963
|
+
"againstFlag": {
|
|
1964
|
+
"against": {
|
|
1965
|
+
"description": "Compare the primary environment against this second environment instead of against local files",
|
|
1966
|
+
"input": [],
|
|
1967
|
+
"multiple": false,
|
|
1968
|
+
"type": "option"
|
|
1969
|
+
}
|
|
1970
|
+
},
|
|
1536
1971
|
"isESM": true,
|
|
1537
1972
|
"relativePath": [
|
|
1538
1973
|
"dist",
|
|
1539
1974
|
"commands",
|
|
1540
|
-
"
|
|
1541
|
-
"
|
|
1975
|
+
"hook",
|
|
1976
|
+
"diff.js"
|
|
1542
1977
|
]
|
|
1543
1978
|
},
|
|
1544
|
-
"
|
|
1979
|
+
"hook:list": {
|
|
1545
1980
|
"aliases": [],
|
|
1546
1981
|
"args": {},
|
|
1547
|
-
"description": "
|
|
1982
|
+
"description": "List hook files (actions, filters, cron) from WordPress",
|
|
1548
1983
|
"examples": [
|
|
1549
|
-
"$ lps
|
|
1984
|
+
"$ lps hook list"
|
|
1550
1985
|
],
|
|
1551
1986
|
"flags": {
|
|
1552
1987
|
"json": {
|
|
@@ -1566,7 +2001,7 @@
|
|
|
1566
2001
|
},
|
|
1567
2002
|
"hasDynamicHelp": false,
|
|
1568
2003
|
"hiddenAliases": [],
|
|
1569
|
-
"id": "
|
|
2004
|
+
"id": "hook:list",
|
|
1570
2005
|
"pluginAlias": "@loopress/cli",
|
|
1571
2006
|
"pluginName": "@loopress/cli",
|
|
1572
2007
|
"pluginType": "core",
|
|
@@ -1592,17 +2027,22 @@
|
|
|
1592
2027
|
"relativePath": [
|
|
1593
2028
|
"dist",
|
|
1594
2029
|
"commands",
|
|
1595
|
-
"
|
|
1596
|
-
"
|
|
2030
|
+
"hook",
|
|
2031
|
+
"list.js"
|
|
1597
2032
|
]
|
|
1598
2033
|
},
|
|
1599
|
-
"
|
|
2034
|
+
"hook:pull": {
|
|
1600
2035
|
"aliases": [],
|
|
1601
|
-
"args": {
|
|
1602
|
-
|
|
2036
|
+
"args": {
|
|
2037
|
+
"path": {
|
|
2038
|
+
"description": "Path to hooks directory (overrides project config)",
|
|
2039
|
+
"name": "path"
|
|
2040
|
+
}
|
|
2041
|
+
},
|
|
2042
|
+
"description": "Pull hook files (actions, filters, cron) from WordPress",
|
|
1603
2043
|
"examples": [
|
|
1604
|
-
"$ lps
|
|
1605
|
-
"$ lps
|
|
2044
|
+
"$ lps hook pull",
|
|
2045
|
+
"$ lps hook pull --path ./hooks"
|
|
1606
2046
|
],
|
|
1607
2047
|
"flags": {
|
|
1608
2048
|
"json": {
|
|
@@ -1625,11 +2065,18 @@
|
|
|
1625
2065
|
"name": "dry-run",
|
|
1626
2066
|
"allowNo": false,
|
|
1627
2067
|
"type": "boolean"
|
|
2068
|
+
},
|
|
2069
|
+
"yes": {
|
|
2070
|
+
"char": "y",
|
|
2071
|
+
"description": "Answer yes to confirmation prompts",
|
|
2072
|
+
"name": "yes",
|
|
2073
|
+
"allowNo": false,
|
|
2074
|
+
"type": "boolean"
|
|
1628
2075
|
}
|
|
1629
2076
|
},
|
|
1630
2077
|
"hasDynamicHelp": false,
|
|
1631
2078
|
"hiddenAliases": [],
|
|
1632
|
-
"id": "
|
|
2079
|
+
"id": "hook:pull",
|
|
1633
2080
|
"pluginAlias": "@loopress/cli",
|
|
1634
2081
|
"pluginName": "@loopress/cli",
|
|
1635
2082
|
"pluginType": "core",
|
|
@@ -1655,18 +2102,23 @@
|
|
|
1655
2102
|
"relativePath": [
|
|
1656
2103
|
"dist",
|
|
1657
2104
|
"commands",
|
|
1658
|
-
"
|
|
2105
|
+
"hook",
|
|
1659
2106
|
"pull.js"
|
|
1660
2107
|
]
|
|
1661
2108
|
},
|
|
1662
|
-
"
|
|
2109
|
+
"hook:push": {
|
|
1663
2110
|
"aliases": [],
|
|
1664
|
-
"args": {
|
|
1665
|
-
|
|
2111
|
+
"args": {
|
|
2112
|
+
"path": {
|
|
2113
|
+
"description": "Path to hooks directory (overrides project config)",
|
|
2114
|
+
"name": "path"
|
|
2115
|
+
}
|
|
2116
|
+
},
|
|
2117
|
+
"description": "Push hook files (actions, filters, cron) to WordPress",
|
|
1666
2118
|
"examples": [
|
|
1667
|
-
"$ lps
|
|
1668
|
-
"$ lps
|
|
1669
|
-
"$ lps
|
|
2119
|
+
"$ lps hook push",
|
|
2120
|
+
"$ lps hook push --path ./hooks",
|
|
2121
|
+
"$ lps hook push --prune"
|
|
1670
2122
|
],
|
|
1671
2123
|
"flags": {
|
|
1672
2124
|
"json": {
|
|
@@ -1697,14 +2149,8 @@
|
|
|
1697
2149
|
"allowNo": false,
|
|
1698
2150
|
"type": "boolean"
|
|
1699
2151
|
},
|
|
1700
|
-
"force": {
|
|
1701
|
-
"description": "Allow downgrades and let Loopress take over plugins installed outside it (replaces their files)",
|
|
1702
|
-
"name": "force",
|
|
1703
|
-
"allowNo": false,
|
|
1704
|
-
"type": "boolean"
|
|
1705
|
-
},
|
|
1706
2152
|
"prune": {
|
|
1707
|
-
"description": "
|
|
2153
|
+
"description": "Delete server-side hook files not present locally after pushing",
|
|
1708
2154
|
"name": "prune",
|
|
1709
2155
|
"allowNo": false,
|
|
1710
2156
|
"type": "boolean"
|
|
@@ -1712,7 +2158,7 @@
|
|
|
1712
2158
|
},
|
|
1713
2159
|
"hasDynamicHelp": false,
|
|
1714
2160
|
"hiddenAliases": [],
|
|
1715
|
-
"id": "
|
|
2161
|
+
"id": "hook:push",
|
|
1716
2162
|
"pluginAlias": "@loopress/cli",
|
|
1717
2163
|
"pluginName": "@loopress/cli",
|
|
1718
2164
|
"pluginType": "core",
|
|
@@ -1722,16 +2168,23 @@
|
|
|
1722
2168
|
"relativePath": [
|
|
1723
2169
|
"dist",
|
|
1724
2170
|
"commands",
|
|
1725
|
-
"
|
|
2171
|
+
"hook",
|
|
1726
2172
|
"push.js"
|
|
1727
2173
|
]
|
|
1728
2174
|
},
|
|
1729
|
-
"
|
|
2175
|
+
"hook:rm": {
|
|
1730
2176
|
"aliases": [],
|
|
1731
|
-
"args": {
|
|
1732
|
-
|
|
2177
|
+
"args": {
|
|
2178
|
+
"filename": {
|
|
2179
|
+
"description": "The hook file to remove, its slug without the .php extension (e.g. \"hello\" or \"invoice-pdf/[order_id]\")",
|
|
2180
|
+
"name": "filename",
|
|
2181
|
+
"required": true
|
|
2182
|
+
}
|
|
2183
|
+
},
|
|
2184
|
+
"description": "Remove a hook file (action, filter, cron) from WordPress",
|
|
1733
2185
|
"examples": [
|
|
1734
|
-
"$ lps
|
|
2186
|
+
"$ lps hook rm hello",
|
|
2187
|
+
"$ lps hook rm hello --yes"
|
|
1735
2188
|
],
|
|
1736
2189
|
"flags": {
|
|
1737
2190
|
"json": {
|
|
@@ -1747,11 +2200,25 @@
|
|
|
1747
2200
|
"hasDynamicHelp": false,
|
|
1748
2201
|
"multiple": false,
|
|
1749
2202
|
"type": "option"
|
|
2203
|
+
},
|
|
2204
|
+
"dry-run": {
|
|
2205
|
+
"char": "d",
|
|
2206
|
+
"description": "Show what would change without making changes",
|
|
2207
|
+
"name": "dry-run",
|
|
2208
|
+
"allowNo": false,
|
|
2209
|
+
"type": "boolean"
|
|
2210
|
+
},
|
|
2211
|
+
"yes": {
|
|
2212
|
+
"char": "y",
|
|
2213
|
+
"description": "Answer yes to confirmation prompts",
|
|
2214
|
+
"name": "yes",
|
|
2215
|
+
"allowNo": false,
|
|
2216
|
+
"type": "boolean"
|
|
1750
2217
|
}
|
|
1751
2218
|
},
|
|
1752
2219
|
"hasDynamicHelp": false,
|
|
1753
2220
|
"hiddenAliases": [],
|
|
1754
|
-
"id": "
|
|
2221
|
+
"id": "hook:rm",
|
|
1755
2222
|
"pluginAlias": "@loopress/cli",
|
|
1756
2223
|
"pluginName": "@loopress/cli",
|
|
1757
2224
|
"pluginType": "core",
|
|
@@ -1777,16 +2244,23 @@
|
|
|
1777
2244
|
"relativePath": [
|
|
1778
2245
|
"dist",
|
|
1779
2246
|
"commands",
|
|
1780
|
-
"
|
|
1781
|
-
"
|
|
2247
|
+
"hook",
|
|
2248
|
+
"rm.js"
|
|
1782
2249
|
]
|
|
1783
2250
|
},
|
|
1784
|
-
"
|
|
2251
|
+
"option:add": {
|
|
1785
2252
|
"aliases": [],
|
|
1786
|
-
"args": {
|
|
1787
|
-
|
|
2253
|
+
"args": {
|
|
2254
|
+
"name": {
|
|
2255
|
+
"description": "Option name to start tracking (see `lps option list`)",
|
|
2256
|
+
"name": "name",
|
|
2257
|
+
"required": true
|
|
2258
|
+
}
|
|
2259
|
+
},
|
|
2260
|
+
"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.",
|
|
1788
2261
|
"examples": [
|
|
1789
|
-
"$ lps
|
|
2262
|
+
"$ lps option add wpseo_titles",
|
|
2263
|
+
"$ lps option add siteurl"
|
|
1790
2264
|
],
|
|
1791
2265
|
"flags": {
|
|
1792
2266
|
"json": {
|
|
@@ -1802,11 +2276,25 @@
|
|
|
1802
2276
|
"hasDynamicHelp": false,
|
|
1803
2277
|
"multiple": false,
|
|
1804
2278
|
"type": "option"
|
|
2279
|
+
},
|
|
2280
|
+
"dry-run": {
|
|
2281
|
+
"char": "d",
|
|
2282
|
+
"description": "Show what would change without making changes",
|
|
2283
|
+
"name": "dry-run",
|
|
2284
|
+
"allowNo": false,
|
|
2285
|
+
"type": "boolean"
|
|
2286
|
+
},
|
|
2287
|
+
"path": {
|
|
2288
|
+
"description": "Path to options directory (overrides project config)",
|
|
2289
|
+
"name": "path",
|
|
2290
|
+
"hasDynamicHelp": false,
|
|
2291
|
+
"multiple": false,
|
|
2292
|
+
"type": "option"
|
|
1805
2293
|
}
|
|
1806
2294
|
},
|
|
1807
2295
|
"hasDynamicHelp": false,
|
|
1808
2296
|
"hiddenAliases": [],
|
|
1809
|
-
"id": "
|
|
2297
|
+
"id": "option:add",
|
|
1810
2298
|
"pluginAlias": "@loopress/cli",
|
|
1811
2299
|
"pluginName": "@loopress/cli",
|
|
1812
2300
|
"pluginType": "core",
|
|
@@ -1832,21 +2320,23 @@
|
|
|
1832
2320
|
"relativePath": [
|
|
1833
2321
|
"dist",
|
|
1834
2322
|
"commands",
|
|
1835
|
-
"
|
|
1836
|
-
"
|
|
2323
|
+
"option",
|
|
2324
|
+
"add.js"
|
|
1837
2325
|
]
|
|
1838
2326
|
},
|
|
1839
|
-
"
|
|
2327
|
+
"option:diff": {
|
|
1840
2328
|
"aliases": [],
|
|
1841
2329
|
"args": {
|
|
1842
2330
|
"path": {
|
|
1843
|
-
"description": "Path to
|
|
2331
|
+
"description": "Path to options directory (overrides project config)",
|
|
1844
2332
|
"name": "path"
|
|
1845
2333
|
}
|
|
1846
2334
|
},
|
|
1847
|
-
"description": "
|
|
2335
|
+
"description": "Show what differs, for locally tracked options, between your local files and a WordPress environment, or between two environments",
|
|
1848
2336
|
"examples": [
|
|
1849
|
-
"$ lps
|
|
2337
|
+
"$ lps option diff",
|
|
2338
|
+
"$ lps option diff --env staging",
|
|
2339
|
+
"$ lps option diff --env staging --against production"
|
|
1850
2340
|
],
|
|
1851
2341
|
"flags": {
|
|
1852
2342
|
"json": {
|
|
@@ -1863,12 +2353,149 @@
|
|
|
1863
2353
|
"multiple": false,
|
|
1864
2354
|
"type": "option"
|
|
1865
2355
|
},
|
|
1866
|
-
"
|
|
1867
|
-
"
|
|
1868
|
-
"
|
|
1869
|
-
"
|
|
1870
|
-
"
|
|
1871
|
-
"type": "
|
|
2356
|
+
"against": {
|
|
2357
|
+
"description": "Compare the primary environment against this second environment instead of against local files",
|
|
2358
|
+
"name": "against",
|
|
2359
|
+
"hasDynamicHelp": false,
|
|
2360
|
+
"multiple": false,
|
|
2361
|
+
"type": "option"
|
|
2362
|
+
}
|
|
2363
|
+
},
|
|
2364
|
+
"hasDynamicHelp": false,
|
|
2365
|
+
"hiddenAliases": [],
|
|
2366
|
+
"id": "option:diff",
|
|
2367
|
+
"pluginAlias": "@loopress/cli",
|
|
2368
|
+
"pluginName": "@loopress/cli",
|
|
2369
|
+
"pluginType": "core",
|
|
2370
|
+
"strict": true,
|
|
2371
|
+
"enableJsonFlag": true,
|
|
2372
|
+
"dryRunFlag": {
|
|
2373
|
+
"dry-run": {
|
|
2374
|
+
"char": "d",
|
|
2375
|
+
"description": "Show what would change without making changes",
|
|
2376
|
+
"allowNo": false,
|
|
2377
|
+
"type": "boolean"
|
|
2378
|
+
}
|
|
2379
|
+
},
|
|
2380
|
+
"yesFlag": {
|
|
2381
|
+
"yes": {
|
|
2382
|
+
"char": "y",
|
|
2383
|
+
"description": "Answer yes to confirmation prompts",
|
|
2384
|
+
"allowNo": false,
|
|
2385
|
+
"type": "boolean"
|
|
2386
|
+
}
|
|
2387
|
+
},
|
|
2388
|
+
"againstFlag": {
|
|
2389
|
+
"against": {
|
|
2390
|
+
"description": "Compare the primary environment against this second environment instead of against local files",
|
|
2391
|
+
"input": [],
|
|
2392
|
+
"multiple": false,
|
|
2393
|
+
"type": "option"
|
|
2394
|
+
}
|
|
2395
|
+
},
|
|
2396
|
+
"isESM": true,
|
|
2397
|
+
"relativePath": [
|
|
2398
|
+
"dist",
|
|
2399
|
+
"commands",
|
|
2400
|
+
"option",
|
|
2401
|
+
"diff.js"
|
|
2402
|
+
]
|
|
2403
|
+
},
|
|
2404
|
+
"option:list": {
|
|
2405
|
+
"aliases": [],
|
|
2406
|
+
"args": {},
|
|
2407
|
+
"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.",
|
|
2408
|
+
"examples": [
|
|
2409
|
+
"$ lps option list",
|
|
2410
|
+
"$ lps option list --no-core"
|
|
2411
|
+
],
|
|
2412
|
+
"flags": {
|
|
2413
|
+
"json": {
|
|
2414
|
+
"description": "Format output as json.",
|
|
2415
|
+
"helpGroup": "GLOBAL",
|
|
2416
|
+
"name": "json",
|
|
2417
|
+
"allowNo": false,
|
|
2418
|
+
"type": "boolean"
|
|
2419
|
+
},
|
|
2420
|
+
"env": {
|
|
2421
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
2422
|
+
"name": "env",
|
|
2423
|
+
"hasDynamicHelp": false,
|
|
2424
|
+
"multiple": false,
|
|
2425
|
+
"type": "option"
|
|
2426
|
+
},
|
|
2427
|
+
"no-core": {
|
|
2428
|
+
"description": "Exclude WordPress-native default options and the CORE column from the output, including --json",
|
|
2429
|
+
"name": "no-core",
|
|
2430
|
+
"allowNo": false,
|
|
2431
|
+
"type": "boolean"
|
|
2432
|
+
}
|
|
2433
|
+
},
|
|
2434
|
+
"hasDynamicHelp": false,
|
|
2435
|
+
"hiddenAliases": [],
|
|
2436
|
+
"id": "option:list",
|
|
2437
|
+
"pluginAlias": "@loopress/cli",
|
|
2438
|
+
"pluginName": "@loopress/cli",
|
|
2439
|
+
"pluginType": "core",
|
|
2440
|
+
"strict": true,
|
|
2441
|
+
"enableJsonFlag": true,
|
|
2442
|
+
"dryRunFlag": {
|
|
2443
|
+
"dry-run": {
|
|
2444
|
+
"char": "d",
|
|
2445
|
+
"description": "Show what would change without making changes",
|
|
2446
|
+
"allowNo": false,
|
|
2447
|
+
"type": "boolean"
|
|
2448
|
+
}
|
|
2449
|
+
},
|
|
2450
|
+
"yesFlag": {
|
|
2451
|
+
"yes": {
|
|
2452
|
+
"char": "y",
|
|
2453
|
+
"description": "Answer yes to confirmation prompts",
|
|
2454
|
+
"allowNo": false,
|
|
2455
|
+
"type": "boolean"
|
|
2456
|
+
}
|
|
2457
|
+
},
|
|
2458
|
+
"isESM": true,
|
|
2459
|
+
"relativePath": [
|
|
2460
|
+
"dist",
|
|
2461
|
+
"commands",
|
|
2462
|
+
"option",
|
|
2463
|
+
"list.js"
|
|
2464
|
+
]
|
|
2465
|
+
},
|
|
2466
|
+
"option:pull": {
|
|
2467
|
+
"aliases": [],
|
|
2468
|
+
"args": {
|
|
2469
|
+
"path": {
|
|
2470
|
+
"description": "Path to options directory (overrides project config)",
|
|
2471
|
+
"name": "path"
|
|
2472
|
+
}
|
|
2473
|
+
},
|
|
2474
|
+
"description": "Refresh locally tracked options from WordPress. Options not yet tracked are never pulled, run `lps option add <name>` for those first.",
|
|
2475
|
+
"examples": [
|
|
2476
|
+
"$ lps option pull"
|
|
2477
|
+
],
|
|
2478
|
+
"flags": {
|
|
2479
|
+
"json": {
|
|
2480
|
+
"description": "Format output as json.",
|
|
2481
|
+
"helpGroup": "GLOBAL",
|
|
2482
|
+
"name": "json",
|
|
2483
|
+
"allowNo": false,
|
|
2484
|
+
"type": "boolean"
|
|
2485
|
+
},
|
|
2486
|
+
"env": {
|
|
2487
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
2488
|
+
"name": "env",
|
|
2489
|
+
"hasDynamicHelp": false,
|
|
2490
|
+
"multiple": false,
|
|
2491
|
+
"type": "option"
|
|
2492
|
+
},
|
|
2493
|
+
"dry-run": {
|
|
2494
|
+
"char": "d",
|
|
2495
|
+
"description": "Show what would change without making changes",
|
|
2496
|
+
"name": "dry-run",
|
|
2497
|
+
"allowNo": false,
|
|
2498
|
+
"type": "boolean"
|
|
1872
2499
|
},
|
|
1873
2500
|
"yes": {
|
|
1874
2501
|
"char": "y",
|
|
@@ -1880,7 +2507,7 @@
|
|
|
1880
2507
|
},
|
|
1881
2508
|
"hasDynamicHelp": false,
|
|
1882
2509
|
"hiddenAliases": [],
|
|
1883
|
-
"id": "
|
|
2510
|
+
"id": "option:pull",
|
|
1884
2511
|
"pluginAlias": "@loopress/cli",
|
|
1885
2512
|
"pluginName": "@loopress/cli",
|
|
1886
2513
|
"pluginType": "core",
|
|
@@ -1906,21 +2533,418 @@
|
|
|
1906
2533
|
"relativePath": [
|
|
1907
2534
|
"dist",
|
|
1908
2535
|
"commands",
|
|
1909
|
-
"
|
|
2536
|
+
"option",
|
|
1910
2537
|
"pull.js"
|
|
1911
2538
|
]
|
|
1912
2539
|
},
|
|
1913
|
-
"
|
|
2540
|
+
"option:push": {
|
|
1914
2541
|
"aliases": [],
|
|
1915
2542
|
"args": {
|
|
1916
2543
|
"path": {
|
|
1917
|
-
"description": "Path to
|
|
2544
|
+
"description": "Path to options directory (overrides project config)",
|
|
1918
2545
|
"name": "path"
|
|
1919
2546
|
}
|
|
1920
2547
|
},
|
|
1921
|
-
"description": "Push
|
|
2548
|
+
"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.",
|
|
2549
|
+
"examples": [
|
|
2550
|
+
"$ lps option push"
|
|
2551
|
+
],
|
|
2552
|
+
"flags": {
|
|
2553
|
+
"json": {
|
|
2554
|
+
"description": "Format output as json.",
|
|
2555
|
+
"helpGroup": "GLOBAL",
|
|
2556
|
+
"name": "json",
|
|
2557
|
+
"allowNo": false,
|
|
2558
|
+
"type": "boolean"
|
|
2559
|
+
},
|
|
2560
|
+
"env": {
|
|
2561
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
2562
|
+
"name": "env",
|
|
2563
|
+
"hasDynamicHelp": false,
|
|
2564
|
+
"multiple": false,
|
|
2565
|
+
"type": "option"
|
|
2566
|
+
},
|
|
2567
|
+
"dry-run": {
|
|
2568
|
+
"char": "d",
|
|
2569
|
+
"description": "Show what would change without making changes",
|
|
2570
|
+
"name": "dry-run",
|
|
2571
|
+
"allowNo": false,
|
|
2572
|
+
"type": "boolean"
|
|
2573
|
+
},
|
|
2574
|
+
"yes": {
|
|
2575
|
+
"char": "y",
|
|
2576
|
+
"description": "Answer yes to confirmation prompts",
|
|
2577
|
+
"name": "yes",
|
|
2578
|
+
"allowNo": false,
|
|
2579
|
+
"type": "boolean"
|
|
2580
|
+
}
|
|
2581
|
+
},
|
|
2582
|
+
"hasDynamicHelp": false,
|
|
2583
|
+
"hiddenAliases": [],
|
|
2584
|
+
"id": "option:push",
|
|
2585
|
+
"pluginAlias": "@loopress/cli",
|
|
2586
|
+
"pluginName": "@loopress/cli",
|
|
2587
|
+
"pluginType": "core",
|
|
2588
|
+
"strict": true,
|
|
2589
|
+
"enableJsonFlag": true,
|
|
2590
|
+
"isESM": true,
|
|
2591
|
+
"relativePath": [
|
|
2592
|
+
"dist",
|
|
2593
|
+
"commands",
|
|
2594
|
+
"option",
|
|
2595
|
+
"push.js"
|
|
2596
|
+
]
|
|
2597
|
+
},
|
|
2598
|
+
"option:remove": {
|
|
2599
|
+
"aliases": [],
|
|
2600
|
+
"args": {
|
|
2601
|
+
"name": {
|
|
2602
|
+
"description": "Option name to stop tracking",
|
|
2603
|
+
"name": "name",
|
|
2604
|
+
"required": true
|
|
2605
|
+
}
|
|
2606
|
+
},
|
|
2607
|
+
"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.",
|
|
2608
|
+
"examples": [
|
|
2609
|
+
"$ lps option remove wpseo_titles",
|
|
2610
|
+
"$ lps option remove wpseo_titles --local-only"
|
|
2611
|
+
],
|
|
2612
|
+
"flags": {
|
|
2613
|
+
"json": {
|
|
2614
|
+
"description": "Format output as json.",
|
|
2615
|
+
"helpGroup": "GLOBAL",
|
|
2616
|
+
"name": "json",
|
|
2617
|
+
"allowNo": false,
|
|
2618
|
+
"type": "boolean"
|
|
2619
|
+
},
|
|
2620
|
+
"env": {
|
|
2621
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
2622
|
+
"name": "env",
|
|
2623
|
+
"hasDynamicHelp": false,
|
|
2624
|
+
"multiple": false,
|
|
2625
|
+
"type": "option"
|
|
2626
|
+
},
|
|
2627
|
+
"dry-run": {
|
|
2628
|
+
"char": "d",
|
|
2629
|
+
"description": "Show what would change without making changes",
|
|
2630
|
+
"name": "dry-run",
|
|
2631
|
+
"allowNo": false,
|
|
2632
|
+
"type": "boolean"
|
|
2633
|
+
},
|
|
2634
|
+
"yes": {
|
|
2635
|
+
"char": "y",
|
|
2636
|
+
"description": "Answer yes to confirmation prompts",
|
|
2637
|
+
"name": "yes",
|
|
2638
|
+
"allowNo": false,
|
|
2639
|
+
"type": "boolean"
|
|
2640
|
+
},
|
|
2641
|
+
"local-only": {
|
|
2642
|
+
"description": "Untrack locally without deleting the option on WordPress",
|
|
2643
|
+
"name": "local-only",
|
|
2644
|
+
"allowNo": false,
|
|
2645
|
+
"type": "boolean"
|
|
2646
|
+
},
|
|
2647
|
+
"path": {
|
|
2648
|
+
"description": "Path to options directory (overrides project config)",
|
|
2649
|
+
"name": "path",
|
|
2650
|
+
"hasDynamicHelp": false,
|
|
2651
|
+
"multiple": false,
|
|
2652
|
+
"type": "option"
|
|
2653
|
+
}
|
|
2654
|
+
},
|
|
2655
|
+
"hasDynamicHelp": false,
|
|
2656
|
+
"hiddenAliases": [],
|
|
2657
|
+
"id": "option:remove",
|
|
2658
|
+
"pluginAlias": "@loopress/cli",
|
|
2659
|
+
"pluginName": "@loopress/cli",
|
|
2660
|
+
"pluginType": "core",
|
|
2661
|
+
"strict": true,
|
|
2662
|
+
"enableJsonFlag": true,
|
|
2663
|
+
"dryRunFlag": {
|
|
2664
|
+
"dry-run": {
|
|
2665
|
+
"char": "d",
|
|
2666
|
+
"description": "Show what would change without making changes",
|
|
2667
|
+
"allowNo": false,
|
|
2668
|
+
"type": "boolean"
|
|
2669
|
+
}
|
|
2670
|
+
},
|
|
2671
|
+
"yesFlag": {
|
|
2672
|
+
"yes": {
|
|
2673
|
+
"char": "y",
|
|
2674
|
+
"description": "Answer yes to confirmation prompts",
|
|
2675
|
+
"allowNo": false,
|
|
2676
|
+
"type": "boolean"
|
|
2677
|
+
}
|
|
2678
|
+
},
|
|
2679
|
+
"isESM": true,
|
|
2680
|
+
"relativePath": [
|
|
2681
|
+
"dist",
|
|
2682
|
+
"commands",
|
|
2683
|
+
"option",
|
|
2684
|
+
"remove.js"
|
|
2685
|
+
]
|
|
2686
|
+
},
|
|
2687
|
+
"plugin:add": {
|
|
2688
|
+
"aliases": [],
|
|
2689
|
+
"args": {
|
|
2690
|
+
"slug": {
|
|
2691
|
+
"description": "Plugin slug on WordPress.org",
|
|
2692
|
+
"name": "slug",
|
|
2693
|
+
"required": true
|
|
2694
|
+
}
|
|
2695
|
+
},
|
|
2696
|
+
"description": "Add a WordPress.org plugin to loopress.json",
|
|
2697
|
+
"examples": [
|
|
2698
|
+
"$ lps plugin add woocommerce",
|
|
2699
|
+
"$ lps plugin add woocommerce --version 9.4.2",
|
|
2700
|
+
"$ lps plugin add contact-form-7 --dry-run"
|
|
2701
|
+
],
|
|
2702
|
+
"flags": {
|
|
2703
|
+
"env": {
|
|
2704
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
2705
|
+
"name": "env",
|
|
2706
|
+
"hasDynamicHelp": false,
|
|
2707
|
+
"multiple": false,
|
|
2708
|
+
"type": "option"
|
|
2709
|
+
},
|
|
2710
|
+
"dry-run": {
|
|
2711
|
+
"char": "d",
|
|
2712
|
+
"description": "Show what would change without making changes",
|
|
2713
|
+
"name": "dry-run",
|
|
2714
|
+
"allowNo": false,
|
|
2715
|
+
"type": "boolean"
|
|
2716
|
+
},
|
|
2717
|
+
"version": {
|
|
2718
|
+
"description": "Exact version to pin (default: \"latest\", tracked on every push)",
|
|
2719
|
+
"name": "version",
|
|
2720
|
+
"hasDynamicHelp": false,
|
|
2721
|
+
"multiple": false,
|
|
2722
|
+
"type": "option"
|
|
2723
|
+
}
|
|
2724
|
+
},
|
|
2725
|
+
"hasDynamicHelp": false,
|
|
2726
|
+
"hiddenAliases": [],
|
|
2727
|
+
"id": "plugin:add",
|
|
2728
|
+
"pluginAlias": "@loopress/cli",
|
|
2729
|
+
"pluginName": "@loopress/cli",
|
|
2730
|
+
"pluginType": "core",
|
|
2731
|
+
"strict": true,
|
|
2732
|
+
"enableJsonFlag": false,
|
|
2733
|
+
"dryRunFlag": {
|
|
2734
|
+
"dry-run": {
|
|
2735
|
+
"char": "d",
|
|
2736
|
+
"description": "Show what would change without making changes",
|
|
2737
|
+
"allowNo": false,
|
|
2738
|
+
"type": "boolean"
|
|
2739
|
+
}
|
|
2740
|
+
},
|
|
2741
|
+
"yesFlag": {
|
|
2742
|
+
"yes": {
|
|
2743
|
+
"char": "y",
|
|
2744
|
+
"description": "Answer yes to confirmation prompts",
|
|
2745
|
+
"allowNo": false,
|
|
2746
|
+
"type": "boolean"
|
|
2747
|
+
}
|
|
2748
|
+
},
|
|
2749
|
+
"isESM": true,
|
|
2750
|
+
"relativePath": [
|
|
2751
|
+
"dist",
|
|
2752
|
+
"commands",
|
|
2753
|
+
"plugin",
|
|
2754
|
+
"add.js"
|
|
2755
|
+
]
|
|
2756
|
+
},
|
|
2757
|
+
"plugin:audit": {
|
|
2758
|
+
"aliases": [],
|
|
2759
|
+
"args": {},
|
|
2760
|
+
"description": "Check the plugins in loopress.json for known vulnerabilities and health issues",
|
|
2761
|
+
"examples": [
|
|
2762
|
+
"$ lps plugin audit"
|
|
2763
|
+
],
|
|
2764
|
+
"flags": {
|
|
2765
|
+
"json": {
|
|
2766
|
+
"description": "Format output as json.",
|
|
2767
|
+
"helpGroup": "GLOBAL",
|
|
2768
|
+
"name": "json",
|
|
2769
|
+
"allowNo": false,
|
|
2770
|
+
"type": "boolean"
|
|
2771
|
+
},
|
|
2772
|
+
"env": {
|
|
2773
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
2774
|
+
"name": "env",
|
|
2775
|
+
"hasDynamicHelp": false,
|
|
2776
|
+
"multiple": false,
|
|
2777
|
+
"type": "option"
|
|
2778
|
+
}
|
|
2779
|
+
},
|
|
2780
|
+
"hasDynamicHelp": false,
|
|
2781
|
+
"hiddenAliases": [],
|
|
2782
|
+
"id": "plugin:audit",
|
|
2783
|
+
"pluginAlias": "@loopress/cli",
|
|
2784
|
+
"pluginName": "@loopress/cli",
|
|
2785
|
+
"pluginType": "core",
|
|
2786
|
+
"strict": true,
|
|
2787
|
+
"enableJsonFlag": true,
|
|
2788
|
+
"dryRunFlag": {
|
|
2789
|
+
"dry-run": {
|
|
2790
|
+
"char": "d",
|
|
2791
|
+
"description": "Show what would change without making changes",
|
|
2792
|
+
"allowNo": false,
|
|
2793
|
+
"type": "boolean"
|
|
2794
|
+
}
|
|
2795
|
+
},
|
|
2796
|
+
"yesFlag": {
|
|
2797
|
+
"yes": {
|
|
2798
|
+
"char": "y",
|
|
2799
|
+
"description": "Answer yes to confirmation prompts",
|
|
2800
|
+
"allowNo": false,
|
|
2801
|
+
"type": "boolean"
|
|
2802
|
+
}
|
|
2803
|
+
},
|
|
2804
|
+
"isESM": true,
|
|
2805
|
+
"relativePath": [
|
|
2806
|
+
"dist",
|
|
2807
|
+
"commands",
|
|
2808
|
+
"plugin",
|
|
2809
|
+
"audit.js"
|
|
2810
|
+
]
|
|
2811
|
+
},
|
|
2812
|
+
"plugin:pull": {
|
|
2813
|
+
"aliases": [],
|
|
2814
|
+
"args": {},
|
|
2815
|
+
"description": "Pull installed plugins from WordPress into loopress.json, pinned to their live versions",
|
|
2816
|
+
"examples": [
|
|
2817
|
+
"$ lps plugin pull",
|
|
2818
|
+
"$ lps plugin pull --dry-run"
|
|
2819
|
+
],
|
|
2820
|
+
"flags": {
|
|
2821
|
+
"json": {
|
|
2822
|
+
"description": "Format output as json.",
|
|
2823
|
+
"helpGroup": "GLOBAL",
|
|
2824
|
+
"name": "json",
|
|
2825
|
+
"allowNo": false,
|
|
2826
|
+
"type": "boolean"
|
|
2827
|
+
},
|
|
2828
|
+
"env": {
|
|
2829
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
2830
|
+
"name": "env",
|
|
2831
|
+
"hasDynamicHelp": false,
|
|
2832
|
+
"multiple": false,
|
|
2833
|
+
"type": "option"
|
|
2834
|
+
},
|
|
2835
|
+
"dry-run": {
|
|
2836
|
+
"char": "d",
|
|
2837
|
+
"description": "Show what would change without making changes",
|
|
2838
|
+
"name": "dry-run",
|
|
2839
|
+
"allowNo": false,
|
|
2840
|
+
"type": "boolean"
|
|
2841
|
+
}
|
|
2842
|
+
},
|
|
2843
|
+
"hasDynamicHelp": false,
|
|
2844
|
+
"hiddenAliases": [],
|
|
2845
|
+
"id": "plugin:pull",
|
|
2846
|
+
"pluginAlias": "@loopress/cli",
|
|
2847
|
+
"pluginName": "@loopress/cli",
|
|
2848
|
+
"pluginType": "core",
|
|
2849
|
+
"strict": true,
|
|
2850
|
+
"enableJsonFlag": true,
|
|
2851
|
+
"dryRunFlag": {
|
|
2852
|
+
"dry-run": {
|
|
2853
|
+
"char": "d",
|
|
2854
|
+
"description": "Show what would change without making changes",
|
|
2855
|
+
"allowNo": false,
|
|
2856
|
+
"type": "boolean"
|
|
2857
|
+
}
|
|
2858
|
+
},
|
|
2859
|
+
"yesFlag": {
|
|
2860
|
+
"yes": {
|
|
2861
|
+
"char": "y",
|
|
2862
|
+
"description": "Answer yes to confirmation prompts",
|
|
2863
|
+
"allowNo": false,
|
|
2864
|
+
"type": "boolean"
|
|
2865
|
+
}
|
|
2866
|
+
},
|
|
2867
|
+
"isESM": true,
|
|
2868
|
+
"relativePath": [
|
|
2869
|
+
"dist",
|
|
2870
|
+
"commands",
|
|
2871
|
+
"plugin",
|
|
2872
|
+
"pull.js"
|
|
2873
|
+
]
|
|
2874
|
+
},
|
|
2875
|
+
"plugin:push": {
|
|
2876
|
+
"aliases": [],
|
|
2877
|
+
"args": {},
|
|
2878
|
+
"description": "Install plugins on WordPress to match loopress.json, pinned via Composer + WPackagist",
|
|
2879
|
+
"examples": [
|
|
2880
|
+
"$ lps plugin push",
|
|
2881
|
+
"$ lps plugin push --dry-run",
|
|
2882
|
+
"$ lps plugin push --force --prune"
|
|
2883
|
+
],
|
|
2884
|
+
"flags": {
|
|
2885
|
+
"json": {
|
|
2886
|
+
"description": "Format output as json.",
|
|
2887
|
+
"helpGroup": "GLOBAL",
|
|
2888
|
+
"name": "json",
|
|
2889
|
+
"allowNo": false,
|
|
2890
|
+
"type": "boolean"
|
|
2891
|
+
},
|
|
2892
|
+
"env": {
|
|
2893
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
2894
|
+
"name": "env",
|
|
2895
|
+
"hasDynamicHelp": false,
|
|
2896
|
+
"multiple": false,
|
|
2897
|
+
"type": "option"
|
|
2898
|
+
},
|
|
2899
|
+
"dry-run": {
|
|
2900
|
+
"char": "d",
|
|
2901
|
+
"description": "Show what would change without making changes",
|
|
2902
|
+
"name": "dry-run",
|
|
2903
|
+
"allowNo": false,
|
|
2904
|
+
"type": "boolean"
|
|
2905
|
+
},
|
|
2906
|
+
"yes": {
|
|
2907
|
+
"char": "y",
|
|
2908
|
+
"description": "Answer yes to confirmation prompts",
|
|
2909
|
+
"name": "yes",
|
|
2910
|
+
"allowNo": false,
|
|
2911
|
+
"type": "boolean"
|
|
2912
|
+
},
|
|
2913
|
+
"force": {
|
|
2914
|
+
"description": "Allow downgrades and let Loopress take over plugins installed outside it (replaces their files)",
|
|
2915
|
+
"name": "force",
|
|
2916
|
+
"allowNo": false,
|
|
2917
|
+
"type": "boolean"
|
|
2918
|
+
},
|
|
2919
|
+
"prune": {
|
|
2920
|
+
"description": "Deactivate plugins that are active on the site but absent from loopress.json",
|
|
2921
|
+
"name": "prune",
|
|
2922
|
+
"allowNo": false,
|
|
2923
|
+
"type": "boolean"
|
|
2924
|
+
}
|
|
2925
|
+
},
|
|
2926
|
+
"hasDynamicHelp": false,
|
|
2927
|
+
"hiddenAliases": [],
|
|
2928
|
+
"id": "plugin:push",
|
|
2929
|
+
"pluginAlias": "@loopress/cli",
|
|
2930
|
+
"pluginName": "@loopress/cli",
|
|
2931
|
+
"pluginType": "core",
|
|
2932
|
+
"strict": true,
|
|
2933
|
+
"enableJsonFlag": true,
|
|
2934
|
+
"isESM": true,
|
|
2935
|
+
"relativePath": [
|
|
2936
|
+
"dist",
|
|
2937
|
+
"commands",
|
|
2938
|
+
"plugin",
|
|
2939
|
+
"push.js"
|
|
2940
|
+
]
|
|
2941
|
+
},
|
|
2942
|
+
"plugin:status": {
|
|
2943
|
+
"aliases": [],
|
|
2944
|
+
"args": {},
|
|
2945
|
+
"description": "Compare the plugins on WordPress against loopress.json and report drift",
|
|
1922
2946
|
"examples": [
|
|
1923
|
-
"$ lps
|
|
2947
|
+
"$ lps plugin status"
|
|
1924
2948
|
],
|
|
1925
2949
|
"flags": {
|
|
1926
2950
|
"json": {
|
|
@@ -1936,36 +2960,38 @@
|
|
|
1936
2960
|
"hasDynamicHelp": false,
|
|
1937
2961
|
"multiple": false,
|
|
1938
2962
|
"type": "option"
|
|
1939
|
-
}
|
|
2963
|
+
}
|
|
2964
|
+
},
|
|
2965
|
+
"hasDynamicHelp": false,
|
|
2966
|
+
"hiddenAliases": [],
|
|
2967
|
+
"id": "plugin:status",
|
|
2968
|
+
"pluginAlias": "@loopress/cli",
|
|
2969
|
+
"pluginName": "@loopress/cli",
|
|
2970
|
+
"pluginType": "core",
|
|
2971
|
+
"strict": true,
|
|
2972
|
+
"enableJsonFlag": true,
|
|
2973
|
+
"dryRunFlag": {
|
|
1940
2974
|
"dry-run": {
|
|
1941
2975
|
"char": "d",
|
|
1942
2976
|
"description": "Show what would change without making changes",
|
|
1943
|
-
"name": "dry-run",
|
|
1944
2977
|
"allowNo": false,
|
|
1945
2978
|
"type": "boolean"
|
|
1946
|
-
}
|
|
2979
|
+
}
|
|
2980
|
+
},
|
|
2981
|
+
"yesFlag": {
|
|
1947
2982
|
"yes": {
|
|
1948
2983
|
"char": "y",
|
|
1949
2984
|
"description": "Answer yes to confirmation prompts",
|
|
1950
|
-
"name": "yes",
|
|
1951
2985
|
"allowNo": false,
|
|
1952
2986
|
"type": "boolean"
|
|
1953
2987
|
}
|
|
1954
2988
|
},
|
|
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
2989
|
"isESM": true,
|
|
1964
2990
|
"relativePath": [
|
|
1965
2991
|
"dist",
|
|
1966
2992
|
"commands",
|
|
1967
|
-
"
|
|
1968
|
-
"
|
|
2993
|
+
"plugin",
|
|
2994
|
+
"status.js"
|
|
1969
2995
|
]
|
|
1970
2996
|
},
|
|
1971
2997
|
"project:config": {
|
|
@@ -2177,6 +3203,83 @@
|
|
|
2177
3203
|
"switch.js"
|
|
2178
3204
|
]
|
|
2179
3205
|
},
|
|
3206
|
+
"seo:diff": {
|
|
3207
|
+
"aliases": [],
|
|
3208
|
+
"args": {
|
|
3209
|
+
"path": {
|
|
3210
|
+
"description": "Path to SEO directory (overrides project config)",
|
|
3211
|
+
"name": "path"
|
|
3212
|
+
}
|
|
3213
|
+
},
|
|
3214
|
+
"description": "Show what differs in SEO settings, post meta, and redirects between your local files and a WordPress environment, or between two environments",
|
|
3215
|
+
"examples": [
|
|
3216
|
+
"$ lps seo diff",
|
|
3217
|
+
"$ lps seo diff --env staging",
|
|
3218
|
+
"$ lps seo diff --env staging --against production"
|
|
3219
|
+
],
|
|
3220
|
+
"flags": {
|
|
3221
|
+
"json": {
|
|
3222
|
+
"description": "Format output as json.",
|
|
3223
|
+
"helpGroup": "GLOBAL",
|
|
3224
|
+
"name": "json",
|
|
3225
|
+
"allowNo": false,
|
|
3226
|
+
"type": "boolean"
|
|
3227
|
+
},
|
|
3228
|
+
"env": {
|
|
3229
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
3230
|
+
"name": "env",
|
|
3231
|
+
"hasDynamicHelp": false,
|
|
3232
|
+
"multiple": false,
|
|
3233
|
+
"type": "option"
|
|
3234
|
+
},
|
|
3235
|
+
"against": {
|
|
3236
|
+
"description": "Compare the primary environment against this second environment instead of against local files",
|
|
3237
|
+
"name": "against",
|
|
3238
|
+
"hasDynamicHelp": false,
|
|
3239
|
+
"multiple": false,
|
|
3240
|
+
"type": "option"
|
|
3241
|
+
}
|
|
3242
|
+
},
|
|
3243
|
+
"hasDynamicHelp": false,
|
|
3244
|
+
"hiddenAliases": [],
|
|
3245
|
+
"id": "seo:diff",
|
|
3246
|
+
"pluginAlias": "@loopress/cli",
|
|
3247
|
+
"pluginName": "@loopress/cli",
|
|
3248
|
+
"pluginType": "core",
|
|
3249
|
+
"strict": true,
|
|
3250
|
+
"enableJsonFlag": true,
|
|
3251
|
+
"dryRunFlag": {
|
|
3252
|
+
"dry-run": {
|
|
3253
|
+
"char": "d",
|
|
3254
|
+
"description": "Show what would change without making changes",
|
|
3255
|
+
"allowNo": false,
|
|
3256
|
+
"type": "boolean"
|
|
3257
|
+
}
|
|
3258
|
+
},
|
|
3259
|
+
"yesFlag": {
|
|
3260
|
+
"yes": {
|
|
3261
|
+
"char": "y",
|
|
3262
|
+
"description": "Answer yes to confirmation prompts",
|
|
3263
|
+
"allowNo": false,
|
|
3264
|
+
"type": "boolean"
|
|
3265
|
+
}
|
|
3266
|
+
},
|
|
3267
|
+
"againstFlag": {
|
|
3268
|
+
"against": {
|
|
3269
|
+
"description": "Compare the primary environment against this second environment instead of against local files",
|
|
3270
|
+
"input": [],
|
|
3271
|
+
"multiple": false,
|
|
3272
|
+
"type": "option"
|
|
3273
|
+
}
|
|
3274
|
+
},
|
|
3275
|
+
"isESM": true,
|
|
3276
|
+
"relativePath": [
|
|
3277
|
+
"dist",
|
|
3278
|
+
"commands",
|
|
3279
|
+
"seo",
|
|
3280
|
+
"diff.js"
|
|
3281
|
+
]
|
|
3282
|
+
},
|
|
2180
3283
|
"seo:list": {
|
|
2181
3284
|
"aliases": [],
|
|
2182
3285
|
"args": {},
|
|
@@ -2325,7 +3428,8 @@
|
|
|
2325
3428
|
},
|
|
2326
3429
|
"description": "Push SEO settings, post meta, and redirects to WordPress. Local redirect files created remotely are renamed on disk to the `<id>-<slug>` convention. Fails clearly per file if the active SEO plugin does not support redirects.",
|
|
2327
3430
|
"examples": [
|
|
2328
|
-
"$ lps seo push"
|
|
3431
|
+
"$ lps seo push",
|
|
3432
|
+
"$ lps seo push --allow-external-redirects"
|
|
2329
3433
|
],
|
|
2330
3434
|
"flags": {
|
|
2331
3435
|
"env": {
|
|
@@ -2348,6 +3452,12 @@
|
|
|
2348
3452
|
"name": "yes",
|
|
2349
3453
|
"allowNo": false,
|
|
2350
3454
|
"type": "boolean"
|
|
3455
|
+
},
|
|
3456
|
+
"allow-external-redirects": {
|
|
3457
|
+
"description": "Allow pushing a redirect whose target points off this site. Off by default: the server rejects an off-site `urlTo` so a stray push can't 301 traffic away.",
|
|
3458
|
+
"name": "allow-external-redirects",
|
|
3459
|
+
"allowNo": false,
|
|
3460
|
+
"type": "boolean"
|
|
2351
3461
|
}
|
|
2352
3462
|
},
|
|
2353
3463
|
"hasDynamicHelp": false,
|
|
@@ -2365,6 +3475,83 @@
|
|
|
2365
3475
|
"push.js"
|
|
2366
3476
|
]
|
|
2367
3477
|
},
|
|
3478
|
+
"snippet:diff": {
|
|
3479
|
+
"aliases": [],
|
|
3480
|
+
"args": {
|
|
3481
|
+
"path": {
|
|
3482
|
+
"description": "Path to snippets directory (overrides project config)",
|
|
3483
|
+
"name": "path"
|
|
3484
|
+
}
|
|
3485
|
+
},
|
|
3486
|
+
"description": "Show what differs in snippets between your local files and a WordPress environment, or between two environments",
|
|
3487
|
+
"examples": [
|
|
3488
|
+
"$ lps snippet diff",
|
|
3489
|
+
"$ lps snippet diff --env staging",
|
|
3490
|
+
"$ lps snippet diff --env staging --against production"
|
|
3491
|
+
],
|
|
3492
|
+
"flags": {
|
|
3493
|
+
"json": {
|
|
3494
|
+
"description": "Format output as json.",
|
|
3495
|
+
"helpGroup": "GLOBAL",
|
|
3496
|
+
"name": "json",
|
|
3497
|
+
"allowNo": false,
|
|
3498
|
+
"type": "boolean"
|
|
3499
|
+
},
|
|
3500
|
+
"env": {
|
|
3501
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
3502
|
+
"name": "env",
|
|
3503
|
+
"hasDynamicHelp": false,
|
|
3504
|
+
"multiple": false,
|
|
3505
|
+
"type": "option"
|
|
3506
|
+
},
|
|
3507
|
+
"against": {
|
|
3508
|
+
"description": "Compare the primary environment against this second environment instead of against local files",
|
|
3509
|
+
"name": "against",
|
|
3510
|
+
"hasDynamicHelp": false,
|
|
3511
|
+
"multiple": false,
|
|
3512
|
+
"type": "option"
|
|
3513
|
+
}
|
|
3514
|
+
},
|
|
3515
|
+
"hasDynamicHelp": false,
|
|
3516
|
+
"hiddenAliases": [],
|
|
3517
|
+
"id": "snippet:diff",
|
|
3518
|
+
"pluginAlias": "@loopress/cli",
|
|
3519
|
+
"pluginName": "@loopress/cli",
|
|
3520
|
+
"pluginType": "core",
|
|
3521
|
+
"strict": true,
|
|
3522
|
+
"enableJsonFlag": true,
|
|
3523
|
+
"dryRunFlag": {
|
|
3524
|
+
"dry-run": {
|
|
3525
|
+
"char": "d",
|
|
3526
|
+
"description": "Show what would change without making changes",
|
|
3527
|
+
"allowNo": false,
|
|
3528
|
+
"type": "boolean"
|
|
3529
|
+
}
|
|
3530
|
+
},
|
|
3531
|
+
"yesFlag": {
|
|
3532
|
+
"yes": {
|
|
3533
|
+
"char": "y",
|
|
3534
|
+
"description": "Answer yes to confirmation prompts",
|
|
3535
|
+
"allowNo": false,
|
|
3536
|
+
"type": "boolean"
|
|
3537
|
+
}
|
|
3538
|
+
},
|
|
3539
|
+
"againstFlag": {
|
|
3540
|
+
"against": {
|
|
3541
|
+
"description": "Compare the primary environment against this second environment instead of against local files",
|
|
3542
|
+
"input": [],
|
|
3543
|
+
"multiple": false,
|
|
3544
|
+
"type": "option"
|
|
3545
|
+
}
|
|
3546
|
+
},
|
|
3547
|
+
"isESM": true,
|
|
3548
|
+
"relativePath": [
|
|
3549
|
+
"dist",
|
|
3550
|
+
"commands",
|
|
3551
|
+
"snippet",
|
|
3552
|
+
"diff.js"
|
|
3553
|
+
]
|
|
3554
|
+
},
|
|
2368
3555
|
"snippet:list": {
|
|
2369
3556
|
"aliases": [],
|
|
2370
3557
|
"args": {},
|
|
@@ -2584,54 +3771,6 @@
|
|
|
2584
3771
|
"push.js"
|
|
2585
3772
|
]
|
|
2586
3773
|
},
|
|
2587
|
-
"telemetry:disable": {
|
|
2588
|
-
"aliases": [],
|
|
2589
|
-
"args": {},
|
|
2590
|
-
"description": "Disable error reporting to Sentry",
|
|
2591
|
-
"examples": [
|
|
2592
|
-
"$ lps telemetry disable"
|
|
2593
|
-
],
|
|
2594
|
-
"flags": {},
|
|
2595
|
-
"hasDynamicHelp": false,
|
|
2596
|
-
"hiddenAliases": [],
|
|
2597
|
-
"id": "telemetry:disable",
|
|
2598
|
-
"pluginAlias": "@loopress/cli",
|
|
2599
|
-
"pluginName": "@loopress/cli",
|
|
2600
|
-
"pluginType": "core",
|
|
2601
|
-
"strict": true,
|
|
2602
|
-
"enableJsonFlag": false,
|
|
2603
|
-
"isESM": true,
|
|
2604
|
-
"relativePath": [
|
|
2605
|
-
"dist",
|
|
2606
|
-
"commands",
|
|
2607
|
-
"telemetry",
|
|
2608
|
-
"disable.js"
|
|
2609
|
-
]
|
|
2610
|
-
},
|
|
2611
|
-
"telemetry:enable": {
|
|
2612
|
-
"aliases": [],
|
|
2613
|
-
"args": {},
|
|
2614
|
-
"description": "Enable error reporting to Sentry",
|
|
2615
|
-
"examples": [
|
|
2616
|
-
"$ lps telemetry enable"
|
|
2617
|
-
],
|
|
2618
|
-
"flags": {},
|
|
2619
|
-
"hasDynamicHelp": false,
|
|
2620
|
-
"hiddenAliases": [],
|
|
2621
|
-
"id": "telemetry:enable",
|
|
2622
|
-
"pluginAlias": "@loopress/cli",
|
|
2623
|
-
"pluginName": "@loopress/cli",
|
|
2624
|
-
"pluginType": "core",
|
|
2625
|
-
"strict": true,
|
|
2626
|
-
"enableJsonFlag": false,
|
|
2627
|
-
"isESM": true,
|
|
2628
|
-
"relativePath": [
|
|
2629
|
-
"dist",
|
|
2630
|
-
"commands",
|
|
2631
|
-
"telemetry",
|
|
2632
|
-
"enable.js"
|
|
2633
|
-
]
|
|
2634
|
-
},
|
|
2635
3774
|
"theme:add": {
|
|
2636
3775
|
"aliases": [],
|
|
2637
3776
|
"args": {
|
|
@@ -2877,7 +4016,55 @@
|
|
|
2877
4016
|
"theme",
|
|
2878
4017
|
"status.js"
|
|
2879
4018
|
]
|
|
4019
|
+
},
|
|
4020
|
+
"telemetry:disable": {
|
|
4021
|
+
"aliases": [],
|
|
4022
|
+
"args": {},
|
|
4023
|
+
"description": "Disable error reporting to Sentry",
|
|
4024
|
+
"examples": [
|
|
4025
|
+
"$ lps telemetry disable"
|
|
4026
|
+
],
|
|
4027
|
+
"flags": {},
|
|
4028
|
+
"hasDynamicHelp": false,
|
|
4029
|
+
"hiddenAliases": [],
|
|
4030
|
+
"id": "telemetry:disable",
|
|
4031
|
+
"pluginAlias": "@loopress/cli",
|
|
4032
|
+
"pluginName": "@loopress/cli",
|
|
4033
|
+
"pluginType": "core",
|
|
4034
|
+
"strict": true,
|
|
4035
|
+
"enableJsonFlag": false,
|
|
4036
|
+
"isESM": true,
|
|
4037
|
+
"relativePath": [
|
|
4038
|
+
"dist",
|
|
4039
|
+
"commands",
|
|
4040
|
+
"telemetry",
|
|
4041
|
+
"disable.js"
|
|
4042
|
+
]
|
|
4043
|
+
},
|
|
4044
|
+
"telemetry:enable": {
|
|
4045
|
+
"aliases": [],
|
|
4046
|
+
"args": {},
|
|
4047
|
+
"description": "Enable error reporting to Sentry",
|
|
4048
|
+
"examples": [
|
|
4049
|
+
"$ lps telemetry enable"
|
|
4050
|
+
],
|
|
4051
|
+
"flags": {},
|
|
4052
|
+
"hasDynamicHelp": false,
|
|
4053
|
+
"hiddenAliases": [],
|
|
4054
|
+
"id": "telemetry:enable",
|
|
4055
|
+
"pluginAlias": "@loopress/cli",
|
|
4056
|
+
"pluginName": "@loopress/cli",
|
|
4057
|
+
"pluginType": "core",
|
|
4058
|
+
"strict": true,
|
|
4059
|
+
"enableJsonFlag": false,
|
|
4060
|
+
"isESM": true,
|
|
4061
|
+
"relativePath": [
|
|
4062
|
+
"dist",
|
|
4063
|
+
"commands",
|
|
4064
|
+
"telemetry",
|
|
4065
|
+
"enable.js"
|
|
4066
|
+
]
|
|
2880
4067
|
}
|
|
2881
4068
|
},
|
|
2882
|
-
"version": "0.
|
|
4069
|
+
"version": "0.24.1"
|
|
2883
4070
|
}
|