@loopress/cli 0.22.0 → 0.23.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 +335 -58
- package/dist/commands/app/list.d.ts +17 -0
- package/dist/commands/app/list.js +35 -0
- package/dist/commands/app/pull.d.ts +27 -0
- package/dist/commands/app/pull.js +94 -0
- package/dist/commands/app/push.d.ts +28 -0
- package/dist/commands/app/push.js +130 -0
- package/dist/commands/app/remove.d.ts +20 -0
- package/dist/commands/app/remove.js +42 -0
- package/dist/commands/composer/push.d.ts +1 -0
- package/dist/commands/composer/push.js +43 -19
- package/dist/commands/init.js +1 -0
- package/dist/commands/plugin/add.d.ts +1 -0
- package/dist/commands/plugin/add.js +18 -8
- package/dist/commands/plugin/audit.d.ts +30 -0
- package/dist/commands/plugin/audit.js +138 -0
- package/dist/commands/plugin/pull.d.ts +1 -2
- package/dist/commands/plugin/pull.js +11 -11
- package/dist/commands/plugin/push.d.ts +14 -8
- package/dist/commands/plugin/push.js +168 -67
- package/dist/commands/plugin/status.d.ts +22 -0
- package/dist/commands/plugin/status.js +65 -0
- package/dist/commands/theme/add.d.ts +13 -0
- package/dist/commands/theme/add.js +35 -0
- package/dist/commands/theme/pull.d.ts +21 -0
- package/dist/commands/theme/pull.js +37 -0
- package/dist/commands/theme/push.d.ts +23 -0
- package/dist/commands/theme/push.js +130 -0
- package/dist/commands/theme/status.d.ts +20 -0
- package/dist/commands/theme/status.js +51 -0
- package/dist/lib/app-manifest.d.ts +36 -0
- package/dist/lib/app-manifest.js +162 -0
- package/dist/lib/base.d.ts +1 -0
- package/dist/lib/base.js +5 -0
- package/dist/types/plugin.d.ts +1 -0
- package/dist/types/project-config.generated.d.ts +11 -1
- package/dist/utils/plugin-sync.d.ts +26 -0
- package/dist/utils/plugin-sync.js +31 -0
- package/dist/utils/plugins.d.ts +15 -2
- package/dist/utils/plugins.js +57 -12
- package/dist/utils/themes.d.ts +30 -0
- package/dist/utils/themes.js +29 -0
- package/dist/utils/version.d.ts +2 -0
- package/dist/utils/version.js +21 -0
- package/oclif.manifest.json +714 -68
- package/package.json +22 -18
- package/schemas/project-config.schema.json +22 -4
package/oclif.manifest.json
CHANGED
|
@@ -857,6 +857,269 @@
|
|
|
857
857
|
"push.js"
|
|
858
858
|
]
|
|
859
859
|
},
|
|
860
|
+
"app:list": {
|
|
861
|
+
"aliases": [],
|
|
862
|
+
"args": {},
|
|
863
|
+
"description": "List single-page apps deployed to WordPress",
|
|
864
|
+
"examples": [
|
|
865
|
+
"$ lps app list"
|
|
866
|
+
],
|
|
867
|
+
"flags": {
|
|
868
|
+
"json": {
|
|
869
|
+
"description": "Format output as json.",
|
|
870
|
+
"helpGroup": "GLOBAL",
|
|
871
|
+
"name": "json",
|
|
872
|
+
"allowNo": false,
|
|
873
|
+
"type": "boolean"
|
|
874
|
+
},
|
|
875
|
+
"env": {
|
|
876
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
877
|
+
"name": "env",
|
|
878
|
+
"hasDynamicHelp": false,
|
|
879
|
+
"multiple": false,
|
|
880
|
+
"type": "option"
|
|
881
|
+
}
|
|
882
|
+
},
|
|
883
|
+
"hasDynamicHelp": false,
|
|
884
|
+
"hiddenAliases": [],
|
|
885
|
+
"id": "app:list",
|
|
886
|
+
"pluginAlias": "@loopress/cli",
|
|
887
|
+
"pluginName": "@loopress/cli",
|
|
888
|
+
"pluginType": "core",
|
|
889
|
+
"strict": true,
|
|
890
|
+
"enableJsonFlag": true,
|
|
891
|
+
"dryRunFlag": {
|
|
892
|
+
"dry-run": {
|
|
893
|
+
"char": "d",
|
|
894
|
+
"description": "Show what would change without making changes",
|
|
895
|
+
"allowNo": false,
|
|
896
|
+
"type": "boolean"
|
|
897
|
+
}
|
|
898
|
+
},
|
|
899
|
+
"yesFlag": {
|
|
900
|
+
"yes": {
|
|
901
|
+
"char": "y",
|
|
902
|
+
"description": "Answer yes to confirmation prompts",
|
|
903
|
+
"allowNo": false,
|
|
904
|
+
"type": "boolean"
|
|
905
|
+
}
|
|
906
|
+
},
|
|
907
|
+
"isESM": true,
|
|
908
|
+
"relativePath": [
|
|
909
|
+
"dist",
|
|
910
|
+
"commands",
|
|
911
|
+
"app",
|
|
912
|
+
"list.js"
|
|
913
|
+
]
|
|
914
|
+
},
|
|
915
|
+
"app:pull": {
|
|
916
|
+
"aliases": [],
|
|
917
|
+
"args": {
|
|
918
|
+
"path": {
|
|
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",
|
|
924
|
+
"examples": [
|
|
925
|
+
"$ lps app pull"
|
|
926
|
+
],
|
|
927
|
+
"flags": {
|
|
928
|
+
"json": {
|
|
929
|
+
"description": "Format output as json.",
|
|
930
|
+
"helpGroup": "GLOBAL",
|
|
931
|
+
"name": "json",
|
|
932
|
+
"allowNo": false,
|
|
933
|
+
"type": "boolean"
|
|
934
|
+
},
|
|
935
|
+
"env": {
|
|
936
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
937
|
+
"name": "env",
|
|
938
|
+
"hasDynamicHelp": false,
|
|
939
|
+
"multiple": false,
|
|
940
|
+
"type": "option"
|
|
941
|
+
},
|
|
942
|
+
"dry-run": {
|
|
943
|
+
"char": "d",
|
|
944
|
+
"description": "Show what would change without making changes",
|
|
945
|
+
"name": "dry-run",
|
|
946
|
+
"allowNo": false,
|
|
947
|
+
"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
|
+
}
|
|
956
|
+
},
|
|
957
|
+
"hasDynamicHelp": false,
|
|
958
|
+
"hiddenAliases": [],
|
|
959
|
+
"id": "app:pull",
|
|
960
|
+
"pluginAlias": "@loopress/cli",
|
|
961
|
+
"pluginName": "@loopress/cli",
|
|
962
|
+
"pluginType": "core",
|
|
963
|
+
"strict": true,
|
|
964
|
+
"enableJsonFlag": true,
|
|
965
|
+
"dryRunFlag": {
|
|
966
|
+
"dry-run": {
|
|
967
|
+
"char": "d",
|
|
968
|
+
"description": "Show what would change without making changes",
|
|
969
|
+
"allowNo": false,
|
|
970
|
+
"type": "boolean"
|
|
971
|
+
}
|
|
972
|
+
},
|
|
973
|
+
"yesFlag": {
|
|
974
|
+
"yes": {
|
|
975
|
+
"char": "y",
|
|
976
|
+
"description": "Answer yes to confirmation prompts",
|
|
977
|
+
"allowNo": false,
|
|
978
|
+
"type": "boolean"
|
|
979
|
+
}
|
|
980
|
+
},
|
|
981
|
+
"isESM": true,
|
|
982
|
+
"relativePath": [
|
|
983
|
+
"dist",
|
|
984
|
+
"commands",
|
|
985
|
+
"app",
|
|
986
|
+
"pull.js"
|
|
987
|
+
]
|
|
988
|
+
},
|
|
989
|
+
"app:push": {
|
|
990
|
+
"aliases": [],
|
|
991
|
+
"args": {
|
|
992
|
+
"name": {
|
|
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.",
|
|
998
|
+
"examples": [
|
|
999
|
+
"$ lps app push",
|
|
1000
|
+
"$ lps app push search"
|
|
1001
|
+
],
|
|
1002
|
+
"flags": {
|
|
1003
|
+
"json": {
|
|
1004
|
+
"description": "Format output as json.",
|
|
1005
|
+
"helpGroup": "GLOBAL",
|
|
1006
|
+
"name": "json",
|
|
1007
|
+
"allowNo": false,
|
|
1008
|
+
"type": "boolean"
|
|
1009
|
+
},
|
|
1010
|
+
"env": {
|
|
1011
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
1012
|
+
"name": "env",
|
|
1013
|
+
"hasDynamicHelp": false,
|
|
1014
|
+
"multiple": false,
|
|
1015
|
+
"type": "option"
|
|
1016
|
+
},
|
|
1017
|
+
"dry-run": {
|
|
1018
|
+
"char": "d",
|
|
1019
|
+
"description": "Show what would change without making changes",
|
|
1020
|
+
"name": "dry-run",
|
|
1021
|
+
"allowNo": false,
|
|
1022
|
+
"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
|
+
}
|
|
1031
|
+
},
|
|
1032
|
+
"hasDynamicHelp": false,
|
|
1033
|
+
"hiddenAliases": [],
|
|
1034
|
+
"id": "app:push",
|
|
1035
|
+
"pluginAlias": "@loopress/cli",
|
|
1036
|
+
"pluginName": "@loopress/cli",
|
|
1037
|
+
"pluginType": "core",
|
|
1038
|
+
"strict": true,
|
|
1039
|
+
"enableJsonFlag": true,
|
|
1040
|
+
"isESM": true,
|
|
1041
|
+
"relativePath": [
|
|
1042
|
+
"dist",
|
|
1043
|
+
"commands",
|
|
1044
|
+
"app",
|
|
1045
|
+
"push.js"
|
|
1046
|
+
]
|
|
1047
|
+
},
|
|
1048
|
+
"app:remove": {
|
|
1049
|
+
"aliases": [],
|
|
1050
|
+
"args": {
|
|
1051
|
+
"name": {
|
|
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.",
|
|
1058
|
+
"examples": [
|
|
1059
|
+
"$ lps app remove search"
|
|
1060
|
+
],
|
|
1061
|
+
"flags": {
|
|
1062
|
+
"json": {
|
|
1063
|
+
"description": "Format output as json.",
|
|
1064
|
+
"helpGroup": "GLOBAL",
|
|
1065
|
+
"name": "json",
|
|
1066
|
+
"allowNo": false,
|
|
1067
|
+
"type": "boolean"
|
|
1068
|
+
},
|
|
1069
|
+
"env": {
|
|
1070
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
1071
|
+
"name": "env",
|
|
1072
|
+
"hasDynamicHelp": false,
|
|
1073
|
+
"multiple": false,
|
|
1074
|
+
"type": "option"
|
|
1075
|
+
},
|
|
1076
|
+
"dry-run": {
|
|
1077
|
+
"char": "d",
|
|
1078
|
+
"description": "Show what would change without making changes",
|
|
1079
|
+
"name": "dry-run",
|
|
1080
|
+
"allowNo": false,
|
|
1081
|
+
"type": "boolean"
|
|
1082
|
+
},
|
|
1083
|
+
"yes": {
|
|
1084
|
+
"char": "y",
|
|
1085
|
+
"description": "Answer yes to confirmation prompts",
|
|
1086
|
+
"name": "yes",
|
|
1087
|
+
"allowNo": false,
|
|
1088
|
+
"type": "boolean"
|
|
1089
|
+
}
|
|
1090
|
+
},
|
|
1091
|
+
"hasDynamicHelp": false,
|
|
1092
|
+
"hiddenAliases": [],
|
|
1093
|
+
"id": "app:remove",
|
|
1094
|
+
"pluginAlias": "@loopress/cli",
|
|
1095
|
+
"pluginName": "@loopress/cli",
|
|
1096
|
+
"pluginType": "core",
|
|
1097
|
+
"strict": true,
|
|
1098
|
+
"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
|
+
"isESM": true,
|
|
1116
|
+
"relativePath": [
|
|
1117
|
+
"dist",
|
|
1118
|
+
"commands",
|
|
1119
|
+
"app",
|
|
1120
|
+
"remove.js"
|
|
1121
|
+
]
|
|
1122
|
+
},
|
|
860
1123
|
"composer:init": {
|
|
861
1124
|
"aliases": [],
|
|
862
1125
|
"args": {},
|
|
@@ -979,7 +1242,7 @@
|
|
|
979
1242
|
"composer:push": {
|
|
980
1243
|
"aliases": [],
|
|
981
1244
|
"args": {},
|
|
982
|
-
"description": "Push composer.json and composer.lock to WordPress and run
|
|
1245
|
+
"description": "Push composer.json (and composer.lock, if present) to WordPress and run Composer",
|
|
983
1246
|
"examples": [
|
|
984
1247
|
"$ lps composer push",
|
|
985
1248
|
"$ lps composer push --dry-run"
|
|
@@ -1012,6 +1275,12 @@
|
|
|
1012
1275
|
"name": "yes",
|
|
1013
1276
|
"allowNo": false,
|
|
1014
1277
|
"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"
|
|
1015
1284
|
}
|
|
1016
1285
|
},
|
|
1017
1286
|
"hasDynamicHelp": false,
|
|
@@ -1202,12 +1471,82 @@
|
|
|
1202
1471
|
"push.js"
|
|
1203
1472
|
]
|
|
1204
1473
|
},
|
|
1205
|
-
"
|
|
1474
|
+
"plugin:add": {
|
|
1475
|
+
"aliases": [],
|
|
1476
|
+
"args": {
|
|
1477
|
+
"slug": {
|
|
1478
|
+
"description": "Plugin slug on WordPress.org",
|
|
1479
|
+
"name": "slug",
|
|
1480
|
+
"required": true
|
|
1481
|
+
}
|
|
1482
|
+
},
|
|
1483
|
+
"description": "Add a WordPress.org plugin to loopress.json",
|
|
1484
|
+
"examples": [
|
|
1485
|
+
"$ lps plugin add woocommerce",
|
|
1486
|
+
"$ lps plugin add woocommerce --version 9.4.2",
|
|
1487
|
+
"$ lps plugin add contact-form-7 --dry-run"
|
|
1488
|
+
],
|
|
1489
|
+
"flags": {
|
|
1490
|
+
"env": {
|
|
1491
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
1492
|
+
"name": "env",
|
|
1493
|
+
"hasDynamicHelp": false,
|
|
1494
|
+
"multiple": false,
|
|
1495
|
+
"type": "option"
|
|
1496
|
+
},
|
|
1497
|
+
"dry-run": {
|
|
1498
|
+
"char": "d",
|
|
1499
|
+
"description": "Show what would change without making changes",
|
|
1500
|
+
"name": "dry-run",
|
|
1501
|
+
"allowNo": false,
|
|
1502
|
+
"type": "boolean"
|
|
1503
|
+
},
|
|
1504
|
+
"version": {
|
|
1505
|
+
"description": "Exact version to pin (default: \"latest\", tracked on every push)",
|
|
1506
|
+
"name": "version",
|
|
1507
|
+
"hasDynamicHelp": false,
|
|
1508
|
+
"multiple": false,
|
|
1509
|
+
"type": "option"
|
|
1510
|
+
}
|
|
1511
|
+
},
|
|
1512
|
+
"hasDynamicHelp": false,
|
|
1513
|
+
"hiddenAliases": [],
|
|
1514
|
+
"id": "plugin:add",
|
|
1515
|
+
"pluginAlias": "@loopress/cli",
|
|
1516
|
+
"pluginName": "@loopress/cli",
|
|
1517
|
+
"pluginType": "core",
|
|
1518
|
+
"strict": true,
|
|
1519
|
+
"enableJsonFlag": false,
|
|
1520
|
+
"dryRunFlag": {
|
|
1521
|
+
"dry-run": {
|
|
1522
|
+
"char": "d",
|
|
1523
|
+
"description": "Show what would change without making changes",
|
|
1524
|
+
"allowNo": false,
|
|
1525
|
+
"type": "boolean"
|
|
1526
|
+
}
|
|
1527
|
+
},
|
|
1528
|
+
"yesFlag": {
|
|
1529
|
+
"yes": {
|
|
1530
|
+
"char": "y",
|
|
1531
|
+
"description": "Answer yes to confirmation prompts",
|
|
1532
|
+
"allowNo": false,
|
|
1533
|
+
"type": "boolean"
|
|
1534
|
+
}
|
|
1535
|
+
},
|
|
1536
|
+
"isESM": true,
|
|
1537
|
+
"relativePath": [
|
|
1538
|
+
"dist",
|
|
1539
|
+
"commands",
|
|
1540
|
+
"plugin",
|
|
1541
|
+
"add.js"
|
|
1542
|
+
]
|
|
1543
|
+
},
|
|
1544
|
+
"plugin:audit": {
|
|
1206
1545
|
"aliases": [],
|
|
1207
1546
|
"args": {},
|
|
1208
|
-
"description": "
|
|
1547
|
+
"description": "Check the plugins in loopress.json for known vulnerabilities and health issues",
|
|
1209
1548
|
"examples": [
|
|
1210
|
-
"$ lps
|
|
1549
|
+
"$ lps plugin audit"
|
|
1211
1550
|
],
|
|
1212
1551
|
"flags": {
|
|
1213
1552
|
"json": {
|
|
@@ -1227,7 +1566,7 @@
|
|
|
1227
1566
|
},
|
|
1228
1567
|
"hasDynamicHelp": false,
|
|
1229
1568
|
"hiddenAliases": [],
|
|
1230
|
-
"id": "
|
|
1569
|
+
"id": "plugin:audit",
|
|
1231
1570
|
"pluginAlias": "@loopress/cli",
|
|
1232
1571
|
"pluginName": "@loopress/cli",
|
|
1233
1572
|
"pluginType": "core",
|
|
@@ -1253,21 +1592,17 @@
|
|
|
1253
1592
|
"relativePath": [
|
|
1254
1593
|
"dist",
|
|
1255
1594
|
"commands",
|
|
1256
|
-
"
|
|
1257
|
-
"
|
|
1595
|
+
"plugin",
|
|
1596
|
+
"audit.js"
|
|
1258
1597
|
]
|
|
1259
1598
|
},
|
|
1260
|
-
"
|
|
1599
|
+
"plugin:pull": {
|
|
1261
1600
|
"aliases": [],
|
|
1262
|
-
"args": {
|
|
1263
|
-
|
|
1264
|
-
"description": "Path to pages directory (overrides project config)",
|
|
1265
|
-
"name": "path"
|
|
1266
|
-
}
|
|
1267
|
-
},
|
|
1268
|
-
"description": "Pull pages from WordPress",
|
|
1601
|
+
"args": {},
|
|
1602
|
+
"description": "Pull installed plugins from WordPress into loopress.json, pinned to their live versions",
|
|
1269
1603
|
"examples": [
|
|
1270
|
-
"$ lps
|
|
1604
|
+
"$ lps plugin pull",
|
|
1605
|
+
"$ lps plugin pull --dry-run"
|
|
1271
1606
|
],
|
|
1272
1607
|
"flags": {
|
|
1273
1608
|
"json": {
|
|
@@ -1290,18 +1625,11 @@
|
|
|
1290
1625
|
"name": "dry-run",
|
|
1291
1626
|
"allowNo": false,
|
|
1292
1627
|
"type": "boolean"
|
|
1293
|
-
},
|
|
1294
|
-
"yes": {
|
|
1295
|
-
"char": "y",
|
|
1296
|
-
"description": "Answer yes to confirmation prompts",
|
|
1297
|
-
"name": "yes",
|
|
1298
|
-
"allowNo": false,
|
|
1299
|
-
"type": "boolean"
|
|
1300
1628
|
}
|
|
1301
1629
|
},
|
|
1302
1630
|
"hasDynamicHelp": false,
|
|
1303
1631
|
"hiddenAliases": [],
|
|
1304
|
-
"id": "
|
|
1632
|
+
"id": "plugin:pull",
|
|
1305
1633
|
"pluginAlias": "@loopress/cli",
|
|
1306
1634
|
"pluginName": "@loopress/cli",
|
|
1307
1635
|
"pluginType": "core",
|
|
@@ -1327,21 +1655,18 @@
|
|
|
1327
1655
|
"relativePath": [
|
|
1328
1656
|
"dist",
|
|
1329
1657
|
"commands",
|
|
1330
|
-
"
|
|
1658
|
+
"plugin",
|
|
1331
1659
|
"pull.js"
|
|
1332
1660
|
]
|
|
1333
1661
|
},
|
|
1334
|
-
"
|
|
1662
|
+
"plugin:push": {
|
|
1335
1663
|
"aliases": [],
|
|
1336
|
-
"args": {
|
|
1337
|
-
|
|
1338
|
-
"description": "Path to pages directory (overrides project config)",
|
|
1339
|
-
"name": "path"
|
|
1340
|
-
}
|
|
1341
|
-
},
|
|
1342
|
-
"description": "Push pages to WordPress. Local files created or updated remotely are renamed on disk to the `<id>-<slug>` convention.",
|
|
1664
|
+
"args": {},
|
|
1665
|
+
"description": "Install plugins on WordPress to match loopress.json, pinned via Composer + WPackagist",
|
|
1343
1666
|
"examples": [
|
|
1344
|
-
"$ lps
|
|
1667
|
+
"$ lps plugin push",
|
|
1668
|
+
"$ lps plugin push --dry-run",
|
|
1669
|
+
"$ lps plugin push --force --prune"
|
|
1345
1670
|
],
|
|
1346
1671
|
"flags": {
|
|
1347
1672
|
"json": {
|
|
@@ -1371,11 +1696,23 @@
|
|
|
1371
1696
|
"name": "yes",
|
|
1372
1697
|
"allowNo": false,
|
|
1373
1698
|
"type": "boolean"
|
|
1699
|
+
},
|
|
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
|
+
"prune": {
|
|
1707
|
+
"description": "Deactivate plugins that are active on the site but absent from loopress.json",
|
|
1708
|
+
"name": "prune",
|
|
1709
|
+
"allowNo": false,
|
|
1710
|
+
"type": "boolean"
|
|
1374
1711
|
}
|
|
1375
1712
|
},
|
|
1376
1713
|
"hasDynamicHelp": false,
|
|
1377
1714
|
"hiddenAliases": [],
|
|
1378
|
-
"id": "
|
|
1715
|
+
"id": "plugin:push",
|
|
1379
1716
|
"pluginAlias": "@loopress/cli",
|
|
1380
1717
|
"pluginName": "@loopress/cli",
|
|
1381
1718
|
"pluginType": "core",
|
|
@@ -1385,48 +1722,96 @@
|
|
|
1385
1722
|
"relativePath": [
|
|
1386
1723
|
"dist",
|
|
1387
1724
|
"commands",
|
|
1388
|
-
"
|
|
1725
|
+
"plugin",
|
|
1389
1726
|
"push.js"
|
|
1390
1727
|
]
|
|
1391
1728
|
},
|
|
1392
|
-
"plugin:
|
|
1729
|
+
"plugin:status": {
|
|
1393
1730
|
"aliases": [],
|
|
1394
|
-
"args": {
|
|
1395
|
-
|
|
1396
|
-
"description": "Plugin slug on WordPress.org",
|
|
1397
|
-
"name": "slug",
|
|
1398
|
-
"required": true
|
|
1399
|
-
}
|
|
1400
|
-
},
|
|
1401
|
-
"description": "Add a WordPress.org plugin to loopress.json",
|
|
1731
|
+
"args": {},
|
|
1732
|
+
"description": "Compare the plugins on WordPress against loopress.json and report drift",
|
|
1402
1733
|
"examples": [
|
|
1403
|
-
"$ lps plugin
|
|
1404
|
-
"$ lps plugin add contact-form-7 --dry-run"
|
|
1734
|
+
"$ lps plugin status"
|
|
1405
1735
|
],
|
|
1406
1736
|
"flags": {
|
|
1737
|
+
"json": {
|
|
1738
|
+
"description": "Format output as json.",
|
|
1739
|
+
"helpGroup": "GLOBAL",
|
|
1740
|
+
"name": "json",
|
|
1741
|
+
"allowNo": false,
|
|
1742
|
+
"type": "boolean"
|
|
1743
|
+
},
|
|
1407
1744
|
"env": {
|
|
1408
1745
|
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
1409
1746
|
"name": "env",
|
|
1410
1747
|
"hasDynamicHelp": false,
|
|
1411
1748
|
"multiple": false,
|
|
1412
1749
|
"type": "option"
|
|
1413
|
-
}
|
|
1750
|
+
}
|
|
1751
|
+
},
|
|
1752
|
+
"hasDynamicHelp": false,
|
|
1753
|
+
"hiddenAliases": [],
|
|
1754
|
+
"id": "plugin:status",
|
|
1755
|
+
"pluginAlias": "@loopress/cli",
|
|
1756
|
+
"pluginName": "@loopress/cli",
|
|
1757
|
+
"pluginType": "core",
|
|
1758
|
+
"strict": true,
|
|
1759
|
+
"enableJsonFlag": true,
|
|
1760
|
+
"dryRunFlag": {
|
|
1414
1761
|
"dry-run": {
|
|
1415
1762
|
"char": "d",
|
|
1416
1763
|
"description": "Show what would change without making changes",
|
|
1417
|
-
"name": "dry-run",
|
|
1418
1764
|
"allowNo": false,
|
|
1419
1765
|
"type": "boolean"
|
|
1420
1766
|
}
|
|
1421
1767
|
},
|
|
1768
|
+
"yesFlag": {
|
|
1769
|
+
"yes": {
|
|
1770
|
+
"char": "y",
|
|
1771
|
+
"description": "Answer yes to confirmation prompts",
|
|
1772
|
+
"allowNo": false,
|
|
1773
|
+
"type": "boolean"
|
|
1774
|
+
}
|
|
1775
|
+
},
|
|
1776
|
+
"isESM": true,
|
|
1777
|
+
"relativePath": [
|
|
1778
|
+
"dist",
|
|
1779
|
+
"commands",
|
|
1780
|
+
"plugin",
|
|
1781
|
+
"status.js"
|
|
1782
|
+
]
|
|
1783
|
+
},
|
|
1784
|
+
"page:list": {
|
|
1785
|
+
"aliases": [],
|
|
1786
|
+
"args": {},
|
|
1787
|
+
"description": "List pages from WordPress",
|
|
1788
|
+
"examples": [
|
|
1789
|
+
"$ lps page list"
|
|
1790
|
+
],
|
|
1791
|
+
"flags": {
|
|
1792
|
+
"json": {
|
|
1793
|
+
"description": "Format output as json.",
|
|
1794
|
+
"helpGroup": "GLOBAL",
|
|
1795
|
+
"name": "json",
|
|
1796
|
+
"allowNo": false,
|
|
1797
|
+
"type": "boolean"
|
|
1798
|
+
},
|
|
1799
|
+
"env": {
|
|
1800
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
1801
|
+
"name": "env",
|
|
1802
|
+
"hasDynamicHelp": false,
|
|
1803
|
+
"multiple": false,
|
|
1804
|
+
"type": "option"
|
|
1805
|
+
}
|
|
1806
|
+
},
|
|
1422
1807
|
"hasDynamicHelp": false,
|
|
1423
1808
|
"hiddenAliases": [],
|
|
1424
|
-
"id": "
|
|
1809
|
+
"id": "page:list",
|
|
1425
1810
|
"pluginAlias": "@loopress/cli",
|
|
1426
1811
|
"pluginName": "@loopress/cli",
|
|
1427
1812
|
"pluginType": "core",
|
|
1428
1813
|
"strict": true,
|
|
1429
|
-
"enableJsonFlag":
|
|
1814
|
+
"enableJsonFlag": true,
|
|
1430
1815
|
"dryRunFlag": {
|
|
1431
1816
|
"dry-run": {
|
|
1432
1817
|
"char": "d",
|
|
@@ -1447,17 +1832,21 @@
|
|
|
1447
1832
|
"relativePath": [
|
|
1448
1833
|
"dist",
|
|
1449
1834
|
"commands",
|
|
1450
|
-
"
|
|
1451
|
-
"
|
|
1835
|
+
"page",
|
|
1836
|
+
"list.js"
|
|
1452
1837
|
]
|
|
1453
1838
|
},
|
|
1454
|
-
"
|
|
1839
|
+
"page:pull": {
|
|
1455
1840
|
"aliases": [],
|
|
1456
|
-
"args": {
|
|
1457
|
-
|
|
1841
|
+
"args": {
|
|
1842
|
+
"path": {
|
|
1843
|
+
"description": "Path to pages directory (overrides project config)",
|
|
1844
|
+
"name": "path"
|
|
1845
|
+
}
|
|
1846
|
+
},
|
|
1847
|
+
"description": "Pull pages from WordPress",
|
|
1458
1848
|
"examples": [
|
|
1459
|
-
"$ lps
|
|
1460
|
-
"$ lps plugin pull --dry-run"
|
|
1849
|
+
"$ lps page pull"
|
|
1461
1850
|
],
|
|
1462
1851
|
"flags": {
|
|
1463
1852
|
"json": {
|
|
@@ -1480,11 +1869,18 @@
|
|
|
1480
1869
|
"name": "dry-run",
|
|
1481
1870
|
"allowNo": false,
|
|
1482
1871
|
"type": "boolean"
|
|
1872
|
+
},
|
|
1873
|
+
"yes": {
|
|
1874
|
+
"char": "y",
|
|
1875
|
+
"description": "Answer yes to confirmation prompts",
|
|
1876
|
+
"name": "yes",
|
|
1877
|
+
"allowNo": false,
|
|
1878
|
+
"type": "boolean"
|
|
1483
1879
|
}
|
|
1484
1880
|
},
|
|
1485
1881
|
"hasDynamicHelp": false,
|
|
1486
1882
|
"hiddenAliases": [],
|
|
1487
|
-
"id": "
|
|
1883
|
+
"id": "page:pull",
|
|
1488
1884
|
"pluginAlias": "@loopress/cli",
|
|
1489
1885
|
"pluginName": "@loopress/cli",
|
|
1490
1886
|
"pluginType": "core",
|
|
@@ -1510,17 +1906,21 @@
|
|
|
1510
1906
|
"relativePath": [
|
|
1511
1907
|
"dist",
|
|
1512
1908
|
"commands",
|
|
1513
|
-
"
|
|
1909
|
+
"page",
|
|
1514
1910
|
"pull.js"
|
|
1515
1911
|
]
|
|
1516
1912
|
},
|
|
1517
|
-
"
|
|
1913
|
+
"page:push": {
|
|
1518
1914
|
"aliases": [],
|
|
1519
|
-
"args": {
|
|
1520
|
-
|
|
1915
|
+
"args": {
|
|
1916
|
+
"path": {
|
|
1917
|
+
"description": "Path to pages directory (overrides project config)",
|
|
1918
|
+
"name": "path"
|
|
1919
|
+
}
|
|
1920
|
+
},
|
|
1921
|
+
"description": "Push pages to WordPress. Local files created or updated remotely are renamed on disk to the `<id>-<slug>` convention.",
|
|
1521
1922
|
"examples": [
|
|
1522
|
-
"$ lps
|
|
1523
|
-
"$ lps plugin push --dry-run"
|
|
1923
|
+
"$ lps page push"
|
|
1524
1924
|
],
|
|
1525
1925
|
"flags": {
|
|
1526
1926
|
"json": {
|
|
@@ -1554,7 +1954,7 @@
|
|
|
1554
1954
|
},
|
|
1555
1955
|
"hasDynamicHelp": false,
|
|
1556
1956
|
"hiddenAliases": [],
|
|
1557
|
-
"id": "
|
|
1957
|
+
"id": "page:push",
|
|
1558
1958
|
"pluginAlias": "@loopress/cli",
|
|
1559
1959
|
"pluginName": "@loopress/cli",
|
|
1560
1960
|
"pluginType": "core",
|
|
@@ -1564,7 +1964,7 @@
|
|
|
1564
1964
|
"relativePath": [
|
|
1565
1965
|
"dist",
|
|
1566
1966
|
"commands",
|
|
1567
|
-
"
|
|
1967
|
+
"page",
|
|
1568
1968
|
"push.js"
|
|
1569
1969
|
]
|
|
1570
1970
|
},
|
|
@@ -2231,7 +2631,253 @@
|
|
|
2231
2631
|
"telemetry",
|
|
2232
2632
|
"enable.js"
|
|
2233
2633
|
]
|
|
2634
|
+
},
|
|
2635
|
+
"theme:add": {
|
|
2636
|
+
"aliases": [],
|
|
2637
|
+
"args": {
|
|
2638
|
+
"slug": {
|
|
2639
|
+
"description": "Theme slug on WordPress.org",
|
|
2640
|
+
"name": "slug",
|
|
2641
|
+
"required": true
|
|
2642
|
+
}
|
|
2643
|
+
},
|
|
2644
|
+
"description": "Add a WordPress.org theme to loopress.json",
|
|
2645
|
+
"examples": [
|
|
2646
|
+
"$ lps theme add generatepress",
|
|
2647
|
+
"$ lps theme add generatepress --version 3.4.0"
|
|
2648
|
+
],
|
|
2649
|
+
"flags": {
|
|
2650
|
+
"env": {
|
|
2651
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
2652
|
+
"name": "env",
|
|
2653
|
+
"hasDynamicHelp": false,
|
|
2654
|
+
"multiple": false,
|
|
2655
|
+
"type": "option"
|
|
2656
|
+
},
|
|
2657
|
+
"dry-run": {
|
|
2658
|
+
"char": "d",
|
|
2659
|
+
"description": "Show what would change without making changes",
|
|
2660
|
+
"name": "dry-run",
|
|
2661
|
+
"allowNo": false,
|
|
2662
|
+
"type": "boolean"
|
|
2663
|
+
},
|
|
2664
|
+
"version": {
|
|
2665
|
+
"description": "Exact version to pin (default: \"latest\")",
|
|
2666
|
+
"name": "version",
|
|
2667
|
+
"hasDynamicHelp": false,
|
|
2668
|
+
"multiple": false,
|
|
2669
|
+
"type": "option"
|
|
2670
|
+
}
|
|
2671
|
+
},
|
|
2672
|
+
"hasDynamicHelp": false,
|
|
2673
|
+
"hiddenAliases": [],
|
|
2674
|
+
"id": "theme:add",
|
|
2675
|
+
"pluginAlias": "@loopress/cli",
|
|
2676
|
+
"pluginName": "@loopress/cli",
|
|
2677
|
+
"pluginType": "core",
|
|
2678
|
+
"strict": true,
|
|
2679
|
+
"enableJsonFlag": false,
|
|
2680
|
+
"dryRunFlag": {
|
|
2681
|
+
"dry-run": {
|
|
2682
|
+
"char": "d",
|
|
2683
|
+
"description": "Show what would change without making changes",
|
|
2684
|
+
"allowNo": false,
|
|
2685
|
+
"type": "boolean"
|
|
2686
|
+
}
|
|
2687
|
+
},
|
|
2688
|
+
"yesFlag": {
|
|
2689
|
+
"yes": {
|
|
2690
|
+
"char": "y",
|
|
2691
|
+
"description": "Answer yes to confirmation prompts",
|
|
2692
|
+
"allowNo": false,
|
|
2693
|
+
"type": "boolean"
|
|
2694
|
+
}
|
|
2695
|
+
},
|
|
2696
|
+
"isESM": true,
|
|
2697
|
+
"relativePath": [
|
|
2698
|
+
"dist",
|
|
2699
|
+
"commands",
|
|
2700
|
+
"theme",
|
|
2701
|
+
"add.js"
|
|
2702
|
+
]
|
|
2703
|
+
},
|
|
2704
|
+
"theme:pull": {
|
|
2705
|
+
"aliases": [],
|
|
2706
|
+
"args": {},
|
|
2707
|
+
"description": "Pull installed themes from WordPress into loopress.json, pinned to their live versions",
|
|
2708
|
+
"examples": [
|
|
2709
|
+
"$ lps theme pull"
|
|
2710
|
+
],
|
|
2711
|
+
"flags": {
|
|
2712
|
+
"json": {
|
|
2713
|
+
"description": "Format output as json.",
|
|
2714
|
+
"helpGroup": "GLOBAL",
|
|
2715
|
+
"name": "json",
|
|
2716
|
+
"allowNo": false,
|
|
2717
|
+
"type": "boolean"
|
|
2718
|
+
},
|
|
2719
|
+
"env": {
|
|
2720
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
2721
|
+
"name": "env",
|
|
2722
|
+
"hasDynamicHelp": false,
|
|
2723
|
+
"multiple": false,
|
|
2724
|
+
"type": "option"
|
|
2725
|
+
},
|
|
2726
|
+
"dry-run": {
|
|
2727
|
+
"char": "d",
|
|
2728
|
+
"description": "Show what would change without making changes",
|
|
2729
|
+
"name": "dry-run",
|
|
2730
|
+
"allowNo": false,
|
|
2731
|
+
"type": "boolean"
|
|
2732
|
+
}
|
|
2733
|
+
},
|
|
2734
|
+
"hasDynamicHelp": false,
|
|
2735
|
+
"hiddenAliases": [],
|
|
2736
|
+
"id": "theme:pull",
|
|
2737
|
+
"pluginAlias": "@loopress/cli",
|
|
2738
|
+
"pluginName": "@loopress/cli",
|
|
2739
|
+
"pluginType": "core",
|
|
2740
|
+
"strict": true,
|
|
2741
|
+
"enableJsonFlag": true,
|
|
2742
|
+
"dryRunFlag": {
|
|
2743
|
+
"dry-run": {
|
|
2744
|
+
"char": "d",
|
|
2745
|
+
"description": "Show what would change without making changes",
|
|
2746
|
+
"allowNo": false,
|
|
2747
|
+
"type": "boolean"
|
|
2748
|
+
}
|
|
2749
|
+
},
|
|
2750
|
+
"yesFlag": {
|
|
2751
|
+
"yes": {
|
|
2752
|
+
"char": "y",
|
|
2753
|
+
"description": "Answer yes to confirmation prompts",
|
|
2754
|
+
"allowNo": false,
|
|
2755
|
+
"type": "boolean"
|
|
2756
|
+
}
|
|
2757
|
+
},
|
|
2758
|
+
"isESM": true,
|
|
2759
|
+
"relativePath": [
|
|
2760
|
+
"dist",
|
|
2761
|
+
"commands",
|
|
2762
|
+
"theme",
|
|
2763
|
+
"pull.js"
|
|
2764
|
+
]
|
|
2765
|
+
},
|
|
2766
|
+
"theme:push": {
|
|
2767
|
+
"aliases": [],
|
|
2768
|
+
"args": {},
|
|
2769
|
+
"description": "Install themes on WordPress to match loopress.json (versions only, never switches the active theme)",
|
|
2770
|
+
"examples": [
|
|
2771
|
+
"$ lps theme push",
|
|
2772
|
+
"$ lps theme push --force"
|
|
2773
|
+
],
|
|
2774
|
+
"flags": {
|
|
2775
|
+
"json": {
|
|
2776
|
+
"description": "Format output as json.",
|
|
2777
|
+
"helpGroup": "GLOBAL",
|
|
2778
|
+
"name": "json",
|
|
2779
|
+
"allowNo": false,
|
|
2780
|
+
"type": "boolean"
|
|
2781
|
+
},
|
|
2782
|
+
"env": {
|
|
2783
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
2784
|
+
"name": "env",
|
|
2785
|
+
"hasDynamicHelp": false,
|
|
2786
|
+
"multiple": false,
|
|
2787
|
+
"type": "option"
|
|
2788
|
+
},
|
|
2789
|
+
"dry-run": {
|
|
2790
|
+
"char": "d",
|
|
2791
|
+
"description": "Show what would change without making changes",
|
|
2792
|
+
"name": "dry-run",
|
|
2793
|
+
"allowNo": false,
|
|
2794
|
+
"type": "boolean"
|
|
2795
|
+
},
|
|
2796
|
+
"yes": {
|
|
2797
|
+
"char": "y",
|
|
2798
|
+
"description": "Answer yes to confirmation prompts",
|
|
2799
|
+
"name": "yes",
|
|
2800
|
+
"allowNo": false,
|
|
2801
|
+
"type": "boolean"
|
|
2802
|
+
},
|
|
2803
|
+
"force": {
|
|
2804
|
+
"description": "Allow downgrades and take over themes installed outside Loopress",
|
|
2805
|
+
"name": "force",
|
|
2806
|
+
"allowNo": false,
|
|
2807
|
+
"type": "boolean"
|
|
2808
|
+
}
|
|
2809
|
+
},
|
|
2810
|
+
"hasDynamicHelp": false,
|
|
2811
|
+
"hiddenAliases": [],
|
|
2812
|
+
"id": "theme:push",
|
|
2813
|
+
"pluginAlias": "@loopress/cli",
|
|
2814
|
+
"pluginName": "@loopress/cli",
|
|
2815
|
+
"pluginType": "core",
|
|
2816
|
+
"strict": true,
|
|
2817
|
+
"enableJsonFlag": true,
|
|
2818
|
+
"isESM": true,
|
|
2819
|
+
"relativePath": [
|
|
2820
|
+
"dist",
|
|
2821
|
+
"commands",
|
|
2822
|
+
"theme",
|
|
2823
|
+
"push.js"
|
|
2824
|
+
]
|
|
2825
|
+
},
|
|
2826
|
+
"theme:status": {
|
|
2827
|
+
"aliases": [],
|
|
2828
|
+
"args": {},
|
|
2829
|
+
"description": "Compare the themes on WordPress against loopress.json and report version drift",
|
|
2830
|
+
"examples": [
|
|
2831
|
+
"$ lps theme status"
|
|
2832
|
+
],
|
|
2833
|
+
"flags": {
|
|
2834
|
+
"json": {
|
|
2835
|
+
"description": "Format output as json.",
|
|
2836
|
+
"helpGroup": "GLOBAL",
|
|
2837
|
+
"name": "json",
|
|
2838
|
+
"allowNo": false,
|
|
2839
|
+
"type": "boolean"
|
|
2840
|
+
},
|
|
2841
|
+
"env": {
|
|
2842
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
2843
|
+
"name": "env",
|
|
2844
|
+
"hasDynamicHelp": false,
|
|
2845
|
+
"multiple": false,
|
|
2846
|
+
"type": "option"
|
|
2847
|
+
}
|
|
2848
|
+
},
|
|
2849
|
+
"hasDynamicHelp": false,
|
|
2850
|
+
"hiddenAliases": [],
|
|
2851
|
+
"id": "theme:status",
|
|
2852
|
+
"pluginAlias": "@loopress/cli",
|
|
2853
|
+
"pluginName": "@loopress/cli",
|
|
2854
|
+
"pluginType": "core",
|
|
2855
|
+
"strict": true,
|
|
2856
|
+
"enableJsonFlag": true,
|
|
2857
|
+
"dryRunFlag": {
|
|
2858
|
+
"dry-run": {
|
|
2859
|
+
"char": "d",
|
|
2860
|
+
"description": "Show what would change without making changes",
|
|
2861
|
+
"allowNo": false,
|
|
2862
|
+
"type": "boolean"
|
|
2863
|
+
}
|
|
2864
|
+
},
|
|
2865
|
+
"yesFlag": {
|
|
2866
|
+
"yes": {
|
|
2867
|
+
"char": "y",
|
|
2868
|
+
"description": "Answer yes to confirmation prompts",
|
|
2869
|
+
"allowNo": false,
|
|
2870
|
+
"type": "boolean"
|
|
2871
|
+
}
|
|
2872
|
+
},
|
|
2873
|
+
"isESM": true,
|
|
2874
|
+
"relativePath": [
|
|
2875
|
+
"dist",
|
|
2876
|
+
"commands",
|
|
2877
|
+
"theme",
|
|
2878
|
+
"status.js"
|
|
2879
|
+
]
|
|
2234
2880
|
}
|
|
2235
2881
|
},
|
|
2236
|
-
"version": "0.
|
|
2882
|
+
"version": "0.23.0"
|
|
2237
2883
|
}
|