@loopress/cli 0.16.0 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +248 -29
- package/dist/commands/api/list.d.ts +9 -0
- package/dist/commands/api/list.js +26 -0
- package/dist/commands/api/pull.d.ts +13 -0
- package/dist/commands/api/pull.js +64 -0
- package/dist/commands/api/push.d.ts +15 -0
- package/dist/commands/api/push.js +76 -0
- package/dist/commands/form/list.d.ts +9 -0
- package/dist/commands/form/list.js +26 -0
- package/dist/commands/form/pull.d.ts +14 -0
- package/dist/commands/form/pull.js +79 -0
- package/dist/commands/form/push.d.ts +16 -0
- package/dist/commands/form/push.js +130 -0
- package/dist/commands/seo/list.d.ts +11 -0
- package/dist/commands/seo/list.js +60 -0
- package/dist/commands/seo/pull.d.ts +19 -0
- package/dist/commands/seo/pull.js +134 -0
- package/dist/commands/seo/push.d.ts +20 -0
- package/dist/commands/seo/push.js +171 -0
- package/dist/lib/base.d.ts +3 -0
- package/dist/lib/base.js +15 -0
- package/dist/types/project-config.generated.d.ts +12 -0
- package/dist/utils/form-format.d.ts +3 -0
- package/dist/utils/form-format.js +17 -0
- package/dist/utils/seo-format.d.ts +20 -0
- package/dist/utils/seo-format.js +10 -0
- package/oclif.manifest.json +463 -82
- package/package.json +21 -15
- package/schemas/project-config.schema.json +15 -0
package/oclif.manifest.json
CHANGED
|
@@ -276,6 +276,250 @@
|
|
|
276
276
|
"push.js"
|
|
277
277
|
]
|
|
278
278
|
},
|
|
279
|
+
"api:list": {
|
|
280
|
+
"aliases": [],
|
|
281
|
+
"args": {},
|
|
282
|
+
"description": "List custom API route files from WordPress",
|
|
283
|
+
"examples": [
|
|
284
|
+
"$ lps api list"
|
|
285
|
+
],
|
|
286
|
+
"flags": {
|
|
287
|
+
"json": {
|
|
288
|
+
"char": "j",
|
|
289
|
+
"description": "Output in JSON format",
|
|
290
|
+
"name": "json",
|
|
291
|
+
"allowNo": false,
|
|
292
|
+
"type": "boolean"
|
|
293
|
+
}
|
|
294
|
+
},
|
|
295
|
+
"hasDynamicHelp": false,
|
|
296
|
+
"hiddenAliases": [],
|
|
297
|
+
"id": "api:list",
|
|
298
|
+
"pluginAlias": "@loopress/cli",
|
|
299
|
+
"pluginName": "@loopress/cli",
|
|
300
|
+
"pluginType": "core",
|
|
301
|
+
"strict": true,
|
|
302
|
+
"enableJsonFlag": false,
|
|
303
|
+
"dryRunFlag": {
|
|
304
|
+
"dry-run": {
|
|
305
|
+
"char": "d",
|
|
306
|
+
"description": "Show what would change without making changes",
|
|
307
|
+
"allowNo": false,
|
|
308
|
+
"type": "boolean"
|
|
309
|
+
}
|
|
310
|
+
},
|
|
311
|
+
"isESM": true,
|
|
312
|
+
"relativePath": [
|
|
313
|
+
"dist",
|
|
314
|
+
"commands",
|
|
315
|
+
"api",
|
|
316
|
+
"list.js"
|
|
317
|
+
]
|
|
318
|
+
},
|
|
319
|
+
"api:pull": {
|
|
320
|
+
"aliases": [],
|
|
321
|
+
"args": {
|
|
322
|
+
"path": {
|
|
323
|
+
"description": "Path to api directory (overrides project config)",
|
|
324
|
+
"name": "path"
|
|
325
|
+
}
|
|
326
|
+
},
|
|
327
|
+
"description": "Pull custom API route files from WordPress",
|
|
328
|
+
"examples": [
|
|
329
|
+
"$ lps api pull",
|
|
330
|
+
"$ lps api pull --path ./api"
|
|
331
|
+
],
|
|
332
|
+
"flags": {
|
|
333
|
+
"dry-run": {
|
|
334
|
+
"char": "d",
|
|
335
|
+
"description": "Show what would change without making changes",
|
|
336
|
+
"name": "dry-run",
|
|
337
|
+
"allowNo": false,
|
|
338
|
+
"type": "boolean"
|
|
339
|
+
}
|
|
340
|
+
},
|
|
341
|
+
"hasDynamicHelp": false,
|
|
342
|
+
"hiddenAliases": [],
|
|
343
|
+
"id": "api:pull",
|
|
344
|
+
"pluginAlias": "@loopress/cli",
|
|
345
|
+
"pluginName": "@loopress/cli",
|
|
346
|
+
"pluginType": "core",
|
|
347
|
+
"strict": true,
|
|
348
|
+
"enableJsonFlag": false,
|
|
349
|
+
"dryRunFlag": {
|
|
350
|
+
"dry-run": {
|
|
351
|
+
"char": "d",
|
|
352
|
+
"description": "Show what would change without making changes",
|
|
353
|
+
"allowNo": false,
|
|
354
|
+
"type": "boolean"
|
|
355
|
+
}
|
|
356
|
+
},
|
|
357
|
+
"isESM": true,
|
|
358
|
+
"relativePath": [
|
|
359
|
+
"dist",
|
|
360
|
+
"commands",
|
|
361
|
+
"api",
|
|
362
|
+
"pull.js"
|
|
363
|
+
]
|
|
364
|
+
},
|
|
365
|
+
"api:push": {
|
|
366
|
+
"aliases": [],
|
|
367
|
+
"args": {
|
|
368
|
+
"path": {
|
|
369
|
+
"description": "Path to api directory (overrides project config)",
|
|
370
|
+
"name": "path"
|
|
371
|
+
}
|
|
372
|
+
},
|
|
373
|
+
"description": "Push custom API route files to WordPress",
|
|
374
|
+
"examples": [
|
|
375
|
+
"$ lps api push",
|
|
376
|
+
"$ lps api push --path ./api"
|
|
377
|
+
],
|
|
378
|
+
"flags": {
|
|
379
|
+
"dry-run": {
|
|
380
|
+
"char": "d",
|
|
381
|
+
"description": "Show what would change without making changes",
|
|
382
|
+
"name": "dry-run",
|
|
383
|
+
"allowNo": false,
|
|
384
|
+
"type": "boolean"
|
|
385
|
+
}
|
|
386
|
+
},
|
|
387
|
+
"hasDynamicHelp": false,
|
|
388
|
+
"hiddenAliases": [],
|
|
389
|
+
"id": "api:push",
|
|
390
|
+
"pluginAlias": "@loopress/cli",
|
|
391
|
+
"pluginName": "@loopress/cli",
|
|
392
|
+
"pluginType": "core",
|
|
393
|
+
"strict": true,
|
|
394
|
+
"isESM": true,
|
|
395
|
+
"relativePath": [
|
|
396
|
+
"dist",
|
|
397
|
+
"commands",
|
|
398
|
+
"api",
|
|
399
|
+
"push.js"
|
|
400
|
+
]
|
|
401
|
+
},
|
|
402
|
+
"form:list": {
|
|
403
|
+
"aliases": [],
|
|
404
|
+
"args": {},
|
|
405
|
+
"description": "List forms from WordPress",
|
|
406
|
+
"examples": [
|
|
407
|
+
"$ lps form list"
|
|
408
|
+
],
|
|
409
|
+
"flags": {
|
|
410
|
+
"json": {
|
|
411
|
+
"char": "j",
|
|
412
|
+
"description": "Output in JSON format",
|
|
413
|
+
"name": "json",
|
|
414
|
+
"allowNo": false,
|
|
415
|
+
"type": "boolean"
|
|
416
|
+
}
|
|
417
|
+
},
|
|
418
|
+
"hasDynamicHelp": false,
|
|
419
|
+
"hiddenAliases": [],
|
|
420
|
+
"id": "form:list",
|
|
421
|
+
"pluginAlias": "@loopress/cli",
|
|
422
|
+
"pluginName": "@loopress/cli",
|
|
423
|
+
"pluginType": "core",
|
|
424
|
+
"strict": true,
|
|
425
|
+
"enableJsonFlag": false,
|
|
426
|
+
"dryRunFlag": {
|
|
427
|
+
"dry-run": {
|
|
428
|
+
"char": "d",
|
|
429
|
+
"description": "Show what would change without making changes",
|
|
430
|
+
"allowNo": false,
|
|
431
|
+
"type": "boolean"
|
|
432
|
+
}
|
|
433
|
+
},
|
|
434
|
+
"isESM": true,
|
|
435
|
+
"relativePath": [
|
|
436
|
+
"dist",
|
|
437
|
+
"commands",
|
|
438
|
+
"form",
|
|
439
|
+
"list.js"
|
|
440
|
+
]
|
|
441
|
+
},
|
|
442
|
+
"form:pull": {
|
|
443
|
+
"aliases": [],
|
|
444
|
+
"args": {
|
|
445
|
+
"path": {
|
|
446
|
+
"description": "Path to forms directory (overrides project config)",
|
|
447
|
+
"name": "path"
|
|
448
|
+
}
|
|
449
|
+
},
|
|
450
|
+
"description": "Pull forms from WordPress",
|
|
451
|
+
"examples": [
|
|
452
|
+
"$ lps form pull"
|
|
453
|
+
],
|
|
454
|
+
"flags": {
|
|
455
|
+
"dry-run": {
|
|
456
|
+
"char": "d",
|
|
457
|
+
"description": "Show what would change without making changes",
|
|
458
|
+
"name": "dry-run",
|
|
459
|
+
"allowNo": false,
|
|
460
|
+
"type": "boolean"
|
|
461
|
+
}
|
|
462
|
+
},
|
|
463
|
+
"hasDynamicHelp": false,
|
|
464
|
+
"hiddenAliases": [],
|
|
465
|
+
"id": "form:pull",
|
|
466
|
+
"pluginAlias": "@loopress/cli",
|
|
467
|
+
"pluginName": "@loopress/cli",
|
|
468
|
+
"pluginType": "core",
|
|
469
|
+
"strict": true,
|
|
470
|
+
"enableJsonFlag": false,
|
|
471
|
+
"dryRunFlag": {
|
|
472
|
+
"dry-run": {
|
|
473
|
+
"char": "d",
|
|
474
|
+
"description": "Show what would change without making changes",
|
|
475
|
+
"allowNo": false,
|
|
476
|
+
"type": "boolean"
|
|
477
|
+
}
|
|
478
|
+
},
|
|
479
|
+
"isESM": true,
|
|
480
|
+
"relativePath": [
|
|
481
|
+
"dist",
|
|
482
|
+
"commands",
|
|
483
|
+
"form",
|
|
484
|
+
"pull.js"
|
|
485
|
+
]
|
|
486
|
+
},
|
|
487
|
+
"form:push": {
|
|
488
|
+
"aliases": [],
|
|
489
|
+
"args": {
|
|
490
|
+
"path": {
|
|
491
|
+
"description": "Path to forms directory (overrides project config)",
|
|
492
|
+
"name": "path"
|
|
493
|
+
}
|
|
494
|
+
},
|
|
495
|
+
"description": "Push forms to WordPress. Local files created or updated remotely are renamed on disk to the `<id>-<slug>.json` convention.",
|
|
496
|
+
"examples": [
|
|
497
|
+
"$ lps form push"
|
|
498
|
+
],
|
|
499
|
+
"flags": {
|
|
500
|
+
"dry-run": {
|
|
501
|
+
"char": "d",
|
|
502
|
+
"description": "Show what would change without making changes",
|
|
503
|
+
"name": "dry-run",
|
|
504
|
+
"allowNo": false,
|
|
505
|
+
"type": "boolean"
|
|
506
|
+
}
|
|
507
|
+
},
|
|
508
|
+
"hasDynamicHelp": false,
|
|
509
|
+
"hiddenAliases": [],
|
|
510
|
+
"id": "form:push",
|
|
511
|
+
"pluginAlias": "@loopress/cli",
|
|
512
|
+
"pluginName": "@loopress/cli",
|
|
513
|
+
"pluginType": "core",
|
|
514
|
+
"strict": true,
|
|
515
|
+
"isESM": true,
|
|
516
|
+
"relativePath": [
|
|
517
|
+
"dist",
|
|
518
|
+
"commands",
|
|
519
|
+
"form",
|
|
520
|
+
"push.js"
|
|
521
|
+
]
|
|
522
|
+
},
|
|
279
523
|
"composer:init": {
|
|
280
524
|
"aliases": [],
|
|
281
525
|
"args": {},
|
|
@@ -390,6 +634,126 @@
|
|
|
390
634
|
"push.js"
|
|
391
635
|
]
|
|
392
636
|
},
|
|
637
|
+
"plugin:add": {
|
|
638
|
+
"aliases": [],
|
|
639
|
+
"args": {
|
|
640
|
+
"slug": {
|
|
641
|
+
"description": "Plugin slug on WordPress.org",
|
|
642
|
+
"name": "slug",
|
|
643
|
+
"required": true
|
|
644
|
+
}
|
|
645
|
+
},
|
|
646
|
+
"description": "Add a WordPress.org plugin to loopress.json",
|
|
647
|
+
"examples": [
|
|
648
|
+
"$ lps plugin add woocommerce",
|
|
649
|
+
"$ lps plugin add contact-form-7 --dry-run"
|
|
650
|
+
],
|
|
651
|
+
"flags": {
|
|
652
|
+
"dry-run": {
|
|
653
|
+
"char": "d",
|
|
654
|
+
"description": "Show what would change without making changes",
|
|
655
|
+
"name": "dry-run",
|
|
656
|
+
"allowNo": false,
|
|
657
|
+
"type": "boolean"
|
|
658
|
+
}
|
|
659
|
+
},
|
|
660
|
+
"hasDynamicHelp": false,
|
|
661
|
+
"hiddenAliases": [],
|
|
662
|
+
"id": "plugin:add",
|
|
663
|
+
"pluginAlias": "@loopress/cli",
|
|
664
|
+
"pluginName": "@loopress/cli",
|
|
665
|
+
"pluginType": "core",
|
|
666
|
+
"strict": true,
|
|
667
|
+
"enableJsonFlag": false,
|
|
668
|
+
"dryRunFlag": {
|
|
669
|
+
"dry-run": {
|
|
670
|
+
"char": "d",
|
|
671
|
+
"description": "Show what would change without making changes",
|
|
672
|
+
"allowNo": false,
|
|
673
|
+
"type": "boolean"
|
|
674
|
+
}
|
|
675
|
+
},
|
|
676
|
+
"isESM": true,
|
|
677
|
+
"relativePath": [
|
|
678
|
+
"dist",
|
|
679
|
+
"commands",
|
|
680
|
+
"plugin",
|
|
681
|
+
"add.js"
|
|
682
|
+
]
|
|
683
|
+
},
|
|
684
|
+
"plugin:pull": {
|
|
685
|
+
"aliases": [],
|
|
686
|
+
"args": {},
|
|
687
|
+
"description": "Pull installed plugins from WordPress into loopress.json",
|
|
688
|
+
"examples": [
|
|
689
|
+
"$ lps plugin pull",
|
|
690
|
+
"$ lps plugin pull --dry-run"
|
|
691
|
+
],
|
|
692
|
+
"flags": {
|
|
693
|
+
"dry-run": {
|
|
694
|
+
"char": "d",
|
|
695
|
+
"description": "Show what would change without making changes",
|
|
696
|
+
"name": "dry-run",
|
|
697
|
+
"allowNo": false,
|
|
698
|
+
"type": "boolean"
|
|
699
|
+
}
|
|
700
|
+
},
|
|
701
|
+
"hasDynamicHelp": false,
|
|
702
|
+
"hiddenAliases": [],
|
|
703
|
+
"id": "plugin:pull",
|
|
704
|
+
"pluginAlias": "@loopress/cli",
|
|
705
|
+
"pluginName": "@loopress/cli",
|
|
706
|
+
"pluginType": "core",
|
|
707
|
+
"strict": true,
|
|
708
|
+
"enableJsonFlag": false,
|
|
709
|
+
"dryRunFlag": {
|
|
710
|
+
"dry-run": {
|
|
711
|
+
"char": "d",
|
|
712
|
+
"description": "Show what would change without making changes",
|
|
713
|
+
"allowNo": false,
|
|
714
|
+
"type": "boolean"
|
|
715
|
+
}
|
|
716
|
+
},
|
|
717
|
+
"isESM": true,
|
|
718
|
+
"relativePath": [
|
|
719
|
+
"dist",
|
|
720
|
+
"commands",
|
|
721
|
+
"plugin",
|
|
722
|
+
"pull.js"
|
|
723
|
+
]
|
|
724
|
+
},
|
|
725
|
+
"plugin:push": {
|
|
726
|
+
"aliases": [],
|
|
727
|
+
"args": {},
|
|
728
|
+
"description": "Push plugins to WordPress to match loopress.json",
|
|
729
|
+
"examples": [
|
|
730
|
+
"$ lps plugin push",
|
|
731
|
+
"$ lps plugin push --dry-run"
|
|
732
|
+
],
|
|
733
|
+
"flags": {
|
|
734
|
+
"dry-run": {
|
|
735
|
+
"char": "d",
|
|
736
|
+
"description": "Show what would change without making changes",
|
|
737
|
+
"name": "dry-run",
|
|
738
|
+
"allowNo": false,
|
|
739
|
+
"type": "boolean"
|
|
740
|
+
}
|
|
741
|
+
},
|
|
742
|
+
"hasDynamicHelp": false,
|
|
743
|
+
"hiddenAliases": [],
|
|
744
|
+
"id": "plugin:push",
|
|
745
|
+
"pluginAlias": "@loopress/cli",
|
|
746
|
+
"pluginName": "@loopress/cli",
|
|
747
|
+
"pluginType": "core",
|
|
748
|
+
"strict": true,
|
|
749
|
+
"isESM": true,
|
|
750
|
+
"relativePath": [
|
|
751
|
+
"dist",
|
|
752
|
+
"commands",
|
|
753
|
+
"plugin",
|
|
754
|
+
"push.js"
|
|
755
|
+
]
|
|
756
|
+
},
|
|
393
757
|
"project:config": {
|
|
394
758
|
"aliases": [],
|
|
395
759
|
"args": {},
|
|
@@ -534,12 +898,13 @@
|
|
|
534
898
|
"switch.js"
|
|
535
899
|
]
|
|
536
900
|
},
|
|
537
|
-
"
|
|
901
|
+
"seo:list": {
|
|
538
902
|
"aliases": [],
|
|
539
903
|
"args": {},
|
|
540
|
-
"description": "List
|
|
904
|
+
"description": "List posts with SEO meta, and redirects if supported by the active SEO plugin, on WordPress",
|
|
541
905
|
"examples": [
|
|
542
|
-
"$ lps
|
|
906
|
+
"$ lps seo list",
|
|
907
|
+
"$ lps seo list --post-type post"
|
|
543
908
|
],
|
|
544
909
|
"flags": {
|
|
545
910
|
"json": {
|
|
@@ -548,11 +913,18 @@
|
|
|
548
913
|
"name": "json",
|
|
549
914
|
"allowNo": false,
|
|
550
915
|
"type": "boolean"
|
|
916
|
+
},
|
|
917
|
+
"post-type": {
|
|
918
|
+
"description": "Limit to specific post types",
|
|
919
|
+
"name": "post-type",
|
|
920
|
+
"hasDynamicHelp": false,
|
|
921
|
+
"multiple": true,
|
|
922
|
+
"type": "option"
|
|
551
923
|
}
|
|
552
924
|
},
|
|
553
925
|
"hasDynamicHelp": false,
|
|
554
926
|
"hiddenAliases": [],
|
|
555
|
-
"id": "
|
|
927
|
+
"id": "seo:list",
|
|
556
928
|
"pluginAlias": "@loopress/cli",
|
|
557
929
|
"pluginName": "@loopress/cli",
|
|
558
930
|
"pluginType": "core",
|
|
@@ -570,52 +942,22 @@
|
|
|
570
942
|
"relativePath": [
|
|
571
943
|
"dist",
|
|
572
944
|
"commands",
|
|
573
|
-
"
|
|
945
|
+
"seo",
|
|
574
946
|
"list.js"
|
|
575
947
|
]
|
|
576
948
|
},
|
|
577
|
-
"
|
|
949
|
+
"seo:pull": {
|
|
578
950
|
"aliases": [],
|
|
579
951
|
"args": {
|
|
580
952
|
"path": {
|
|
581
|
-
"description": "Path to
|
|
953
|
+
"description": "Path to SEO directory (overrides project config)",
|
|
582
954
|
"name": "path"
|
|
583
955
|
}
|
|
584
956
|
},
|
|
585
|
-
"description": "
|
|
957
|
+
"description": "Pull SEO settings, post meta, and (if supported) redirects from WordPress",
|
|
586
958
|
"examples": [
|
|
587
|
-
"$ lps
|
|
588
|
-
"$ lps
|
|
589
|
-
],
|
|
590
|
-
"flags": {},
|
|
591
|
-
"hasDynamicHelp": false,
|
|
592
|
-
"hiddenAliases": [],
|
|
593
|
-
"id": "snippet:publish",
|
|
594
|
-
"pluginAlias": "@loopress/cli",
|
|
595
|
-
"pluginName": "@loopress/cli",
|
|
596
|
-
"pluginType": "core",
|
|
597
|
-
"strict": true,
|
|
598
|
-
"enableJsonFlag": false,
|
|
599
|
-
"isESM": true,
|
|
600
|
-
"relativePath": [
|
|
601
|
-
"dist",
|
|
602
|
-
"commands",
|
|
603
|
-
"snippet",
|
|
604
|
-
"publish.js"
|
|
605
|
-
]
|
|
606
|
-
},
|
|
607
|
-
"snippet:pull": {
|
|
608
|
-
"aliases": [],
|
|
609
|
-
"args": {
|
|
610
|
-
"path": {
|
|
611
|
-
"description": "Path to snippets directory (overrides project config)",
|
|
612
|
-
"name": "path"
|
|
613
|
-
}
|
|
614
|
-
},
|
|
615
|
-
"description": "Pull snippets from WordPress",
|
|
616
|
-
"examples": [
|
|
617
|
-
"$ lps snippet pull",
|
|
618
|
-
"$ lps snippet pull --path ./snippets"
|
|
959
|
+
"$ lps seo pull",
|
|
960
|
+
"$ lps seo pull --post-type post --post-type page"
|
|
619
961
|
],
|
|
620
962
|
"flags": {
|
|
621
963
|
"dry-run": {
|
|
@@ -624,11 +966,18 @@
|
|
|
624
966
|
"name": "dry-run",
|
|
625
967
|
"allowNo": false,
|
|
626
968
|
"type": "boolean"
|
|
969
|
+
},
|
|
970
|
+
"post-type": {
|
|
971
|
+
"description": "Limit post meta to specific post types",
|
|
972
|
+
"name": "post-type",
|
|
973
|
+
"hasDynamicHelp": false,
|
|
974
|
+
"multiple": true,
|
|
975
|
+
"type": "option"
|
|
627
976
|
}
|
|
628
977
|
},
|
|
629
978
|
"hasDynamicHelp": false,
|
|
630
979
|
"hiddenAliases": [],
|
|
631
|
-
"id": "
|
|
980
|
+
"id": "seo:pull",
|
|
632
981
|
"pluginAlias": "@loopress/cli",
|
|
633
982
|
"pluginName": "@loopress/cli",
|
|
634
983
|
"pluginType": "core",
|
|
@@ -646,22 +995,21 @@
|
|
|
646
995
|
"relativePath": [
|
|
647
996
|
"dist",
|
|
648
997
|
"commands",
|
|
649
|
-
"
|
|
998
|
+
"seo",
|
|
650
999
|
"pull.js"
|
|
651
1000
|
]
|
|
652
1001
|
},
|
|
653
|
-
"
|
|
1002
|
+
"seo:push": {
|
|
654
1003
|
"aliases": [],
|
|
655
1004
|
"args": {
|
|
656
1005
|
"path": {
|
|
657
|
-
"description": "Path to
|
|
1006
|
+
"description": "Path to SEO directory (overrides project config)",
|
|
658
1007
|
"name": "path"
|
|
659
1008
|
}
|
|
660
1009
|
},
|
|
661
|
-
"description": "Push
|
|
1010
|
+
"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.",
|
|
662
1011
|
"examples": [
|
|
663
|
-
"$ lps
|
|
664
|
-
"$ lps snippet push --path ./snippets"
|
|
1012
|
+
"$ lps seo push"
|
|
665
1013
|
],
|
|
666
1014
|
"flags": {
|
|
667
1015
|
"dry-run": {
|
|
@@ -674,7 +1022,7 @@
|
|
|
674
1022
|
},
|
|
675
1023
|
"hasDynamicHelp": false,
|
|
676
1024
|
"hiddenAliases": [],
|
|
677
|
-
"id": "
|
|
1025
|
+
"id": "seo:push",
|
|
678
1026
|
"pluginAlias": "@loopress/cli",
|
|
679
1027
|
"pluginName": "@loopress/cli",
|
|
680
1028
|
"pluginType": "core",
|
|
@@ -683,36 +1031,29 @@
|
|
|
683
1031
|
"relativePath": [
|
|
684
1032
|
"dist",
|
|
685
1033
|
"commands",
|
|
686
|
-
"
|
|
1034
|
+
"seo",
|
|
687
1035
|
"push.js"
|
|
688
1036
|
]
|
|
689
1037
|
},
|
|
690
|
-
"
|
|
1038
|
+
"snippet:list": {
|
|
691
1039
|
"aliases": [],
|
|
692
|
-
"args": {
|
|
693
|
-
|
|
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",
|
|
1040
|
+
"args": {},
|
|
1041
|
+
"description": "List snippets from WordPress",
|
|
700
1042
|
"examples": [
|
|
701
|
-
"$ lps
|
|
702
|
-
"$ lps plugin add contact-form-7 --dry-run"
|
|
1043
|
+
"$ lps snippet list"
|
|
703
1044
|
],
|
|
704
1045
|
"flags": {
|
|
705
|
-
"
|
|
706
|
-
"char": "
|
|
707
|
-
"description": "
|
|
708
|
-
"name": "
|
|
1046
|
+
"json": {
|
|
1047
|
+
"char": "j",
|
|
1048
|
+
"description": "Output in JSON format",
|
|
1049
|
+
"name": "json",
|
|
709
1050
|
"allowNo": false,
|
|
710
1051
|
"type": "boolean"
|
|
711
1052
|
}
|
|
712
1053
|
},
|
|
713
1054
|
"hasDynamicHelp": false,
|
|
714
1055
|
"hiddenAliases": [],
|
|
715
|
-
"id": "
|
|
1056
|
+
"id": "snippet:list",
|
|
716
1057
|
"pluginAlias": "@loopress/cli",
|
|
717
1058
|
"pluginName": "@loopress/cli",
|
|
718
1059
|
"pluginType": "core",
|
|
@@ -730,17 +1071,52 @@
|
|
|
730
1071
|
"relativePath": [
|
|
731
1072
|
"dist",
|
|
732
1073
|
"commands",
|
|
733
|
-
"
|
|
734
|
-
"
|
|
1074
|
+
"snippet",
|
|
1075
|
+
"list.js"
|
|
735
1076
|
]
|
|
736
1077
|
},
|
|
737
|
-
"
|
|
1078
|
+
"snippet:publish": {
|
|
738
1079
|
"aliases": [],
|
|
739
|
-
"args": {
|
|
740
|
-
|
|
1080
|
+
"args": {
|
|
1081
|
+
"path": {
|
|
1082
|
+
"description": "Path to snippets directory (overrides project config)",
|
|
1083
|
+
"name": "path"
|
|
1084
|
+
}
|
|
1085
|
+
},
|
|
1086
|
+
"description": "Publish snippets to your Loopress account so they can be deployed to other projects. Does not touch any WordPress site.",
|
|
741
1087
|
"examples": [
|
|
742
|
-
"$ lps
|
|
743
|
-
"$ lps
|
|
1088
|
+
"$ lps snippet publish",
|
|
1089
|
+
"$ lps snippet publish --path ./snippets"
|
|
1090
|
+
],
|
|
1091
|
+
"flags": {},
|
|
1092
|
+
"hasDynamicHelp": false,
|
|
1093
|
+
"hiddenAliases": [],
|
|
1094
|
+
"id": "snippet:publish",
|
|
1095
|
+
"pluginAlias": "@loopress/cli",
|
|
1096
|
+
"pluginName": "@loopress/cli",
|
|
1097
|
+
"pluginType": "core",
|
|
1098
|
+
"strict": true,
|
|
1099
|
+
"enableJsonFlag": false,
|
|
1100
|
+
"isESM": true,
|
|
1101
|
+
"relativePath": [
|
|
1102
|
+
"dist",
|
|
1103
|
+
"commands",
|
|
1104
|
+
"snippet",
|
|
1105
|
+
"publish.js"
|
|
1106
|
+
]
|
|
1107
|
+
},
|
|
1108
|
+
"snippet:pull": {
|
|
1109
|
+
"aliases": [],
|
|
1110
|
+
"args": {
|
|
1111
|
+
"path": {
|
|
1112
|
+
"description": "Path to snippets directory (overrides project config)",
|
|
1113
|
+
"name": "path"
|
|
1114
|
+
}
|
|
1115
|
+
},
|
|
1116
|
+
"description": "Pull snippets from WordPress",
|
|
1117
|
+
"examples": [
|
|
1118
|
+
"$ lps snippet pull",
|
|
1119
|
+
"$ lps snippet pull --path ./snippets"
|
|
744
1120
|
],
|
|
745
1121
|
"flags": {
|
|
746
1122
|
"dry-run": {
|
|
@@ -753,7 +1129,7 @@
|
|
|
753
1129
|
},
|
|
754
1130
|
"hasDynamicHelp": false,
|
|
755
1131
|
"hiddenAliases": [],
|
|
756
|
-
"id": "
|
|
1132
|
+
"id": "snippet:pull",
|
|
757
1133
|
"pluginAlias": "@loopress/cli",
|
|
758
1134
|
"pluginName": "@loopress/cli",
|
|
759
1135
|
"pluginType": "core",
|
|
@@ -771,17 +1147,22 @@
|
|
|
771
1147
|
"relativePath": [
|
|
772
1148
|
"dist",
|
|
773
1149
|
"commands",
|
|
774
|
-
"
|
|
1150
|
+
"snippet",
|
|
775
1151
|
"pull.js"
|
|
776
1152
|
]
|
|
777
1153
|
},
|
|
778
|
-
"
|
|
1154
|
+
"snippet:push": {
|
|
779
1155
|
"aliases": [],
|
|
780
|
-
"args": {
|
|
781
|
-
|
|
1156
|
+
"args": {
|
|
1157
|
+
"path": {
|
|
1158
|
+
"description": "Path to snippets directory (overrides project config)",
|
|
1159
|
+
"name": "path"
|
|
1160
|
+
}
|
|
1161
|
+
},
|
|
1162
|
+
"description": "Push snippets to WordPress. Local snippet files created or updated remotely are renamed on disk to the `<id>-<slug>` convention.",
|
|
782
1163
|
"examples": [
|
|
783
|
-
"$ lps
|
|
784
|
-
"$ lps
|
|
1164
|
+
"$ lps snippet push",
|
|
1165
|
+
"$ lps snippet push --path ./snippets"
|
|
785
1166
|
],
|
|
786
1167
|
"flags": {
|
|
787
1168
|
"dry-run": {
|
|
@@ -794,7 +1175,7 @@
|
|
|
794
1175
|
},
|
|
795
1176
|
"hasDynamicHelp": false,
|
|
796
1177
|
"hiddenAliases": [],
|
|
797
|
-
"id": "
|
|
1178
|
+
"id": "snippet:push",
|
|
798
1179
|
"pluginAlias": "@loopress/cli",
|
|
799
1180
|
"pluginName": "@loopress/cli",
|
|
800
1181
|
"pluginType": "core",
|
|
@@ -803,7 +1184,7 @@
|
|
|
803
1184
|
"relativePath": [
|
|
804
1185
|
"dist",
|
|
805
1186
|
"commands",
|
|
806
|
-
"
|
|
1187
|
+
"snippet",
|
|
807
1188
|
"push.js"
|
|
808
1189
|
]
|
|
809
1190
|
},
|
|
@@ -856,5 +1237,5 @@
|
|
|
856
1237
|
]
|
|
857
1238
|
}
|
|
858
1239
|
},
|
|
859
|
-
"version": "0.
|
|
1240
|
+
"version": "0.18.0"
|
|
860
1241
|
}
|