@loopress/cli 0.24.0 → 0.24.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +158 -81
- package/dist/commands/api/rm.d.ts +2 -0
- package/dist/commands/api/rm.js +2 -0
- package/dist/commands/composer/push.d.ts +3 -0
- package/dist/commands/composer/push.js +24 -7
- package/dist/commands/form/push.d.ts +2 -0
- package/dist/commands/form/push.js +11 -4
- package/dist/commands/hook/rm.d.ts +2 -0
- package/dist/commands/hook/rm.js +2 -0
- package/dist/commands/login.js +3 -2
- package/dist/commands/seo/push.d.ts +2 -0
- package/dist/commands/seo/push.js +16 -4
- package/dist/hooks/finally.js +4 -1
- package/dist/lib/local-callback-server.d.ts +14 -1
- package/dist/lib/local-callback-server.js +40 -1
- package/dist/lib/php-files-command.d.ts +16 -3
- package/dist/lib/php-files-command.js +136 -14
- package/dist/lib/sentry.d.ts +3 -0
- package/dist/lib/sentry.js +30 -0
- package/dist/lib/wp-authorize-flow.d.ts +4 -0
- package/dist/lib/wp-authorize-flow.js +10 -8
- package/dist/utils/option-format.d.ts +1 -1
- package/dist/utils/option-format.js +22 -4
- package/dist/utils/plugin-sync.d.ts +6 -0
- package/oclif.manifest.json +341 -161
- package/package.json +2 -2
package/oclif.manifest.json
CHANGED
|
@@ -1070,7 +1070,8 @@
|
|
|
1070
1070
|
"description": "Push custom API route files to WordPress",
|
|
1071
1071
|
"examples": [
|
|
1072
1072
|
"$ lps api push",
|
|
1073
|
-
"$ lps api push --path ./api"
|
|
1073
|
+
"$ lps api push --path ./api",
|
|
1074
|
+
"$ lps api push --prune"
|
|
1074
1075
|
],
|
|
1075
1076
|
"flags": {
|
|
1076
1077
|
"json": {
|
|
@@ -1100,6 +1101,12 @@
|
|
|
1100
1101
|
"name": "yes",
|
|
1101
1102
|
"allowNo": false,
|
|
1102
1103
|
"type": "boolean"
|
|
1104
|
+
},
|
|
1105
|
+
"prune": {
|
|
1106
|
+
"description": "Delete server-side route files not present locally after pushing",
|
|
1107
|
+
"name": "prune",
|
|
1108
|
+
"allowNo": false,
|
|
1109
|
+
"type": "boolean"
|
|
1103
1110
|
}
|
|
1104
1111
|
},
|
|
1105
1112
|
"hasDynamicHelp": false,
|
|
@@ -1118,12 +1125,19 @@
|
|
|
1118
1125
|
"push.js"
|
|
1119
1126
|
]
|
|
1120
1127
|
},
|
|
1121
|
-
"
|
|
1128
|
+
"api:rm": {
|
|
1122
1129
|
"aliases": [],
|
|
1123
|
-
"args": {
|
|
1124
|
-
|
|
1130
|
+
"args": {
|
|
1131
|
+
"filename": {
|
|
1132
|
+
"description": "The route file to remove, its slug without the .php extension (e.g. \"hello\" or \"invoice-pdf/[order_id]\")",
|
|
1133
|
+
"name": "filename",
|
|
1134
|
+
"required": true
|
|
1135
|
+
}
|
|
1136
|
+
},
|
|
1137
|
+
"description": "Remove a custom API route file from WordPress",
|
|
1125
1138
|
"examples": [
|
|
1126
|
-
"$ lps
|
|
1139
|
+
"$ lps api rm hello",
|
|
1140
|
+
"$ lps api rm hello --yes"
|
|
1127
1141
|
],
|
|
1128
1142
|
"flags": {
|
|
1129
1143
|
"json": {
|
|
@@ -1139,11 +1153,25 @@
|
|
|
1139
1153
|
"hasDynamicHelp": false,
|
|
1140
1154
|
"multiple": false,
|
|
1141
1155
|
"type": "option"
|
|
1156
|
+
},
|
|
1157
|
+
"dry-run": {
|
|
1158
|
+
"char": "d",
|
|
1159
|
+
"description": "Show what would change without making changes",
|
|
1160
|
+
"name": "dry-run",
|
|
1161
|
+
"allowNo": false,
|
|
1162
|
+
"type": "boolean"
|
|
1163
|
+
},
|
|
1164
|
+
"yes": {
|
|
1165
|
+
"char": "y",
|
|
1166
|
+
"description": "Answer yes to confirmation prompts",
|
|
1167
|
+
"name": "yes",
|
|
1168
|
+
"allowNo": false,
|
|
1169
|
+
"type": "boolean"
|
|
1142
1170
|
}
|
|
1143
1171
|
},
|
|
1144
1172
|
"hasDynamicHelp": false,
|
|
1145
1173
|
"hiddenAliases": [],
|
|
1146
|
-
"id": "
|
|
1174
|
+
"id": "api:rm",
|
|
1147
1175
|
"pluginAlias": "@loopress/cli",
|
|
1148
1176
|
"pluginName": "@loopress/cli",
|
|
1149
1177
|
"pluginType": "core",
|
|
@@ -1169,21 +1197,73 @@
|
|
|
1169
1197
|
"relativePath": [
|
|
1170
1198
|
"dist",
|
|
1171
1199
|
"commands",
|
|
1172
|
-
"
|
|
1173
|
-
"
|
|
1200
|
+
"api",
|
|
1201
|
+
"rm.js"
|
|
1174
1202
|
]
|
|
1175
1203
|
},
|
|
1176
|
-
"
|
|
1204
|
+
"composer:init": {
|
|
1177
1205
|
"aliases": [],
|
|
1178
|
-
"args": {
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1206
|
+
"args": {},
|
|
1207
|
+
"description": "Create a composer.json wired to WPackagist for installing WordPress.org plugins and themes",
|
|
1208
|
+
"examples": [
|
|
1209
|
+
"$ lps composer init",
|
|
1210
|
+
"$ lps composer init --dry-run"
|
|
1211
|
+
],
|
|
1212
|
+
"flags": {
|
|
1213
|
+
"env": {
|
|
1214
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
1215
|
+
"name": "env",
|
|
1216
|
+
"hasDynamicHelp": false,
|
|
1217
|
+
"multiple": false,
|
|
1218
|
+
"type": "option"
|
|
1219
|
+
},
|
|
1220
|
+
"dry-run": {
|
|
1221
|
+
"char": "d",
|
|
1222
|
+
"description": "Show what would change without making changes",
|
|
1223
|
+
"name": "dry-run",
|
|
1224
|
+
"allowNo": false,
|
|
1225
|
+
"type": "boolean"
|
|
1182
1226
|
}
|
|
1183
1227
|
},
|
|
1184
|
-
"
|
|
1228
|
+
"hasDynamicHelp": false,
|
|
1229
|
+
"hiddenAliases": [],
|
|
1230
|
+
"id": "composer:init",
|
|
1231
|
+
"pluginAlias": "@loopress/cli",
|
|
1232
|
+
"pluginName": "@loopress/cli",
|
|
1233
|
+
"pluginType": "core",
|
|
1234
|
+
"strict": true,
|
|
1235
|
+
"enableJsonFlag": false,
|
|
1236
|
+
"dryRunFlag": {
|
|
1237
|
+
"dry-run": {
|
|
1238
|
+
"char": "d",
|
|
1239
|
+
"description": "Show what would change without making changes",
|
|
1240
|
+
"allowNo": false,
|
|
1241
|
+
"type": "boolean"
|
|
1242
|
+
}
|
|
1243
|
+
},
|
|
1244
|
+
"yesFlag": {
|
|
1245
|
+
"yes": {
|
|
1246
|
+
"char": "y",
|
|
1247
|
+
"description": "Answer yes to confirmation prompts",
|
|
1248
|
+
"allowNo": false,
|
|
1249
|
+
"type": "boolean"
|
|
1250
|
+
}
|
|
1251
|
+
},
|
|
1252
|
+
"isESM": true,
|
|
1253
|
+
"relativePath": [
|
|
1254
|
+
"dist",
|
|
1255
|
+
"commands",
|
|
1256
|
+
"composer",
|
|
1257
|
+
"init.js"
|
|
1258
|
+
]
|
|
1259
|
+
},
|
|
1260
|
+
"composer:pull": {
|
|
1261
|
+
"aliases": [],
|
|
1262
|
+
"args": {},
|
|
1263
|
+
"description": "Pull composer.json and composer.lock from WordPress",
|
|
1185
1264
|
"examples": [
|
|
1186
|
-
"$ lps
|
|
1265
|
+
"$ lps composer pull",
|
|
1266
|
+
"$ lps composer pull --dry-run"
|
|
1187
1267
|
],
|
|
1188
1268
|
"flags": {
|
|
1189
1269
|
"json": {
|
|
@@ -1206,18 +1286,11 @@
|
|
|
1206
1286
|
"name": "dry-run",
|
|
1207
1287
|
"allowNo": false,
|
|
1208
1288
|
"type": "boolean"
|
|
1209
|
-
},
|
|
1210
|
-
"yes": {
|
|
1211
|
-
"char": "y",
|
|
1212
|
-
"description": "Answer yes to confirmation prompts",
|
|
1213
|
-
"name": "yes",
|
|
1214
|
-
"allowNo": false,
|
|
1215
|
-
"type": "boolean"
|
|
1216
1289
|
}
|
|
1217
1290
|
},
|
|
1218
1291
|
"hasDynamicHelp": false,
|
|
1219
1292
|
"hiddenAliases": [],
|
|
1220
|
-
"id": "
|
|
1293
|
+
"id": "composer:pull",
|
|
1221
1294
|
"pluginAlias": "@loopress/cli",
|
|
1222
1295
|
"pluginName": "@loopress/cli",
|
|
1223
1296
|
"pluginType": "core",
|
|
@@ -1243,22 +1316,17 @@
|
|
|
1243
1316
|
"relativePath": [
|
|
1244
1317
|
"dist",
|
|
1245
1318
|
"commands",
|
|
1246
|
-
"
|
|
1319
|
+
"composer",
|
|
1247
1320
|
"pull.js"
|
|
1248
1321
|
]
|
|
1249
1322
|
},
|
|
1250
|
-
"
|
|
1323
|
+
"composer:push": {
|
|
1251
1324
|
"aliases": [],
|
|
1252
|
-
"args": {
|
|
1253
|
-
|
|
1254
|
-
"description": "Push only this app (defaults to every app in the directory)",
|
|
1255
|
-
"name": "name"
|
|
1256
|
-
}
|
|
1257
|
-
},
|
|
1258
|
-
"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.",
|
|
1325
|
+
"args": {},
|
|
1326
|
+
"description": "Push composer.json to WordPress and run Composer to resolve and install dependencies",
|
|
1259
1327
|
"examples": [
|
|
1260
|
-
"$ lps
|
|
1261
|
-
"$ lps
|
|
1328
|
+
"$ lps composer push",
|
|
1329
|
+
"$ lps composer push --dry-run"
|
|
1262
1330
|
],
|
|
1263
1331
|
"flags": {
|
|
1264
1332
|
"json": {
|
|
@@ -1288,11 +1356,17 @@
|
|
|
1288
1356
|
"name": "yes",
|
|
1289
1357
|
"allowNo": false,
|
|
1290
1358
|
"type": "boolean"
|
|
1359
|
+
},
|
|
1360
|
+
"force": {
|
|
1361
|
+
"description": "Allow downgrades and take over plugins/themes installed outside Loopress",
|
|
1362
|
+
"name": "force",
|
|
1363
|
+
"allowNo": false,
|
|
1364
|
+
"type": "boolean"
|
|
1291
1365
|
}
|
|
1292
1366
|
},
|
|
1293
1367
|
"hasDynamicHelp": false,
|
|
1294
1368
|
"hiddenAliases": [],
|
|
1295
|
-
"id": "
|
|
1369
|
+
"id": "composer:push",
|
|
1296
1370
|
"pluginAlias": "@loopress/cli",
|
|
1297
1371
|
"pluginName": "@loopress/cli",
|
|
1298
1372
|
"pluginType": "core",
|
|
@@ -1302,22 +1376,16 @@
|
|
|
1302
1376
|
"relativePath": [
|
|
1303
1377
|
"dist",
|
|
1304
1378
|
"commands",
|
|
1305
|
-
"
|
|
1379
|
+
"composer",
|
|
1306
1380
|
"push.js"
|
|
1307
1381
|
]
|
|
1308
1382
|
},
|
|
1309
|
-
"app:
|
|
1383
|
+
"app:list": {
|
|
1310
1384
|
"aliases": [],
|
|
1311
|
-
"args": {
|
|
1312
|
-
|
|
1313
|
-
"description": "App to remove from WordPress",
|
|
1314
|
-
"name": "name",
|
|
1315
|
-
"required": true
|
|
1316
|
-
}
|
|
1317
|
-
},
|
|
1318
|
-
"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.",
|
|
1385
|
+
"args": {},
|
|
1386
|
+
"description": "List single-page apps deployed to WordPress",
|
|
1319
1387
|
"examples": [
|
|
1320
|
-
"$ lps app
|
|
1388
|
+
"$ lps app list"
|
|
1321
1389
|
],
|
|
1322
1390
|
"flags": {
|
|
1323
1391
|
"json": {
|
|
@@ -1333,25 +1401,11 @@
|
|
|
1333
1401
|
"hasDynamicHelp": false,
|
|
1334
1402
|
"multiple": false,
|
|
1335
1403
|
"type": "option"
|
|
1336
|
-
},
|
|
1337
|
-
"dry-run": {
|
|
1338
|
-
"char": "d",
|
|
1339
|
-
"description": "Show what would change without making changes",
|
|
1340
|
-
"name": "dry-run",
|
|
1341
|
-
"allowNo": false,
|
|
1342
|
-
"type": "boolean"
|
|
1343
|
-
},
|
|
1344
|
-
"yes": {
|
|
1345
|
-
"char": "y",
|
|
1346
|
-
"description": "Answer yes to confirmation prompts",
|
|
1347
|
-
"name": "yes",
|
|
1348
|
-
"allowNo": false,
|
|
1349
|
-
"type": "boolean"
|
|
1350
1404
|
}
|
|
1351
1405
|
},
|
|
1352
1406
|
"hasDynamicHelp": false,
|
|
1353
1407
|
"hiddenAliases": [],
|
|
1354
|
-
"id": "app:
|
|
1408
|
+
"id": "app:list",
|
|
1355
1409
|
"pluginAlias": "@loopress/cli",
|
|
1356
1410
|
"pluginName": "@loopress/cli",
|
|
1357
1411
|
"pluginType": "core",
|
|
@@ -1378,18 +1432,29 @@
|
|
|
1378
1432
|
"dist",
|
|
1379
1433
|
"commands",
|
|
1380
1434
|
"app",
|
|
1381
|
-
"
|
|
1435
|
+
"list.js"
|
|
1382
1436
|
]
|
|
1383
1437
|
},
|
|
1384
|
-
"
|
|
1438
|
+
"app:pull": {
|
|
1385
1439
|
"aliases": [],
|
|
1386
|
-
"args": {
|
|
1387
|
-
|
|
1440
|
+
"args": {
|
|
1441
|
+
"path": {
|
|
1442
|
+
"description": "Path to apps directory (overrides project config)",
|
|
1443
|
+
"name": "path"
|
|
1444
|
+
}
|
|
1445
|
+
},
|
|
1446
|
+
"description": "Pull single-page app bundles from WordPress into local files",
|
|
1388
1447
|
"examples": [
|
|
1389
|
-
"$ lps
|
|
1390
|
-
"$ lps composer init --dry-run"
|
|
1448
|
+
"$ lps app pull"
|
|
1391
1449
|
],
|
|
1392
1450
|
"flags": {
|
|
1451
|
+
"json": {
|
|
1452
|
+
"description": "Format output as json.",
|
|
1453
|
+
"helpGroup": "GLOBAL",
|
|
1454
|
+
"name": "json",
|
|
1455
|
+
"allowNo": false,
|
|
1456
|
+
"type": "boolean"
|
|
1457
|
+
},
|
|
1393
1458
|
"env": {
|
|
1394
1459
|
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
1395
1460
|
"name": "env",
|
|
@@ -1403,16 +1468,23 @@
|
|
|
1403
1468
|
"name": "dry-run",
|
|
1404
1469
|
"allowNo": false,
|
|
1405
1470
|
"type": "boolean"
|
|
1471
|
+
},
|
|
1472
|
+
"yes": {
|
|
1473
|
+
"char": "y",
|
|
1474
|
+
"description": "Answer yes to confirmation prompts",
|
|
1475
|
+
"name": "yes",
|
|
1476
|
+
"allowNo": false,
|
|
1477
|
+
"type": "boolean"
|
|
1406
1478
|
}
|
|
1407
1479
|
},
|
|
1408
1480
|
"hasDynamicHelp": false,
|
|
1409
1481
|
"hiddenAliases": [],
|
|
1410
|
-
"id": "
|
|
1482
|
+
"id": "app:pull",
|
|
1411
1483
|
"pluginAlias": "@loopress/cli",
|
|
1412
1484
|
"pluginName": "@loopress/cli",
|
|
1413
1485
|
"pluginType": "core",
|
|
1414
1486
|
"strict": true,
|
|
1415
|
-
"enableJsonFlag":
|
|
1487
|
+
"enableJsonFlag": true,
|
|
1416
1488
|
"dryRunFlag": {
|
|
1417
1489
|
"dry-run": {
|
|
1418
1490
|
"char": "d",
|
|
@@ -1433,17 +1505,22 @@
|
|
|
1433
1505
|
"relativePath": [
|
|
1434
1506
|
"dist",
|
|
1435
1507
|
"commands",
|
|
1436
|
-
"
|
|
1437
|
-
"
|
|
1508
|
+
"app",
|
|
1509
|
+
"pull.js"
|
|
1438
1510
|
]
|
|
1439
1511
|
},
|
|
1440
|
-
"
|
|
1512
|
+
"app:push": {
|
|
1441
1513
|
"aliases": [],
|
|
1442
|
-
"args": {
|
|
1443
|
-
|
|
1514
|
+
"args": {
|
|
1515
|
+
"name": {
|
|
1516
|
+
"description": "Push only this app (defaults to every app in the directory)",
|
|
1517
|
+
"name": "name"
|
|
1518
|
+
}
|
|
1519
|
+
},
|
|
1520
|
+
"description": "Push built single-page app bundles to WordPress. Each app is an `apps/<name>/` directory holding a loopress.app.json and a built dist/ folder. Only files whose content changed are uploaded.",
|
|
1444
1521
|
"examples": [
|
|
1445
|
-
"$ lps
|
|
1446
|
-
"$ lps
|
|
1522
|
+
"$ lps app push",
|
|
1523
|
+
"$ lps app push search"
|
|
1447
1524
|
],
|
|
1448
1525
|
"flags": {
|
|
1449
1526
|
"json": {
|
|
@@ -1466,47 +1543,43 @@
|
|
|
1466
1543
|
"name": "dry-run",
|
|
1467
1544
|
"allowNo": false,
|
|
1468
1545
|
"type": "boolean"
|
|
1546
|
+
},
|
|
1547
|
+
"yes": {
|
|
1548
|
+
"char": "y",
|
|
1549
|
+
"description": "Answer yes to confirmation prompts",
|
|
1550
|
+
"name": "yes",
|
|
1551
|
+
"allowNo": false,
|
|
1552
|
+
"type": "boolean"
|
|
1469
1553
|
}
|
|
1470
1554
|
},
|
|
1471
1555
|
"hasDynamicHelp": false,
|
|
1472
1556
|
"hiddenAliases": [],
|
|
1473
|
-
"id": "
|
|
1557
|
+
"id": "app:push",
|
|
1474
1558
|
"pluginAlias": "@loopress/cli",
|
|
1475
1559
|
"pluginName": "@loopress/cli",
|
|
1476
1560
|
"pluginType": "core",
|
|
1477
1561
|
"strict": true,
|
|
1478
1562
|
"enableJsonFlag": true,
|
|
1479
|
-
"dryRunFlag": {
|
|
1480
|
-
"dry-run": {
|
|
1481
|
-
"char": "d",
|
|
1482
|
-
"description": "Show what would change without making changes",
|
|
1483
|
-
"allowNo": false,
|
|
1484
|
-
"type": "boolean"
|
|
1485
|
-
}
|
|
1486
|
-
},
|
|
1487
|
-
"yesFlag": {
|
|
1488
|
-
"yes": {
|
|
1489
|
-
"char": "y",
|
|
1490
|
-
"description": "Answer yes to confirmation prompts",
|
|
1491
|
-
"allowNo": false,
|
|
1492
|
-
"type": "boolean"
|
|
1493
|
-
}
|
|
1494
|
-
},
|
|
1495
1563
|
"isESM": true,
|
|
1496
1564
|
"relativePath": [
|
|
1497
1565
|
"dist",
|
|
1498
1566
|
"commands",
|
|
1499
|
-
"
|
|
1500
|
-
"
|
|
1567
|
+
"app",
|
|
1568
|
+
"push.js"
|
|
1501
1569
|
]
|
|
1502
1570
|
},
|
|
1503
|
-
"
|
|
1571
|
+
"app:remove": {
|
|
1504
1572
|
"aliases": [],
|
|
1505
|
-
"args": {
|
|
1506
|
-
|
|
1573
|
+
"args": {
|
|
1574
|
+
"name": {
|
|
1575
|
+
"description": "App to remove from WordPress",
|
|
1576
|
+
"name": "name",
|
|
1577
|
+
"required": true
|
|
1578
|
+
}
|
|
1579
|
+
},
|
|
1580
|
+
"description": "Remove a single-page app from WordPress: deletes its bundle from wp-content/loopress/apps/ and unregisters the shortcode. Local files are left untouched.",
|
|
1507
1581
|
"examples": [
|
|
1508
|
-
"$ lps
|
|
1509
|
-
"$ lps composer push --dry-run"
|
|
1582
|
+
"$ lps app remove search"
|
|
1510
1583
|
],
|
|
1511
1584
|
"flags": {
|
|
1512
1585
|
"json": {
|
|
@@ -1536,28 +1609,38 @@
|
|
|
1536
1609
|
"name": "yes",
|
|
1537
1610
|
"allowNo": false,
|
|
1538
1611
|
"type": "boolean"
|
|
1539
|
-
},
|
|
1540
|
-
"force": {
|
|
1541
|
-
"description": "Allow downgrades and take over plugins/themes installed outside Loopress",
|
|
1542
|
-
"name": "force",
|
|
1543
|
-
"allowNo": false,
|
|
1544
|
-
"type": "boolean"
|
|
1545
1612
|
}
|
|
1546
1613
|
},
|
|
1547
1614
|
"hasDynamicHelp": false,
|
|
1548
1615
|
"hiddenAliases": [],
|
|
1549
|
-
"id": "
|
|
1616
|
+
"id": "app:remove",
|
|
1550
1617
|
"pluginAlias": "@loopress/cli",
|
|
1551
1618
|
"pluginName": "@loopress/cli",
|
|
1552
1619
|
"pluginType": "core",
|
|
1553
1620
|
"strict": true,
|
|
1554
1621
|
"enableJsonFlag": true,
|
|
1622
|
+
"dryRunFlag": {
|
|
1623
|
+
"dry-run": {
|
|
1624
|
+
"char": "d",
|
|
1625
|
+
"description": "Show what would change without making changes",
|
|
1626
|
+
"allowNo": false,
|
|
1627
|
+
"type": "boolean"
|
|
1628
|
+
}
|
|
1629
|
+
},
|
|
1630
|
+
"yesFlag": {
|
|
1631
|
+
"yes": {
|
|
1632
|
+
"char": "y",
|
|
1633
|
+
"description": "Answer yes to confirmation prompts",
|
|
1634
|
+
"allowNo": false,
|
|
1635
|
+
"type": "boolean"
|
|
1636
|
+
}
|
|
1637
|
+
},
|
|
1555
1638
|
"isESM": true,
|
|
1556
1639
|
"relativePath": [
|
|
1557
1640
|
"dist",
|
|
1558
1641
|
"commands",
|
|
1559
|
-
"
|
|
1560
|
-
"
|
|
1642
|
+
"app",
|
|
1643
|
+
"remove.js"
|
|
1561
1644
|
]
|
|
1562
1645
|
},
|
|
1563
1646
|
"form:diff": {
|
|
@@ -1769,7 +1852,8 @@
|
|
|
1769
1852
|
},
|
|
1770
1853
|
"description": "Push forms to WordPress. Local files created or updated remotely are renamed on disk to the `<id>-<slug>.json` convention.",
|
|
1771
1854
|
"examples": [
|
|
1772
|
-
"$ lps form push"
|
|
1855
|
+
"$ lps form push",
|
|
1856
|
+
"$ lps form push --allow-notifications"
|
|
1773
1857
|
],
|
|
1774
1858
|
"flags": {
|
|
1775
1859
|
"env": {
|
|
@@ -1792,6 +1876,12 @@
|
|
|
1792
1876
|
"name": "yes",
|
|
1793
1877
|
"allowNo": false,
|
|
1794
1878
|
"type": "boolean"
|
|
1879
|
+
},
|
|
1880
|
+
"allow-notifications": {
|
|
1881
|
+
"description": "Also push each form's notification and confirmation settings (recipients, sender, messages). Off by default: the server keeps its own so a stray push can't redirect submissions.",
|
|
1882
|
+
"name": "allow-notifications",
|
|
1883
|
+
"allowNo": false,
|
|
1884
|
+
"type": "boolean"
|
|
1795
1885
|
}
|
|
1796
1886
|
},
|
|
1797
1887
|
"hasDynamicHelp": false,
|
|
@@ -2027,7 +2117,8 @@
|
|
|
2027
2117
|
"description": "Push hook files (actions, filters, cron) to WordPress",
|
|
2028
2118
|
"examples": [
|
|
2029
2119
|
"$ lps hook push",
|
|
2030
|
-
"$ lps hook push --path ./hooks"
|
|
2120
|
+
"$ lps hook push --path ./hooks",
|
|
2121
|
+
"$ lps hook push --prune"
|
|
2031
2122
|
],
|
|
2032
2123
|
"flags": {
|
|
2033
2124
|
"json": {
|
|
@@ -2057,6 +2148,12 @@
|
|
|
2057
2148
|
"name": "yes",
|
|
2058
2149
|
"allowNo": false,
|
|
2059
2150
|
"type": "boolean"
|
|
2151
|
+
},
|
|
2152
|
+
"prune": {
|
|
2153
|
+
"description": "Delete server-side hook files not present locally after pushing",
|
|
2154
|
+
"name": "prune",
|
|
2155
|
+
"allowNo": false,
|
|
2156
|
+
"type": "boolean"
|
|
2060
2157
|
}
|
|
2061
2158
|
},
|
|
2062
2159
|
"hasDynamicHelp": false,
|
|
@@ -2075,6 +2172,82 @@
|
|
|
2075
2172
|
"push.js"
|
|
2076
2173
|
]
|
|
2077
2174
|
},
|
|
2175
|
+
"hook:rm": {
|
|
2176
|
+
"aliases": [],
|
|
2177
|
+
"args": {
|
|
2178
|
+
"filename": {
|
|
2179
|
+
"description": "The hook file to remove, its slug without the .php extension (e.g. \"hello\" or \"invoice-pdf/[order_id]\")",
|
|
2180
|
+
"name": "filename",
|
|
2181
|
+
"required": true
|
|
2182
|
+
}
|
|
2183
|
+
},
|
|
2184
|
+
"description": "Remove a hook file (action, filter, cron) from WordPress",
|
|
2185
|
+
"examples": [
|
|
2186
|
+
"$ lps hook rm hello",
|
|
2187
|
+
"$ lps hook rm hello --yes"
|
|
2188
|
+
],
|
|
2189
|
+
"flags": {
|
|
2190
|
+
"json": {
|
|
2191
|
+
"description": "Format output as json.",
|
|
2192
|
+
"helpGroup": "GLOBAL",
|
|
2193
|
+
"name": "json",
|
|
2194
|
+
"allowNo": false,
|
|
2195
|
+
"type": "boolean"
|
|
2196
|
+
},
|
|
2197
|
+
"env": {
|
|
2198
|
+
"description": "Target environment by name, overriding the globally active one (lps project switch)",
|
|
2199
|
+
"name": "env",
|
|
2200
|
+
"hasDynamicHelp": false,
|
|
2201
|
+
"multiple": false,
|
|
2202
|
+
"type": "option"
|
|
2203
|
+
},
|
|
2204
|
+
"dry-run": {
|
|
2205
|
+
"char": "d",
|
|
2206
|
+
"description": "Show what would change without making changes",
|
|
2207
|
+
"name": "dry-run",
|
|
2208
|
+
"allowNo": false,
|
|
2209
|
+
"type": "boolean"
|
|
2210
|
+
},
|
|
2211
|
+
"yes": {
|
|
2212
|
+
"char": "y",
|
|
2213
|
+
"description": "Answer yes to confirmation prompts",
|
|
2214
|
+
"name": "yes",
|
|
2215
|
+
"allowNo": false,
|
|
2216
|
+
"type": "boolean"
|
|
2217
|
+
}
|
|
2218
|
+
},
|
|
2219
|
+
"hasDynamicHelp": false,
|
|
2220
|
+
"hiddenAliases": [],
|
|
2221
|
+
"id": "hook:rm",
|
|
2222
|
+
"pluginAlias": "@loopress/cli",
|
|
2223
|
+
"pluginName": "@loopress/cli",
|
|
2224
|
+
"pluginType": "core",
|
|
2225
|
+
"strict": true,
|
|
2226
|
+
"enableJsonFlag": true,
|
|
2227
|
+
"dryRunFlag": {
|
|
2228
|
+
"dry-run": {
|
|
2229
|
+
"char": "d",
|
|
2230
|
+
"description": "Show what would change without making changes",
|
|
2231
|
+
"allowNo": false,
|
|
2232
|
+
"type": "boolean"
|
|
2233
|
+
}
|
|
2234
|
+
},
|
|
2235
|
+
"yesFlag": {
|
|
2236
|
+
"yes": {
|
|
2237
|
+
"char": "y",
|
|
2238
|
+
"description": "Answer yes to confirmation prompts",
|
|
2239
|
+
"allowNo": false,
|
|
2240
|
+
"type": "boolean"
|
|
2241
|
+
}
|
|
2242
|
+
},
|
|
2243
|
+
"isESM": true,
|
|
2244
|
+
"relativePath": [
|
|
2245
|
+
"dist",
|
|
2246
|
+
"commands",
|
|
2247
|
+
"hook",
|
|
2248
|
+
"rm.js"
|
|
2249
|
+
]
|
|
2250
|
+
},
|
|
2078
2251
|
"option:add": {
|
|
2079
2252
|
"aliases": [],
|
|
2080
2253
|
"args": {
|
|
@@ -3255,7 +3428,8 @@
|
|
|
3255
3428
|
},
|
|
3256
3429
|
"description": "Push SEO settings, post meta, and redirects to WordPress. Local redirect files created remotely are renamed on disk to the `<id>-<slug>` convention. Fails clearly per file if the active SEO plugin does not support redirects.",
|
|
3257
3430
|
"examples": [
|
|
3258
|
-
"$ lps seo push"
|
|
3431
|
+
"$ lps seo push",
|
|
3432
|
+
"$ lps seo push --allow-external-redirects"
|
|
3259
3433
|
],
|
|
3260
3434
|
"flags": {
|
|
3261
3435
|
"env": {
|
|
@@ -3278,6 +3452,12 @@
|
|
|
3278
3452
|
"name": "yes",
|
|
3279
3453
|
"allowNo": false,
|
|
3280
3454
|
"type": "boolean"
|
|
3455
|
+
},
|
|
3456
|
+
"allow-external-redirects": {
|
|
3457
|
+
"description": "Allow pushing a redirect whose target points off this site. Off by default: the server rejects an off-site `urlTo` so a stray push can't 301 traffic away.",
|
|
3458
|
+
"name": "allow-external-redirects",
|
|
3459
|
+
"allowNo": false,
|
|
3460
|
+
"type": "boolean"
|
|
3281
3461
|
}
|
|
3282
3462
|
},
|
|
3283
3463
|
"hasDynamicHelp": false,
|
|
@@ -3591,54 +3771,6 @@
|
|
|
3591
3771
|
"push.js"
|
|
3592
3772
|
]
|
|
3593
3773
|
},
|
|
3594
|
-
"telemetry:disable": {
|
|
3595
|
-
"aliases": [],
|
|
3596
|
-
"args": {},
|
|
3597
|
-
"description": "Disable error reporting to Sentry",
|
|
3598
|
-
"examples": [
|
|
3599
|
-
"$ lps telemetry disable"
|
|
3600
|
-
],
|
|
3601
|
-
"flags": {},
|
|
3602
|
-
"hasDynamicHelp": false,
|
|
3603
|
-
"hiddenAliases": [],
|
|
3604
|
-
"id": "telemetry:disable",
|
|
3605
|
-
"pluginAlias": "@loopress/cli",
|
|
3606
|
-
"pluginName": "@loopress/cli",
|
|
3607
|
-
"pluginType": "core",
|
|
3608
|
-
"strict": true,
|
|
3609
|
-
"enableJsonFlag": false,
|
|
3610
|
-
"isESM": true,
|
|
3611
|
-
"relativePath": [
|
|
3612
|
-
"dist",
|
|
3613
|
-
"commands",
|
|
3614
|
-
"telemetry",
|
|
3615
|
-
"disable.js"
|
|
3616
|
-
]
|
|
3617
|
-
},
|
|
3618
|
-
"telemetry:enable": {
|
|
3619
|
-
"aliases": [],
|
|
3620
|
-
"args": {},
|
|
3621
|
-
"description": "Enable error reporting to Sentry",
|
|
3622
|
-
"examples": [
|
|
3623
|
-
"$ lps telemetry enable"
|
|
3624
|
-
],
|
|
3625
|
-
"flags": {},
|
|
3626
|
-
"hasDynamicHelp": false,
|
|
3627
|
-
"hiddenAliases": [],
|
|
3628
|
-
"id": "telemetry:enable",
|
|
3629
|
-
"pluginAlias": "@loopress/cli",
|
|
3630
|
-
"pluginName": "@loopress/cli",
|
|
3631
|
-
"pluginType": "core",
|
|
3632
|
-
"strict": true,
|
|
3633
|
-
"enableJsonFlag": false,
|
|
3634
|
-
"isESM": true,
|
|
3635
|
-
"relativePath": [
|
|
3636
|
-
"dist",
|
|
3637
|
-
"commands",
|
|
3638
|
-
"telemetry",
|
|
3639
|
-
"enable.js"
|
|
3640
|
-
]
|
|
3641
|
-
},
|
|
3642
3774
|
"theme:add": {
|
|
3643
3775
|
"aliases": [],
|
|
3644
3776
|
"args": {
|
|
@@ -3884,7 +4016,55 @@
|
|
|
3884
4016
|
"theme",
|
|
3885
4017
|
"status.js"
|
|
3886
4018
|
]
|
|
4019
|
+
},
|
|
4020
|
+
"telemetry:disable": {
|
|
4021
|
+
"aliases": [],
|
|
4022
|
+
"args": {},
|
|
4023
|
+
"description": "Disable error reporting to Sentry",
|
|
4024
|
+
"examples": [
|
|
4025
|
+
"$ lps telemetry disable"
|
|
4026
|
+
],
|
|
4027
|
+
"flags": {},
|
|
4028
|
+
"hasDynamicHelp": false,
|
|
4029
|
+
"hiddenAliases": [],
|
|
4030
|
+
"id": "telemetry:disable",
|
|
4031
|
+
"pluginAlias": "@loopress/cli",
|
|
4032
|
+
"pluginName": "@loopress/cli",
|
|
4033
|
+
"pluginType": "core",
|
|
4034
|
+
"strict": true,
|
|
4035
|
+
"enableJsonFlag": false,
|
|
4036
|
+
"isESM": true,
|
|
4037
|
+
"relativePath": [
|
|
4038
|
+
"dist",
|
|
4039
|
+
"commands",
|
|
4040
|
+
"telemetry",
|
|
4041
|
+
"disable.js"
|
|
4042
|
+
]
|
|
4043
|
+
},
|
|
4044
|
+
"telemetry:enable": {
|
|
4045
|
+
"aliases": [],
|
|
4046
|
+
"args": {},
|
|
4047
|
+
"description": "Enable error reporting to Sentry",
|
|
4048
|
+
"examples": [
|
|
4049
|
+
"$ lps telemetry enable"
|
|
4050
|
+
],
|
|
4051
|
+
"flags": {},
|
|
4052
|
+
"hasDynamicHelp": false,
|
|
4053
|
+
"hiddenAliases": [],
|
|
4054
|
+
"id": "telemetry:enable",
|
|
4055
|
+
"pluginAlias": "@loopress/cli",
|
|
4056
|
+
"pluginName": "@loopress/cli",
|
|
4057
|
+
"pluginType": "core",
|
|
4058
|
+
"strict": true,
|
|
4059
|
+
"enableJsonFlag": false,
|
|
4060
|
+
"isESM": true,
|
|
4061
|
+
"relativePath": [
|
|
4062
|
+
"dist",
|
|
4063
|
+
"commands",
|
|
4064
|
+
"telemetry",
|
|
4065
|
+
"enable.js"
|
|
4066
|
+
]
|
|
3887
4067
|
}
|
|
3888
4068
|
},
|
|
3889
|
-
"version": "0.24.
|
|
4069
|
+
"version": "0.24.1"
|
|
3890
4070
|
}
|