@loopress/cli 0.17.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 +175 -32
- 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/lib/base.d.ts +2 -0
- package/dist/lib/base.js +10 -0
- package/dist/types/project-config.generated.d.ts +8 -0
- package/dist/utils/form-format.d.ts +3 -0
- package/dist/utils/form-format.js +17 -0
- package/oclif.manifest.json +340 -96
- package/package.json +18 -15
- package/schemas/project-config.schema.json +10 -0
package/oclif.manifest.json
CHANGED
|
@@ -276,13 +276,58 @@
|
|
|
276
276
|
"push.js"
|
|
277
277
|
]
|
|
278
278
|
},
|
|
279
|
-
"
|
|
279
|
+
"api:list": {
|
|
280
280
|
"aliases": [],
|
|
281
281
|
"args": {},
|
|
282
|
-
"description": "
|
|
282
|
+
"description": "List custom API route files from WordPress",
|
|
283
283
|
"examples": [
|
|
284
|
-
"$ lps
|
|
285
|
-
|
|
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"
|
|
286
331
|
],
|
|
287
332
|
"flags": {
|
|
288
333
|
"dry-run": {
|
|
@@ -295,7 +340,7 @@
|
|
|
295
340
|
},
|
|
296
341
|
"hasDynamicHelp": false,
|
|
297
342
|
"hiddenAliases": [],
|
|
298
|
-
"id": "
|
|
343
|
+
"id": "api:pull",
|
|
299
344
|
"pluginAlias": "@loopress/cli",
|
|
300
345
|
"pluginName": "@loopress/cli",
|
|
301
346
|
"pluginType": "core",
|
|
@@ -313,17 +358,22 @@
|
|
|
313
358
|
"relativePath": [
|
|
314
359
|
"dist",
|
|
315
360
|
"commands",
|
|
316
|
-
"
|
|
317
|
-
"
|
|
361
|
+
"api",
|
|
362
|
+
"pull.js"
|
|
318
363
|
]
|
|
319
364
|
},
|
|
320
|
-
"
|
|
365
|
+
"api:push": {
|
|
321
366
|
"aliases": [],
|
|
322
|
-
"args": {
|
|
323
|
-
|
|
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",
|
|
324
374
|
"examples": [
|
|
325
|
-
"$ lps
|
|
326
|
-
"$ lps
|
|
375
|
+
"$ lps api push",
|
|
376
|
+
"$ lps api push --path ./api"
|
|
327
377
|
],
|
|
328
378
|
"flags": {
|
|
329
379
|
"dry-run": {
|
|
@@ -336,7 +386,38 @@
|
|
|
336
386
|
},
|
|
337
387
|
"hasDynamicHelp": false,
|
|
338
388
|
"hiddenAliases": [],
|
|
339
|
-
"id": "
|
|
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",
|
|
340
421
|
"pluginAlias": "@loopress/cli",
|
|
341
422
|
"pluginName": "@loopress/cli",
|
|
342
423
|
"pluginType": "core",
|
|
@@ -354,17 +435,21 @@
|
|
|
354
435
|
"relativePath": [
|
|
355
436
|
"dist",
|
|
356
437
|
"commands",
|
|
357
|
-
"
|
|
358
|
-
"
|
|
438
|
+
"form",
|
|
439
|
+
"list.js"
|
|
359
440
|
]
|
|
360
441
|
},
|
|
361
|
-
"
|
|
442
|
+
"form:pull": {
|
|
362
443
|
"aliases": [],
|
|
363
|
-
"args": {
|
|
364
|
-
|
|
444
|
+
"args": {
|
|
445
|
+
"path": {
|
|
446
|
+
"description": "Path to forms directory (overrides project config)",
|
|
447
|
+
"name": "path"
|
|
448
|
+
}
|
|
449
|
+
},
|
|
450
|
+
"description": "Pull forms from WordPress",
|
|
365
451
|
"examples": [
|
|
366
|
-
"$ lps
|
|
367
|
-
"$ lps composer push --dry-run"
|
|
452
|
+
"$ lps form pull"
|
|
368
453
|
],
|
|
369
454
|
"flags": {
|
|
370
455
|
"dry-run": {
|
|
@@ -377,32 +462,39 @@
|
|
|
377
462
|
},
|
|
378
463
|
"hasDynamicHelp": false,
|
|
379
464
|
"hiddenAliases": [],
|
|
380
|
-
"id": "
|
|
465
|
+
"id": "form:pull",
|
|
381
466
|
"pluginAlias": "@loopress/cli",
|
|
382
467
|
"pluginName": "@loopress/cli",
|
|
383
468
|
"pluginType": "core",
|
|
384
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
|
+
},
|
|
385
479
|
"isESM": true,
|
|
386
480
|
"relativePath": [
|
|
387
481
|
"dist",
|
|
388
482
|
"commands",
|
|
389
|
-
"
|
|
390
|
-
"
|
|
483
|
+
"form",
|
|
484
|
+
"pull.js"
|
|
391
485
|
]
|
|
392
486
|
},
|
|
393
|
-
"
|
|
487
|
+
"form:push": {
|
|
394
488
|
"aliases": [],
|
|
395
489
|
"args": {
|
|
396
|
-
"
|
|
397
|
-
"description": "
|
|
398
|
-
"name": "
|
|
399
|
-
"required": true
|
|
490
|
+
"path": {
|
|
491
|
+
"description": "Path to forms directory (overrides project config)",
|
|
492
|
+
"name": "path"
|
|
400
493
|
}
|
|
401
494
|
},
|
|
402
|
-
"description": "
|
|
495
|
+
"description": "Push forms to WordPress. Local files created or updated remotely are renamed on disk to the `<id>-<slug>.json` convention.",
|
|
403
496
|
"examples": [
|
|
404
|
-
"$ lps
|
|
405
|
-
"$ lps plugin add contact-form-7 --dry-run"
|
|
497
|
+
"$ lps form push"
|
|
406
498
|
],
|
|
407
499
|
"flags": {
|
|
408
500
|
"dry-run": {
|
|
@@ -415,7 +507,39 @@
|
|
|
415
507
|
},
|
|
416
508
|
"hasDynamicHelp": false,
|
|
417
509
|
"hiddenAliases": [],
|
|
418
|
-
"id": "
|
|
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
|
+
},
|
|
523
|
+
"composer:init": {
|
|
524
|
+
"aliases": [],
|
|
525
|
+
"args": {},
|
|
526
|
+
"description": "Create a composer.json wired to WPackagist for installing WordPress.org plugins and themes",
|
|
527
|
+
"examples": [
|
|
528
|
+
"$ lps composer init",
|
|
529
|
+
"$ lps composer init --dry-run"
|
|
530
|
+
],
|
|
531
|
+
"flags": {
|
|
532
|
+
"dry-run": {
|
|
533
|
+
"char": "d",
|
|
534
|
+
"description": "Show what would change without making changes",
|
|
535
|
+
"name": "dry-run",
|
|
536
|
+
"allowNo": false,
|
|
537
|
+
"type": "boolean"
|
|
538
|
+
}
|
|
539
|
+
},
|
|
540
|
+
"hasDynamicHelp": false,
|
|
541
|
+
"hiddenAliases": [],
|
|
542
|
+
"id": "composer:init",
|
|
419
543
|
"pluginAlias": "@loopress/cli",
|
|
420
544
|
"pluginName": "@loopress/cli",
|
|
421
545
|
"pluginType": "core",
|
|
@@ -433,17 +557,17 @@
|
|
|
433
557
|
"relativePath": [
|
|
434
558
|
"dist",
|
|
435
559
|
"commands",
|
|
436
|
-
"
|
|
437
|
-
"
|
|
560
|
+
"composer",
|
|
561
|
+
"init.js"
|
|
438
562
|
]
|
|
439
563
|
},
|
|
440
|
-
"
|
|
564
|
+
"composer:pull": {
|
|
441
565
|
"aliases": [],
|
|
442
566
|
"args": {},
|
|
443
|
-
"description": "Pull
|
|
567
|
+
"description": "Pull composer.json and composer.lock from WordPress",
|
|
444
568
|
"examples": [
|
|
445
|
-
"$ lps
|
|
446
|
-
"$ lps
|
|
569
|
+
"$ lps composer pull",
|
|
570
|
+
"$ lps composer pull --dry-run"
|
|
447
571
|
],
|
|
448
572
|
"flags": {
|
|
449
573
|
"dry-run": {
|
|
@@ -456,7 +580,7 @@
|
|
|
456
580
|
},
|
|
457
581
|
"hasDynamicHelp": false,
|
|
458
582
|
"hiddenAliases": [],
|
|
459
|
-
"id": "
|
|
583
|
+
"id": "composer:pull",
|
|
460
584
|
"pluginAlias": "@loopress/cli",
|
|
461
585
|
"pluginName": "@loopress/cli",
|
|
462
586
|
"pluginType": "core",
|
|
@@ -474,17 +598,17 @@
|
|
|
474
598
|
"relativePath": [
|
|
475
599
|
"dist",
|
|
476
600
|
"commands",
|
|
477
|
-
"
|
|
601
|
+
"composer",
|
|
478
602
|
"pull.js"
|
|
479
603
|
]
|
|
480
604
|
},
|
|
481
|
-
"
|
|
605
|
+
"composer:push": {
|
|
482
606
|
"aliases": [],
|
|
483
607
|
"args": {},
|
|
484
|
-
"description": "Push
|
|
608
|
+
"description": "Push composer.json and composer.lock to WordPress and run composer install",
|
|
485
609
|
"examples": [
|
|
486
|
-
"$ lps
|
|
487
|
-
"$ lps
|
|
610
|
+
"$ lps composer push",
|
|
611
|
+
"$ lps composer push --dry-run"
|
|
488
612
|
],
|
|
489
613
|
"flags": {
|
|
490
614
|
"dry-run": {
|
|
@@ -497,7 +621,7 @@
|
|
|
497
621
|
},
|
|
498
622
|
"hasDynamicHelp": false,
|
|
499
623
|
"hiddenAliases": [],
|
|
500
|
-
"id": "
|
|
624
|
+
"id": "composer:push",
|
|
501
625
|
"pluginAlias": "@loopress/cli",
|
|
502
626
|
"pluginName": "@loopress/cli",
|
|
503
627
|
"pluginType": "core",
|
|
@@ -506,37 +630,36 @@
|
|
|
506
630
|
"relativePath": [
|
|
507
631
|
"dist",
|
|
508
632
|
"commands",
|
|
509
|
-
"
|
|
633
|
+
"composer",
|
|
510
634
|
"push.js"
|
|
511
635
|
]
|
|
512
636
|
},
|
|
513
|
-
"
|
|
637
|
+
"plugin:add": {
|
|
514
638
|
"aliases": [],
|
|
515
|
-
"args": {
|
|
516
|
-
|
|
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",
|
|
517
647
|
"examples": [
|
|
518
|
-
"$ lps
|
|
519
|
-
"$ lps
|
|
648
|
+
"$ lps plugin add woocommerce",
|
|
649
|
+
"$ lps plugin add contact-form-7 --dry-run"
|
|
520
650
|
],
|
|
521
651
|
"flags": {
|
|
522
|
-
"
|
|
523
|
-
"char": "
|
|
524
|
-
"description": "
|
|
525
|
-
"name": "
|
|
652
|
+
"dry-run": {
|
|
653
|
+
"char": "d",
|
|
654
|
+
"description": "Show what would change without making changes",
|
|
655
|
+
"name": "dry-run",
|
|
526
656
|
"allowNo": false,
|
|
527
657
|
"type": "boolean"
|
|
528
|
-
},
|
|
529
|
-
"post-type": {
|
|
530
|
-
"description": "Limit to specific post types",
|
|
531
|
-
"name": "post-type",
|
|
532
|
-
"hasDynamicHelp": false,
|
|
533
|
-
"multiple": true,
|
|
534
|
-
"type": "option"
|
|
535
658
|
}
|
|
536
659
|
},
|
|
537
660
|
"hasDynamicHelp": false,
|
|
538
661
|
"hiddenAliases": [],
|
|
539
|
-
"id": "
|
|
662
|
+
"id": "plugin:add",
|
|
540
663
|
"pluginAlias": "@loopress/cli",
|
|
541
664
|
"pluginName": "@loopress/cli",
|
|
542
665
|
"pluginType": "core",
|
|
@@ -554,22 +677,17 @@
|
|
|
554
677
|
"relativePath": [
|
|
555
678
|
"dist",
|
|
556
679
|
"commands",
|
|
557
|
-
"
|
|
558
|
-
"
|
|
680
|
+
"plugin",
|
|
681
|
+
"add.js"
|
|
559
682
|
]
|
|
560
683
|
},
|
|
561
|
-
"
|
|
684
|
+
"plugin:pull": {
|
|
562
685
|
"aliases": [],
|
|
563
|
-
"args": {
|
|
564
|
-
|
|
565
|
-
"description": "Path to SEO directory (overrides project config)",
|
|
566
|
-
"name": "path"
|
|
567
|
-
}
|
|
568
|
-
},
|
|
569
|
-
"description": "Pull SEO settings, post meta, and (if supported) redirects from WordPress",
|
|
686
|
+
"args": {},
|
|
687
|
+
"description": "Pull installed plugins from WordPress into loopress.json",
|
|
570
688
|
"examples": [
|
|
571
|
-
"$ lps
|
|
572
|
-
"$ lps
|
|
689
|
+
"$ lps plugin pull",
|
|
690
|
+
"$ lps plugin pull --dry-run"
|
|
573
691
|
],
|
|
574
692
|
"flags": {
|
|
575
693
|
"dry-run": {
|
|
@@ -578,18 +696,11 @@
|
|
|
578
696
|
"name": "dry-run",
|
|
579
697
|
"allowNo": false,
|
|
580
698
|
"type": "boolean"
|
|
581
|
-
},
|
|
582
|
-
"post-type": {
|
|
583
|
-
"description": "Limit post meta to specific post types",
|
|
584
|
-
"name": "post-type",
|
|
585
|
-
"hasDynamicHelp": false,
|
|
586
|
-
"multiple": true,
|
|
587
|
-
"type": "option"
|
|
588
699
|
}
|
|
589
700
|
},
|
|
590
701
|
"hasDynamicHelp": false,
|
|
591
702
|
"hiddenAliases": [],
|
|
592
|
-
"id": "
|
|
703
|
+
"id": "plugin:pull",
|
|
593
704
|
"pluginAlias": "@loopress/cli",
|
|
594
705
|
"pluginName": "@loopress/cli",
|
|
595
706
|
"pluginType": "core",
|
|
@@ -607,21 +718,17 @@
|
|
|
607
718
|
"relativePath": [
|
|
608
719
|
"dist",
|
|
609
720
|
"commands",
|
|
610
|
-
"
|
|
721
|
+
"plugin",
|
|
611
722
|
"pull.js"
|
|
612
723
|
]
|
|
613
724
|
},
|
|
614
|
-
"
|
|
725
|
+
"plugin:push": {
|
|
615
726
|
"aliases": [],
|
|
616
|
-
"args": {
|
|
617
|
-
|
|
618
|
-
"description": "Path to SEO directory (overrides project config)",
|
|
619
|
-
"name": "path"
|
|
620
|
-
}
|
|
621
|
-
},
|
|
622
|
-
"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.",
|
|
727
|
+
"args": {},
|
|
728
|
+
"description": "Push plugins to WordPress to match loopress.json",
|
|
623
729
|
"examples": [
|
|
624
|
-
"$ lps
|
|
730
|
+
"$ lps plugin push",
|
|
731
|
+
"$ lps plugin push --dry-run"
|
|
625
732
|
],
|
|
626
733
|
"flags": {
|
|
627
734
|
"dry-run": {
|
|
@@ -634,7 +741,7 @@
|
|
|
634
741
|
},
|
|
635
742
|
"hasDynamicHelp": false,
|
|
636
743
|
"hiddenAliases": [],
|
|
637
|
-
"id": "
|
|
744
|
+
"id": "plugin:push",
|
|
638
745
|
"pluginAlias": "@loopress/cli",
|
|
639
746
|
"pluginName": "@loopress/cli",
|
|
640
747
|
"pluginType": "core",
|
|
@@ -643,7 +750,7 @@
|
|
|
643
750
|
"relativePath": [
|
|
644
751
|
"dist",
|
|
645
752
|
"commands",
|
|
646
|
-
"
|
|
753
|
+
"plugin",
|
|
647
754
|
"push.js"
|
|
648
755
|
]
|
|
649
756
|
},
|
|
@@ -791,6 +898,143 @@
|
|
|
791
898
|
"switch.js"
|
|
792
899
|
]
|
|
793
900
|
},
|
|
901
|
+
"seo:list": {
|
|
902
|
+
"aliases": [],
|
|
903
|
+
"args": {},
|
|
904
|
+
"description": "List posts with SEO meta, and redirects if supported by the active SEO plugin, on WordPress",
|
|
905
|
+
"examples": [
|
|
906
|
+
"$ lps seo list",
|
|
907
|
+
"$ lps seo list --post-type post"
|
|
908
|
+
],
|
|
909
|
+
"flags": {
|
|
910
|
+
"json": {
|
|
911
|
+
"char": "j",
|
|
912
|
+
"description": "Output in JSON format",
|
|
913
|
+
"name": "json",
|
|
914
|
+
"allowNo": false,
|
|
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"
|
|
923
|
+
}
|
|
924
|
+
},
|
|
925
|
+
"hasDynamicHelp": false,
|
|
926
|
+
"hiddenAliases": [],
|
|
927
|
+
"id": "seo:list",
|
|
928
|
+
"pluginAlias": "@loopress/cli",
|
|
929
|
+
"pluginName": "@loopress/cli",
|
|
930
|
+
"pluginType": "core",
|
|
931
|
+
"strict": true,
|
|
932
|
+
"enableJsonFlag": false,
|
|
933
|
+
"dryRunFlag": {
|
|
934
|
+
"dry-run": {
|
|
935
|
+
"char": "d",
|
|
936
|
+
"description": "Show what would change without making changes",
|
|
937
|
+
"allowNo": false,
|
|
938
|
+
"type": "boolean"
|
|
939
|
+
}
|
|
940
|
+
},
|
|
941
|
+
"isESM": true,
|
|
942
|
+
"relativePath": [
|
|
943
|
+
"dist",
|
|
944
|
+
"commands",
|
|
945
|
+
"seo",
|
|
946
|
+
"list.js"
|
|
947
|
+
]
|
|
948
|
+
},
|
|
949
|
+
"seo:pull": {
|
|
950
|
+
"aliases": [],
|
|
951
|
+
"args": {
|
|
952
|
+
"path": {
|
|
953
|
+
"description": "Path to SEO directory (overrides project config)",
|
|
954
|
+
"name": "path"
|
|
955
|
+
}
|
|
956
|
+
},
|
|
957
|
+
"description": "Pull SEO settings, post meta, and (if supported) redirects from WordPress",
|
|
958
|
+
"examples": [
|
|
959
|
+
"$ lps seo pull",
|
|
960
|
+
"$ lps seo pull --post-type post --post-type page"
|
|
961
|
+
],
|
|
962
|
+
"flags": {
|
|
963
|
+
"dry-run": {
|
|
964
|
+
"char": "d",
|
|
965
|
+
"description": "Show what would change without making changes",
|
|
966
|
+
"name": "dry-run",
|
|
967
|
+
"allowNo": false,
|
|
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"
|
|
976
|
+
}
|
|
977
|
+
},
|
|
978
|
+
"hasDynamicHelp": false,
|
|
979
|
+
"hiddenAliases": [],
|
|
980
|
+
"id": "seo:pull",
|
|
981
|
+
"pluginAlias": "@loopress/cli",
|
|
982
|
+
"pluginName": "@loopress/cli",
|
|
983
|
+
"pluginType": "core",
|
|
984
|
+
"strict": true,
|
|
985
|
+
"enableJsonFlag": false,
|
|
986
|
+
"dryRunFlag": {
|
|
987
|
+
"dry-run": {
|
|
988
|
+
"char": "d",
|
|
989
|
+
"description": "Show what would change without making changes",
|
|
990
|
+
"allowNo": false,
|
|
991
|
+
"type": "boolean"
|
|
992
|
+
}
|
|
993
|
+
},
|
|
994
|
+
"isESM": true,
|
|
995
|
+
"relativePath": [
|
|
996
|
+
"dist",
|
|
997
|
+
"commands",
|
|
998
|
+
"seo",
|
|
999
|
+
"pull.js"
|
|
1000
|
+
]
|
|
1001
|
+
},
|
|
1002
|
+
"seo:push": {
|
|
1003
|
+
"aliases": [],
|
|
1004
|
+
"args": {
|
|
1005
|
+
"path": {
|
|
1006
|
+
"description": "Path to SEO directory (overrides project config)",
|
|
1007
|
+
"name": "path"
|
|
1008
|
+
}
|
|
1009
|
+
},
|
|
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.",
|
|
1011
|
+
"examples": [
|
|
1012
|
+
"$ lps seo push"
|
|
1013
|
+
],
|
|
1014
|
+
"flags": {
|
|
1015
|
+
"dry-run": {
|
|
1016
|
+
"char": "d",
|
|
1017
|
+
"description": "Show what would change without making changes",
|
|
1018
|
+
"name": "dry-run",
|
|
1019
|
+
"allowNo": false,
|
|
1020
|
+
"type": "boolean"
|
|
1021
|
+
}
|
|
1022
|
+
},
|
|
1023
|
+
"hasDynamicHelp": false,
|
|
1024
|
+
"hiddenAliases": [],
|
|
1025
|
+
"id": "seo:push",
|
|
1026
|
+
"pluginAlias": "@loopress/cli",
|
|
1027
|
+
"pluginName": "@loopress/cli",
|
|
1028
|
+
"pluginType": "core",
|
|
1029
|
+
"strict": true,
|
|
1030
|
+
"isESM": true,
|
|
1031
|
+
"relativePath": [
|
|
1032
|
+
"dist",
|
|
1033
|
+
"commands",
|
|
1034
|
+
"seo",
|
|
1035
|
+
"push.js"
|
|
1036
|
+
]
|
|
1037
|
+
},
|
|
794
1038
|
"snippet:list": {
|
|
795
1039
|
"aliases": [],
|
|
796
1040
|
"args": {},
|
|
@@ -993,5 +1237,5 @@
|
|
|
993
1237
|
]
|
|
994
1238
|
}
|
|
995
1239
|
},
|
|
996
|
-
"version": "0.
|
|
1240
|
+
"version": "0.18.0"
|
|
997
1241
|
}
|