@loopress/cli 0.14.0 → 0.16.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.
@@ -113,13 +113,72 @@
113
113
  "status.js"
114
114
  ]
115
115
  },
116
- "composer:pull": {
116
+ "acf:list": {
117
117
  "aliases": [],
118
118
  "args": {},
119
- "description": "Pull composer.lock from WordPress",
119
+ "description": "List ACF field groups, post types, taxonomies, and options pages from WordPress",
120
120
  "examples": [
121
- "$ lps composer pull",
122
- "$ lps composer pull --dry-run"
121
+ "$ lps acf list",
122
+ "$ lps acf list --type field-groups"
123
+ ],
124
+ "flags": {
125
+ "json": {
126
+ "char": "j",
127
+ "description": "Output in JSON format",
128
+ "name": "json",
129
+ "allowNo": false,
130
+ "type": "boolean"
131
+ },
132
+ "type": {
133
+ "description": "Limit to specific ACF object types",
134
+ "name": "type",
135
+ "hasDynamicHelp": false,
136
+ "multiple": true,
137
+ "options": [
138
+ "field-groups",
139
+ "post-types",
140
+ "taxonomies",
141
+ "options-pages"
142
+ ],
143
+ "type": "option"
144
+ }
145
+ },
146
+ "hasDynamicHelp": false,
147
+ "hiddenAliases": [],
148
+ "id": "acf:list",
149
+ "pluginAlias": "@loopress/cli",
150
+ "pluginName": "@loopress/cli",
151
+ "pluginType": "core",
152
+ "strict": true,
153
+ "enableJsonFlag": false,
154
+ "dryRunFlag": {
155
+ "dry-run": {
156
+ "char": "d",
157
+ "description": "Show what would change without making changes",
158
+ "allowNo": false,
159
+ "type": "boolean"
160
+ }
161
+ },
162
+ "isESM": true,
163
+ "relativePath": [
164
+ "dist",
165
+ "commands",
166
+ "acf",
167
+ "list.js"
168
+ ]
169
+ },
170
+ "acf:pull": {
171
+ "aliases": [],
172
+ "args": {
173
+ "path": {
174
+ "description": "Path to ACF directory (overrides project config)",
175
+ "name": "path"
176
+ }
177
+ },
178
+ "description": "Pull ACF field groups, post types, taxonomies, and options pages from WordPress",
179
+ "examples": [
180
+ "$ lps acf pull",
181
+ "$ lps acf pull --type field-groups"
123
182
  ],
124
183
  "flags": {
125
184
  "dry-run": {
@@ -128,11 +187,24 @@
128
187
  "name": "dry-run",
129
188
  "allowNo": false,
130
189
  "type": "boolean"
190
+ },
191
+ "type": {
192
+ "description": "Limit to specific ACF object types",
193
+ "name": "type",
194
+ "hasDynamicHelp": false,
195
+ "multiple": true,
196
+ "options": [
197
+ "field-groups",
198
+ "post-types",
199
+ "taxonomies",
200
+ "options-pages"
201
+ ],
202
+ "type": "option"
131
203
  }
132
204
  },
133
205
  "hasDynamicHelp": false,
134
206
  "hiddenAliases": [],
135
- "id": "composer:pull",
207
+ "id": "acf:pull",
136
208
  "pluginAlias": "@loopress/cli",
137
209
  "pluginName": "@loopress/cli",
138
210
  "pluginType": "core",
@@ -150,17 +222,22 @@
150
222
  "relativePath": [
151
223
  "dist",
152
224
  "commands",
153
- "composer",
225
+ "acf",
154
226
  "pull.js"
155
227
  ]
156
228
  },
157
- "composer:push": {
229
+ "acf:push": {
158
230
  "aliases": [],
159
- "args": {},
160
- "description": "Push composer.json and composer.lock to WordPress and run composer install",
231
+ "args": {
232
+ "path": {
233
+ "description": "Path to ACF directory (overrides project config)",
234
+ "name": "path"
235
+ }
236
+ },
237
+ "description": "Push ACF field groups, post types, taxonomies, and options pages to WordPress",
161
238
  "examples": [
162
- "$ lps composer push",
163
- "$ lps composer push --dry-run"
239
+ "$ lps acf push",
240
+ "$ lps acf push --type field-groups"
164
241
  ],
165
242
  "flags": {
166
243
  "dry-run": {
@@ -169,11 +246,24 @@
169
246
  "name": "dry-run",
170
247
  "allowNo": false,
171
248
  "type": "boolean"
249
+ },
250
+ "type": {
251
+ "description": "Limit to specific ACF object types",
252
+ "name": "type",
253
+ "hasDynamicHelp": false,
254
+ "multiple": true,
255
+ "options": [
256
+ "field-groups",
257
+ "post-types",
258
+ "taxonomies",
259
+ "options-pages"
260
+ ],
261
+ "type": "option"
172
262
  }
173
263
  },
174
264
  "hasDynamicHelp": false,
175
265
  "hiddenAliases": [],
176
- "id": "composer:push",
266
+ "id": "acf:push",
177
267
  "pluginAlias": "@loopress/cli",
178
268
  "pluginName": "@loopress/cli",
179
269
  "pluginType": "core",
@@ -182,23 +272,17 @@
182
272
  "relativePath": [
183
273
  "dist",
184
274
  "commands",
185
- "composer",
275
+ "acf",
186
276
  "push.js"
187
277
  ]
188
278
  },
189
- "plugin:add": {
279
+ "composer:init": {
190
280
  "aliases": [],
191
- "args": {
192
- "slug": {
193
- "description": "Plugin slug on WordPress.org",
194
- "name": "slug",
195
- "required": true
196
- }
197
- },
198
- "description": "Add a WordPress.org plugin to loopress.json",
281
+ "args": {},
282
+ "description": "Create a composer.json wired to WPackagist for installing WordPress.org plugins and themes",
199
283
  "examples": [
200
- "$ lps plugin add woocommerce",
201
- "$ lps plugin add contact-form-7 --dry-run"
284
+ "$ lps composer init",
285
+ "$ lps composer init --dry-run"
202
286
  ],
203
287
  "flags": {
204
288
  "dry-run": {
@@ -211,7 +295,7 @@
211
295
  },
212
296
  "hasDynamicHelp": false,
213
297
  "hiddenAliases": [],
214
- "id": "plugin:add",
298
+ "id": "composer:init",
215
299
  "pluginAlias": "@loopress/cli",
216
300
  "pluginName": "@loopress/cli",
217
301
  "pluginType": "core",
@@ -229,17 +313,17 @@
229
313
  "relativePath": [
230
314
  "dist",
231
315
  "commands",
232
- "plugin",
233
- "add.js"
316
+ "composer",
317
+ "init.js"
234
318
  ]
235
319
  },
236
- "plugin:pull": {
320
+ "composer:pull": {
237
321
  "aliases": [],
238
322
  "args": {},
239
- "description": "Pull installed plugins from WordPress into loopress.json",
323
+ "description": "Pull composer.json and composer.lock from WordPress",
240
324
  "examples": [
241
- "$ lps plugin pull",
242
- "$ lps plugin pull --dry-run"
325
+ "$ lps composer pull",
326
+ "$ lps composer pull --dry-run"
243
327
  ],
244
328
  "flags": {
245
329
  "dry-run": {
@@ -252,7 +336,7 @@
252
336
  },
253
337
  "hasDynamicHelp": false,
254
338
  "hiddenAliases": [],
255
- "id": "plugin:pull",
339
+ "id": "composer:pull",
256
340
  "pluginAlias": "@loopress/cli",
257
341
  "pluginName": "@loopress/cli",
258
342
  "pluginType": "core",
@@ -270,17 +354,17 @@
270
354
  "relativePath": [
271
355
  "dist",
272
356
  "commands",
273
- "plugin",
357
+ "composer",
274
358
  "pull.js"
275
359
  ]
276
360
  },
277
- "plugin:push": {
361
+ "composer:push": {
278
362
  "aliases": [],
279
363
  "args": {},
280
- "description": "Push plugins to WordPress to match loopress.json",
364
+ "description": "Push composer.json and composer.lock to WordPress and run composer install",
281
365
  "examples": [
282
- "$ lps plugin push",
283
- "$ lps plugin push --dry-run"
366
+ "$ lps composer push",
367
+ "$ lps composer push --dry-run"
284
368
  ],
285
369
  "flags": {
286
370
  "dry-run": {
@@ -293,7 +377,7 @@
293
377
  },
294
378
  "hasDynamicHelp": false,
295
379
  "hiddenAliases": [],
296
- "id": "plugin:push",
380
+ "id": "composer:push",
297
381
  "pluginAlias": "@loopress/cli",
298
382
  "pluginName": "@loopress/cli",
299
383
  "pluginType": "core",
@@ -302,7 +386,7 @@
302
386
  "relativePath": [
303
387
  "dist",
304
388
  "commands",
305
- "plugin",
389
+ "composer",
306
390
  "push.js"
307
391
  ]
308
392
  },
@@ -354,17 +438,17 @@
354
438
  "list.js"
355
439
  ]
356
440
  },
357
- "project:remove": {
441
+ "project:pull": {
358
442
  "aliases": [],
359
443
  "args": {},
360
- "description": "Remove one or more WordPress projects or environments",
444
+ "description": "Pull projects and environments from your Loopress account that are not configured locally yet",
361
445
  "examples": [
362
- "$ lps project remove"
446
+ "$ lps project pull"
363
447
  ],
364
448
  "flags": {},
365
449
  "hasDynamicHelp": false,
366
450
  "hiddenAliases": [],
367
- "id": "project:remove",
451
+ "id": "project:pull",
368
452
  "pluginAlias": "@loopress/cli",
369
453
  "pluginName": "@loopress/cli",
370
454
  "pluginType": "core",
@@ -375,20 +459,20 @@
375
459
  "dist",
376
460
  "commands",
377
461
  "project",
378
- "remove.js"
462
+ "pull.js"
379
463
  ]
380
464
  },
381
- "project:switch": {
465
+ "project:push": {
382
466
  "aliases": [],
383
467
  "args": {},
384
- "description": "Switch the active project and environment",
468
+ "description": "Push locally configured projects, environments and credentials to your Loopress account",
385
469
  "examples": [
386
- "$ lps project switch"
470
+ "$ lps project push"
387
471
  ],
388
472
  "flags": {},
389
473
  "hasDynamicHelp": false,
390
474
  "hiddenAliases": [],
391
- "id": "project:switch",
475
+ "id": "project:push",
392
476
  "pluginAlias": "@loopress/cli",
393
477
  "pluginName": "@loopress/cli",
394
478
  "pluginType": "core",
@@ -399,20 +483,20 @@
399
483
  "dist",
400
484
  "commands",
401
485
  "project",
402
- "switch.js"
486
+ "push.js"
403
487
  ]
404
488
  },
405
- "project:sync": {
489
+ "project:remove": {
406
490
  "aliases": [],
407
491
  "args": {},
408
- "description": "Sync locally configured projects and environments with your Loopress account",
492
+ "description": "Remove one or more WordPress projects or environments",
409
493
  "examples": [
410
- "$ lps project sync"
494
+ "$ lps project remove"
411
495
  ],
412
496
  "flags": {},
413
497
  "hasDynamicHelp": false,
414
498
  "hiddenAliases": [],
415
- "id": "project:sync",
499
+ "id": "project:remove",
416
500
  "pluginAlias": "@loopress/cli",
417
501
  "pluginName": "@loopress/cli",
418
502
  "pluginType": "core",
@@ -423,7 +507,31 @@
423
507
  "dist",
424
508
  "commands",
425
509
  "project",
426
- "sync.js"
510
+ "remove.js"
511
+ ]
512
+ },
513
+ "project:switch": {
514
+ "aliases": [],
515
+ "args": {},
516
+ "description": "Switch the active project and environment",
517
+ "examples": [
518
+ "$ lps project switch"
519
+ ],
520
+ "flags": {},
521
+ "hasDynamicHelp": false,
522
+ "hiddenAliases": [],
523
+ "id": "project:switch",
524
+ "pluginAlias": "@loopress/cli",
525
+ "pluginName": "@loopress/cli",
526
+ "pluginType": "core",
527
+ "strict": true,
528
+ "enableJsonFlag": false,
529
+ "isESM": true,
530
+ "relativePath": [
531
+ "dist",
532
+ "commands",
533
+ "project",
534
+ "switch.js"
427
535
  ]
428
536
  },
429
537
  "snippet:list": {
@@ -579,6 +687,126 @@
579
687
  "push.js"
580
688
  ]
581
689
  },
690
+ "plugin:add": {
691
+ "aliases": [],
692
+ "args": {
693
+ "slug": {
694
+ "description": "Plugin slug on WordPress.org",
695
+ "name": "slug",
696
+ "required": true
697
+ }
698
+ },
699
+ "description": "Add a WordPress.org plugin to loopress.json",
700
+ "examples": [
701
+ "$ lps plugin add woocommerce",
702
+ "$ lps plugin add contact-form-7 --dry-run"
703
+ ],
704
+ "flags": {
705
+ "dry-run": {
706
+ "char": "d",
707
+ "description": "Show what would change without making changes",
708
+ "name": "dry-run",
709
+ "allowNo": false,
710
+ "type": "boolean"
711
+ }
712
+ },
713
+ "hasDynamicHelp": false,
714
+ "hiddenAliases": [],
715
+ "id": "plugin:add",
716
+ "pluginAlias": "@loopress/cli",
717
+ "pluginName": "@loopress/cli",
718
+ "pluginType": "core",
719
+ "strict": true,
720
+ "enableJsonFlag": false,
721
+ "dryRunFlag": {
722
+ "dry-run": {
723
+ "char": "d",
724
+ "description": "Show what would change without making changes",
725
+ "allowNo": false,
726
+ "type": "boolean"
727
+ }
728
+ },
729
+ "isESM": true,
730
+ "relativePath": [
731
+ "dist",
732
+ "commands",
733
+ "plugin",
734
+ "add.js"
735
+ ]
736
+ },
737
+ "plugin:pull": {
738
+ "aliases": [],
739
+ "args": {},
740
+ "description": "Pull installed plugins from WordPress into loopress.json",
741
+ "examples": [
742
+ "$ lps plugin pull",
743
+ "$ lps plugin pull --dry-run"
744
+ ],
745
+ "flags": {
746
+ "dry-run": {
747
+ "char": "d",
748
+ "description": "Show what would change without making changes",
749
+ "name": "dry-run",
750
+ "allowNo": false,
751
+ "type": "boolean"
752
+ }
753
+ },
754
+ "hasDynamicHelp": false,
755
+ "hiddenAliases": [],
756
+ "id": "plugin:pull",
757
+ "pluginAlias": "@loopress/cli",
758
+ "pluginName": "@loopress/cli",
759
+ "pluginType": "core",
760
+ "strict": true,
761
+ "enableJsonFlag": false,
762
+ "dryRunFlag": {
763
+ "dry-run": {
764
+ "char": "d",
765
+ "description": "Show what would change without making changes",
766
+ "allowNo": false,
767
+ "type": "boolean"
768
+ }
769
+ },
770
+ "isESM": true,
771
+ "relativePath": [
772
+ "dist",
773
+ "commands",
774
+ "plugin",
775
+ "pull.js"
776
+ ]
777
+ },
778
+ "plugin:push": {
779
+ "aliases": [],
780
+ "args": {},
781
+ "description": "Push plugins to WordPress to match loopress.json",
782
+ "examples": [
783
+ "$ lps plugin push",
784
+ "$ lps plugin push --dry-run"
785
+ ],
786
+ "flags": {
787
+ "dry-run": {
788
+ "char": "d",
789
+ "description": "Show what would change without making changes",
790
+ "name": "dry-run",
791
+ "allowNo": false,
792
+ "type": "boolean"
793
+ }
794
+ },
795
+ "hasDynamicHelp": false,
796
+ "hiddenAliases": [],
797
+ "id": "plugin:push",
798
+ "pluginAlias": "@loopress/cli",
799
+ "pluginName": "@loopress/cli",
800
+ "pluginType": "core",
801
+ "strict": true,
802
+ "isESM": true,
803
+ "relativePath": [
804
+ "dist",
805
+ "commands",
806
+ "plugin",
807
+ "push.js"
808
+ ]
809
+ },
582
810
  "telemetry:disable": {
583
811
  "aliases": [],
584
812
  "args": {},
@@ -628,5 +856,5 @@
628
856
  ]
629
857
  }
630
858
  },
631
- "version": "0.14.0"
859
+ "version": "0.16.0"
632
860
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@loopress/cli",
3
3
  "description": "CLI tool for syncing WordPress code snippets, plugins, and Composer dependencies via the REST API",
4
- "version": "0.14.0",
4
+ "version": "0.16.0",
5
5
  "author": "jean-smaug",
6
6
  "bin": {
7
7
  "loopress": "bin/run.js",
@@ -84,6 +84,9 @@
84
84
  ],
85
85
  "topicSeparator": " ",
86
86
  "topics": {
87
+ "acf": {
88
+ "description": "Manage ACF field groups, post types, taxonomies, and options pages"
89
+ },
87
90
  "composer": {
88
91
  "description": "Sync composer.json and composer.lock between your project and WordPress"
89
92
  },
@@ -50,7 +50,7 @@
50
50
  },
51
51
  "apiProjectId": {
52
52
  "type": "string",
53
- "description": "Id of the matching project on the Loopress API, once synced via `lps project sync`."
53
+ "description": "Id of the matching project on the Loopress API, once pushed via `lps project push`."
54
54
  },
55
55
  "environments": {
56
56
  "type": "object",
@@ -87,7 +87,7 @@
87
87
  },
88
88
  "apiEnvironmentId": {
89
89
  "type": "string",
90
- "description": "Id of the matching environment on the Loopress API, once synced via `lps project sync`."
90
+ "description": "Id of the matching environment on the Loopress API, once pushed via `lps project push`."
91
91
  },
92
92
  "name": {
93
93
  "type": "string",
@@ -19,6 +19,11 @@
19
19
  "description": "Directory where code snippets are read from and written to, relative to rootDir.",
20
20
  "default": "snippets"
21
21
  },
22
+ "acfDir": {
23
+ "type": "string",
24
+ "description": "Directory where ACF field groups, post types, taxonomies and options pages are read from and written to, relative to rootDir.",
25
+ "default": "acf"
26
+ },
22
27
  "projectId": {
23
28
  "type": "string",
24
29
  "description": "Project identifier from the global Loopress config. When set, takes precedence over the currently active project in the global config."