@loopress/cli 0.15.0 → 0.17.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 +204 -24
- package/dist/commands/acf/list.d.ts +10 -0
- package/dist/commands/acf/list.js +36 -0
- package/dist/commands/acf/pull.d.ts +15 -0
- package/dist/commands/acf/pull.js +80 -0
- package/dist/commands/acf/push.d.ts +17 -0
- package/dist/commands/acf/push.js +108 -0
- package/dist/commands/composer/init.d.ts +9 -0
- package/dist/commands/composer/init.js +47 -0
- package/dist/commands/composer/pull.js +7 -4
- 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/help.js +1 -1
- 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/acf-format.d.ts +4 -0
- package/dist/utils/acf-format.js +12 -0
- package/dist/utils/composer.d.ts +8 -0
- package/dist/utils/plugins.js +5 -3
- package/dist/utils/seo-format.d.ts +20 -0
- package/dist/utils/seo-format.js +10 -0
- package/oclif.manifest.json +475 -134
- package/package.json +7 -1
- package/schemas/project-config.schema.json +10 -0
package/oclif.manifest.json
CHANGED
|
@@ -113,12 +113,13 @@
|
|
|
113
113
|
"status.js"
|
|
114
114
|
]
|
|
115
115
|
},
|
|
116
|
-
"
|
|
116
|
+
"acf:list": {
|
|
117
117
|
"aliases": [],
|
|
118
118
|
"args": {},
|
|
119
|
-
"description": "List
|
|
119
|
+
"description": "List ACF field groups, post types, taxonomies, and options pages from WordPress",
|
|
120
120
|
"examples": [
|
|
121
|
-
"$ lps
|
|
121
|
+
"$ lps acf list",
|
|
122
|
+
"$ lps acf list --type field-groups"
|
|
122
123
|
],
|
|
123
124
|
"flags": {
|
|
124
125
|
"json": {
|
|
@@ -127,11 +128,24 @@
|
|
|
127
128
|
"name": "json",
|
|
128
129
|
"allowNo": false,
|
|
129
130
|
"type": "boolean"
|
|
131
|
+
},
|
|
132
|
+
"type": {
|
|
133
|
+
"description": "Limit to specific ACF object types",
|
|
134
|
+
"name": "type",
|
|
135
|
+
"hasDynamicHelp": false,
|
|
136
|
+
"multiple": true,
|
|
137
|
+
"options": [
|
|
138
|
+
"field-groups",
|
|
139
|
+
"post-types",
|
|
140
|
+
"taxonomies",
|
|
141
|
+
"options-pages"
|
|
142
|
+
],
|
|
143
|
+
"type": "option"
|
|
130
144
|
}
|
|
131
145
|
},
|
|
132
146
|
"hasDynamicHelp": false,
|
|
133
147
|
"hiddenAliases": [],
|
|
134
|
-
"id": "
|
|
148
|
+
"id": "acf:list",
|
|
135
149
|
"pluginAlias": "@loopress/cli",
|
|
136
150
|
"pluginName": "@loopress/cli",
|
|
137
151
|
"pluginType": "core",
|
|
@@ -149,52 +163,81 @@
|
|
|
149
163
|
"relativePath": [
|
|
150
164
|
"dist",
|
|
151
165
|
"commands",
|
|
152
|
-
"
|
|
166
|
+
"acf",
|
|
153
167
|
"list.js"
|
|
154
168
|
]
|
|
155
169
|
},
|
|
156
|
-
"
|
|
170
|
+
"acf:pull": {
|
|
157
171
|
"aliases": [],
|
|
158
172
|
"args": {
|
|
159
173
|
"path": {
|
|
160
|
-
"description": "Path to
|
|
174
|
+
"description": "Path to ACF directory (overrides project config)",
|
|
161
175
|
"name": "path"
|
|
162
176
|
}
|
|
163
177
|
},
|
|
164
|
-
"description": "
|
|
178
|
+
"description": "Pull ACF field groups, post types, taxonomies, and options pages from WordPress",
|
|
165
179
|
"examples": [
|
|
166
|
-
"$ lps
|
|
167
|
-
"$ lps
|
|
180
|
+
"$ lps acf pull",
|
|
181
|
+
"$ lps acf pull --type field-groups"
|
|
168
182
|
],
|
|
169
|
-
"flags": {
|
|
183
|
+
"flags": {
|
|
184
|
+
"dry-run": {
|
|
185
|
+
"char": "d",
|
|
186
|
+
"description": "Show what would change without making changes",
|
|
187
|
+
"name": "dry-run",
|
|
188
|
+
"allowNo": false,
|
|
189
|
+
"type": "boolean"
|
|
190
|
+
},
|
|
191
|
+
"type": {
|
|
192
|
+
"description": "Limit to specific ACF object types",
|
|
193
|
+
"name": "type",
|
|
194
|
+
"hasDynamicHelp": false,
|
|
195
|
+
"multiple": true,
|
|
196
|
+
"options": [
|
|
197
|
+
"field-groups",
|
|
198
|
+
"post-types",
|
|
199
|
+
"taxonomies",
|
|
200
|
+
"options-pages"
|
|
201
|
+
],
|
|
202
|
+
"type": "option"
|
|
203
|
+
}
|
|
204
|
+
},
|
|
170
205
|
"hasDynamicHelp": false,
|
|
171
206
|
"hiddenAliases": [],
|
|
172
|
-
"id": "
|
|
207
|
+
"id": "acf:pull",
|
|
173
208
|
"pluginAlias": "@loopress/cli",
|
|
174
209
|
"pluginName": "@loopress/cli",
|
|
175
210
|
"pluginType": "core",
|
|
176
211
|
"strict": true,
|
|
177
212
|
"enableJsonFlag": false,
|
|
213
|
+
"dryRunFlag": {
|
|
214
|
+
"dry-run": {
|
|
215
|
+
"char": "d",
|
|
216
|
+
"description": "Show what would change without making changes",
|
|
217
|
+
"allowNo": false,
|
|
218
|
+
"type": "boolean"
|
|
219
|
+
}
|
|
220
|
+
},
|
|
178
221
|
"isESM": true,
|
|
179
222
|
"relativePath": [
|
|
180
223
|
"dist",
|
|
181
224
|
"commands",
|
|
182
|
-
"
|
|
183
|
-
"
|
|
225
|
+
"acf",
|
|
226
|
+
"pull.js"
|
|
184
227
|
]
|
|
185
228
|
},
|
|
186
|
-
"
|
|
229
|
+
"acf:push": {
|
|
187
230
|
"aliases": [],
|
|
188
231
|
"args": {
|
|
189
232
|
"path": {
|
|
190
|
-
"description": "Path to
|
|
233
|
+
"description": "Path to ACF directory (overrides project config)",
|
|
191
234
|
"name": "path"
|
|
192
235
|
}
|
|
193
236
|
},
|
|
194
|
-
"description": "
|
|
237
|
+
"description": "Push ACF field groups, post types, taxonomies, and options pages to WordPress",
|
|
195
238
|
"examples": [
|
|
196
|
-
"$ lps
|
|
197
|
-
"$ lps
|
|
239
|
+
"$ lps acf push",
|
|
240
|
+
"$ lps acf push --type field-groups"
|
|
198
241
|
],
|
|
199
242
|
"flags": {
|
|
200
243
|
"dry-run": {
|
|
@@ -203,11 +246,56 @@
|
|
|
203
246
|
"name": "dry-run",
|
|
204
247
|
"allowNo": false,
|
|
205
248
|
"type": "boolean"
|
|
249
|
+
},
|
|
250
|
+
"type": {
|
|
251
|
+
"description": "Limit to specific ACF object types",
|
|
252
|
+
"name": "type",
|
|
253
|
+
"hasDynamicHelp": false,
|
|
254
|
+
"multiple": true,
|
|
255
|
+
"options": [
|
|
256
|
+
"field-groups",
|
|
257
|
+
"post-types",
|
|
258
|
+
"taxonomies",
|
|
259
|
+
"options-pages"
|
|
260
|
+
],
|
|
261
|
+
"type": "option"
|
|
206
262
|
}
|
|
207
263
|
},
|
|
208
264
|
"hasDynamicHelp": false,
|
|
209
265
|
"hiddenAliases": [],
|
|
210
|
-
"id": "
|
|
266
|
+
"id": "acf:push",
|
|
267
|
+
"pluginAlias": "@loopress/cli",
|
|
268
|
+
"pluginName": "@loopress/cli",
|
|
269
|
+
"pluginType": "core",
|
|
270
|
+
"strict": true,
|
|
271
|
+
"isESM": true,
|
|
272
|
+
"relativePath": [
|
|
273
|
+
"dist",
|
|
274
|
+
"commands",
|
|
275
|
+
"acf",
|
|
276
|
+
"push.js"
|
|
277
|
+
]
|
|
278
|
+
},
|
|
279
|
+
"composer:init": {
|
|
280
|
+
"aliases": [],
|
|
281
|
+
"args": {},
|
|
282
|
+
"description": "Create a composer.json wired to WPackagist for installing WordPress.org plugins and themes",
|
|
283
|
+
"examples": [
|
|
284
|
+
"$ lps composer init",
|
|
285
|
+
"$ lps composer init --dry-run"
|
|
286
|
+
],
|
|
287
|
+
"flags": {
|
|
288
|
+
"dry-run": {
|
|
289
|
+
"char": "d",
|
|
290
|
+
"description": "Show what would change without making changes",
|
|
291
|
+
"name": "dry-run",
|
|
292
|
+
"allowNo": false,
|
|
293
|
+
"type": "boolean"
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
"hasDynamicHelp": false,
|
|
297
|
+
"hiddenAliases": [],
|
|
298
|
+
"id": "composer:init",
|
|
211
299
|
"pluginAlias": "@loopress/cli",
|
|
212
300
|
"pluginName": "@loopress/cli",
|
|
213
301
|
"pluginType": "core",
|
|
@@ -225,22 +313,263 @@
|
|
|
225
313
|
"relativePath": [
|
|
226
314
|
"dist",
|
|
227
315
|
"commands",
|
|
228
|
-
"
|
|
316
|
+
"composer",
|
|
317
|
+
"init.js"
|
|
318
|
+
]
|
|
319
|
+
},
|
|
320
|
+
"composer:pull": {
|
|
321
|
+
"aliases": [],
|
|
322
|
+
"args": {},
|
|
323
|
+
"description": "Pull composer.json and composer.lock from WordPress",
|
|
324
|
+
"examples": [
|
|
325
|
+
"$ lps composer pull",
|
|
326
|
+
"$ lps composer pull --dry-run"
|
|
327
|
+
],
|
|
328
|
+
"flags": {
|
|
329
|
+
"dry-run": {
|
|
330
|
+
"char": "d",
|
|
331
|
+
"description": "Show what would change without making changes",
|
|
332
|
+
"name": "dry-run",
|
|
333
|
+
"allowNo": false,
|
|
334
|
+
"type": "boolean"
|
|
335
|
+
}
|
|
336
|
+
},
|
|
337
|
+
"hasDynamicHelp": false,
|
|
338
|
+
"hiddenAliases": [],
|
|
339
|
+
"id": "composer:pull",
|
|
340
|
+
"pluginAlias": "@loopress/cli",
|
|
341
|
+
"pluginName": "@loopress/cli",
|
|
342
|
+
"pluginType": "core",
|
|
343
|
+
"strict": true,
|
|
344
|
+
"enableJsonFlag": false,
|
|
345
|
+
"dryRunFlag": {
|
|
346
|
+
"dry-run": {
|
|
347
|
+
"char": "d",
|
|
348
|
+
"description": "Show what would change without making changes",
|
|
349
|
+
"allowNo": false,
|
|
350
|
+
"type": "boolean"
|
|
351
|
+
}
|
|
352
|
+
},
|
|
353
|
+
"isESM": true,
|
|
354
|
+
"relativePath": [
|
|
355
|
+
"dist",
|
|
356
|
+
"commands",
|
|
357
|
+
"composer",
|
|
229
358
|
"pull.js"
|
|
230
359
|
]
|
|
231
360
|
},
|
|
232
|
-
"
|
|
361
|
+
"composer:push": {
|
|
362
|
+
"aliases": [],
|
|
363
|
+
"args": {},
|
|
364
|
+
"description": "Push composer.json and composer.lock to WordPress and run composer install",
|
|
365
|
+
"examples": [
|
|
366
|
+
"$ lps composer push",
|
|
367
|
+
"$ lps composer push --dry-run"
|
|
368
|
+
],
|
|
369
|
+
"flags": {
|
|
370
|
+
"dry-run": {
|
|
371
|
+
"char": "d",
|
|
372
|
+
"description": "Show what would change without making changes",
|
|
373
|
+
"name": "dry-run",
|
|
374
|
+
"allowNo": false,
|
|
375
|
+
"type": "boolean"
|
|
376
|
+
}
|
|
377
|
+
},
|
|
378
|
+
"hasDynamicHelp": false,
|
|
379
|
+
"hiddenAliases": [],
|
|
380
|
+
"id": "composer:push",
|
|
381
|
+
"pluginAlias": "@loopress/cli",
|
|
382
|
+
"pluginName": "@loopress/cli",
|
|
383
|
+
"pluginType": "core",
|
|
384
|
+
"strict": true,
|
|
385
|
+
"isESM": true,
|
|
386
|
+
"relativePath": [
|
|
387
|
+
"dist",
|
|
388
|
+
"commands",
|
|
389
|
+
"composer",
|
|
390
|
+
"push.js"
|
|
391
|
+
]
|
|
392
|
+
},
|
|
393
|
+
"plugin:add": {
|
|
394
|
+
"aliases": [],
|
|
395
|
+
"args": {
|
|
396
|
+
"slug": {
|
|
397
|
+
"description": "Plugin slug on WordPress.org",
|
|
398
|
+
"name": "slug",
|
|
399
|
+
"required": true
|
|
400
|
+
}
|
|
401
|
+
},
|
|
402
|
+
"description": "Add a WordPress.org plugin to loopress.json",
|
|
403
|
+
"examples": [
|
|
404
|
+
"$ lps plugin add woocommerce",
|
|
405
|
+
"$ lps plugin add contact-form-7 --dry-run"
|
|
406
|
+
],
|
|
407
|
+
"flags": {
|
|
408
|
+
"dry-run": {
|
|
409
|
+
"char": "d",
|
|
410
|
+
"description": "Show what would change without making changes",
|
|
411
|
+
"name": "dry-run",
|
|
412
|
+
"allowNo": false,
|
|
413
|
+
"type": "boolean"
|
|
414
|
+
}
|
|
415
|
+
},
|
|
416
|
+
"hasDynamicHelp": false,
|
|
417
|
+
"hiddenAliases": [],
|
|
418
|
+
"id": "plugin:add",
|
|
419
|
+
"pluginAlias": "@loopress/cli",
|
|
420
|
+
"pluginName": "@loopress/cli",
|
|
421
|
+
"pluginType": "core",
|
|
422
|
+
"strict": true,
|
|
423
|
+
"enableJsonFlag": false,
|
|
424
|
+
"dryRunFlag": {
|
|
425
|
+
"dry-run": {
|
|
426
|
+
"char": "d",
|
|
427
|
+
"description": "Show what would change without making changes",
|
|
428
|
+
"allowNo": false,
|
|
429
|
+
"type": "boolean"
|
|
430
|
+
}
|
|
431
|
+
},
|
|
432
|
+
"isESM": true,
|
|
433
|
+
"relativePath": [
|
|
434
|
+
"dist",
|
|
435
|
+
"commands",
|
|
436
|
+
"plugin",
|
|
437
|
+
"add.js"
|
|
438
|
+
]
|
|
439
|
+
},
|
|
440
|
+
"plugin:pull": {
|
|
441
|
+
"aliases": [],
|
|
442
|
+
"args": {},
|
|
443
|
+
"description": "Pull installed plugins from WordPress into loopress.json",
|
|
444
|
+
"examples": [
|
|
445
|
+
"$ lps plugin pull",
|
|
446
|
+
"$ lps plugin pull --dry-run"
|
|
447
|
+
],
|
|
448
|
+
"flags": {
|
|
449
|
+
"dry-run": {
|
|
450
|
+
"char": "d",
|
|
451
|
+
"description": "Show what would change without making changes",
|
|
452
|
+
"name": "dry-run",
|
|
453
|
+
"allowNo": false,
|
|
454
|
+
"type": "boolean"
|
|
455
|
+
}
|
|
456
|
+
},
|
|
457
|
+
"hasDynamicHelp": false,
|
|
458
|
+
"hiddenAliases": [],
|
|
459
|
+
"id": "plugin:pull",
|
|
460
|
+
"pluginAlias": "@loopress/cli",
|
|
461
|
+
"pluginName": "@loopress/cli",
|
|
462
|
+
"pluginType": "core",
|
|
463
|
+
"strict": true,
|
|
464
|
+
"enableJsonFlag": false,
|
|
465
|
+
"dryRunFlag": {
|
|
466
|
+
"dry-run": {
|
|
467
|
+
"char": "d",
|
|
468
|
+
"description": "Show what would change without making changes",
|
|
469
|
+
"allowNo": false,
|
|
470
|
+
"type": "boolean"
|
|
471
|
+
}
|
|
472
|
+
},
|
|
473
|
+
"isESM": true,
|
|
474
|
+
"relativePath": [
|
|
475
|
+
"dist",
|
|
476
|
+
"commands",
|
|
477
|
+
"plugin",
|
|
478
|
+
"pull.js"
|
|
479
|
+
]
|
|
480
|
+
},
|
|
481
|
+
"plugin:push": {
|
|
482
|
+
"aliases": [],
|
|
483
|
+
"args": {},
|
|
484
|
+
"description": "Push plugins to WordPress to match loopress.json",
|
|
485
|
+
"examples": [
|
|
486
|
+
"$ lps plugin push",
|
|
487
|
+
"$ lps plugin push --dry-run"
|
|
488
|
+
],
|
|
489
|
+
"flags": {
|
|
490
|
+
"dry-run": {
|
|
491
|
+
"char": "d",
|
|
492
|
+
"description": "Show what would change without making changes",
|
|
493
|
+
"name": "dry-run",
|
|
494
|
+
"allowNo": false,
|
|
495
|
+
"type": "boolean"
|
|
496
|
+
}
|
|
497
|
+
},
|
|
498
|
+
"hasDynamicHelp": false,
|
|
499
|
+
"hiddenAliases": [],
|
|
500
|
+
"id": "plugin:push",
|
|
501
|
+
"pluginAlias": "@loopress/cli",
|
|
502
|
+
"pluginName": "@loopress/cli",
|
|
503
|
+
"pluginType": "core",
|
|
504
|
+
"strict": true,
|
|
505
|
+
"isESM": true,
|
|
506
|
+
"relativePath": [
|
|
507
|
+
"dist",
|
|
508
|
+
"commands",
|
|
509
|
+
"plugin",
|
|
510
|
+
"push.js"
|
|
511
|
+
]
|
|
512
|
+
},
|
|
513
|
+
"seo:list": {
|
|
514
|
+
"aliases": [],
|
|
515
|
+
"args": {},
|
|
516
|
+
"description": "List posts with SEO meta, and redirects if supported by the active SEO plugin, on WordPress",
|
|
517
|
+
"examples": [
|
|
518
|
+
"$ lps seo list",
|
|
519
|
+
"$ lps seo list --post-type post"
|
|
520
|
+
],
|
|
521
|
+
"flags": {
|
|
522
|
+
"json": {
|
|
523
|
+
"char": "j",
|
|
524
|
+
"description": "Output in JSON format",
|
|
525
|
+
"name": "json",
|
|
526
|
+
"allowNo": false,
|
|
527
|
+
"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
|
+
}
|
|
536
|
+
},
|
|
537
|
+
"hasDynamicHelp": false,
|
|
538
|
+
"hiddenAliases": [],
|
|
539
|
+
"id": "seo:list",
|
|
540
|
+
"pluginAlias": "@loopress/cli",
|
|
541
|
+
"pluginName": "@loopress/cli",
|
|
542
|
+
"pluginType": "core",
|
|
543
|
+
"strict": true,
|
|
544
|
+
"enableJsonFlag": false,
|
|
545
|
+
"dryRunFlag": {
|
|
546
|
+
"dry-run": {
|
|
547
|
+
"char": "d",
|
|
548
|
+
"description": "Show what would change without making changes",
|
|
549
|
+
"allowNo": false,
|
|
550
|
+
"type": "boolean"
|
|
551
|
+
}
|
|
552
|
+
},
|
|
553
|
+
"isESM": true,
|
|
554
|
+
"relativePath": [
|
|
555
|
+
"dist",
|
|
556
|
+
"commands",
|
|
557
|
+
"seo",
|
|
558
|
+
"list.js"
|
|
559
|
+
]
|
|
560
|
+
},
|
|
561
|
+
"seo:pull": {
|
|
233
562
|
"aliases": [],
|
|
234
563
|
"args": {
|
|
235
564
|
"path": {
|
|
236
|
-
"description": "Path to
|
|
565
|
+
"description": "Path to SEO directory (overrides project config)",
|
|
237
566
|
"name": "path"
|
|
238
567
|
}
|
|
239
568
|
},
|
|
240
|
-
"description": "
|
|
569
|
+
"description": "Pull SEO settings, post meta, and (if supported) redirects from WordPress",
|
|
241
570
|
"examples": [
|
|
242
|
-
"$ lps
|
|
243
|
-
"$ lps
|
|
571
|
+
"$ lps seo pull",
|
|
572
|
+
"$ lps seo pull --post-type post --post-type page"
|
|
244
573
|
],
|
|
245
574
|
"flags": {
|
|
246
575
|
"dry-run": {
|
|
@@ -249,20 +578,72 @@
|
|
|
249
578
|
"name": "dry-run",
|
|
250
579
|
"allowNo": false,
|
|
251
580
|
"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"
|
|
252
588
|
}
|
|
253
589
|
},
|
|
254
590
|
"hasDynamicHelp": false,
|
|
255
591
|
"hiddenAliases": [],
|
|
256
|
-
"id": "
|
|
592
|
+
"id": "seo:pull",
|
|
257
593
|
"pluginAlias": "@loopress/cli",
|
|
258
594
|
"pluginName": "@loopress/cli",
|
|
259
595
|
"pluginType": "core",
|
|
260
596
|
"strict": true,
|
|
597
|
+
"enableJsonFlag": false,
|
|
598
|
+
"dryRunFlag": {
|
|
599
|
+
"dry-run": {
|
|
600
|
+
"char": "d",
|
|
601
|
+
"description": "Show what would change without making changes",
|
|
602
|
+
"allowNo": false,
|
|
603
|
+
"type": "boolean"
|
|
604
|
+
}
|
|
605
|
+
},
|
|
261
606
|
"isESM": true,
|
|
262
607
|
"relativePath": [
|
|
263
608
|
"dist",
|
|
264
609
|
"commands",
|
|
265
|
-
"
|
|
610
|
+
"seo",
|
|
611
|
+
"pull.js"
|
|
612
|
+
]
|
|
613
|
+
},
|
|
614
|
+
"seo:push": {
|
|
615
|
+
"aliases": [],
|
|
616
|
+
"args": {
|
|
617
|
+
"path": {
|
|
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.",
|
|
623
|
+
"examples": [
|
|
624
|
+
"$ lps seo push"
|
|
625
|
+
],
|
|
626
|
+
"flags": {
|
|
627
|
+
"dry-run": {
|
|
628
|
+
"char": "d",
|
|
629
|
+
"description": "Show what would change without making changes",
|
|
630
|
+
"name": "dry-run",
|
|
631
|
+
"allowNo": false,
|
|
632
|
+
"type": "boolean"
|
|
633
|
+
}
|
|
634
|
+
},
|
|
635
|
+
"hasDynamicHelp": false,
|
|
636
|
+
"hiddenAliases": [],
|
|
637
|
+
"id": "seo:push",
|
|
638
|
+
"pluginAlias": "@loopress/cli",
|
|
639
|
+
"pluginName": "@loopress/cli",
|
|
640
|
+
"pluginType": "core",
|
|
641
|
+
"strict": true,
|
|
642
|
+
"isESM": true,
|
|
643
|
+
"relativePath": [
|
|
644
|
+
"dist",
|
|
645
|
+
"commands",
|
|
646
|
+
"seo",
|
|
266
647
|
"push.js"
|
|
267
648
|
]
|
|
268
649
|
},
|
|
@@ -410,32 +791,25 @@
|
|
|
410
791
|
"switch.js"
|
|
411
792
|
]
|
|
412
793
|
},
|
|
413
|
-
"
|
|
794
|
+
"snippet:list": {
|
|
414
795
|
"aliases": [],
|
|
415
|
-
"args": {
|
|
416
|
-
|
|
417
|
-
"description": "Plugin slug on WordPress.org",
|
|
418
|
-
"name": "slug",
|
|
419
|
-
"required": true
|
|
420
|
-
}
|
|
421
|
-
},
|
|
422
|
-
"description": "Add a WordPress.org plugin to loopress.json",
|
|
796
|
+
"args": {},
|
|
797
|
+
"description": "List snippets from WordPress",
|
|
423
798
|
"examples": [
|
|
424
|
-
"$ lps
|
|
425
|
-
"$ lps plugin add contact-form-7 --dry-run"
|
|
799
|
+
"$ lps snippet list"
|
|
426
800
|
],
|
|
427
801
|
"flags": {
|
|
428
|
-
"
|
|
429
|
-
"char": "
|
|
430
|
-
"description": "
|
|
431
|
-
"name": "
|
|
802
|
+
"json": {
|
|
803
|
+
"char": "j",
|
|
804
|
+
"description": "Output in JSON format",
|
|
805
|
+
"name": "json",
|
|
432
806
|
"allowNo": false,
|
|
433
807
|
"type": "boolean"
|
|
434
808
|
}
|
|
435
809
|
},
|
|
436
810
|
"hasDynamicHelp": false,
|
|
437
811
|
"hiddenAliases": [],
|
|
438
|
-
"id": "
|
|
812
|
+
"id": "snippet:list",
|
|
439
813
|
"pluginAlias": "@loopress/cli",
|
|
440
814
|
"pluginName": "@loopress/cli",
|
|
441
815
|
"pluginType": "core",
|
|
@@ -453,17 +827,52 @@
|
|
|
453
827
|
"relativePath": [
|
|
454
828
|
"dist",
|
|
455
829
|
"commands",
|
|
456
|
-
"
|
|
457
|
-
"
|
|
830
|
+
"snippet",
|
|
831
|
+
"list.js"
|
|
458
832
|
]
|
|
459
833
|
},
|
|
460
|
-
"
|
|
834
|
+
"snippet:publish": {
|
|
461
835
|
"aliases": [],
|
|
462
|
-
"args": {
|
|
463
|
-
|
|
836
|
+
"args": {
|
|
837
|
+
"path": {
|
|
838
|
+
"description": "Path to snippets directory (overrides project config)",
|
|
839
|
+
"name": "path"
|
|
840
|
+
}
|
|
841
|
+
},
|
|
842
|
+
"description": "Publish snippets to your Loopress account so they can be deployed to other projects. Does not touch any WordPress site.",
|
|
464
843
|
"examples": [
|
|
465
|
-
"$ lps
|
|
466
|
-
"$ lps
|
|
844
|
+
"$ lps snippet publish",
|
|
845
|
+
"$ lps snippet publish --path ./snippets"
|
|
846
|
+
],
|
|
847
|
+
"flags": {},
|
|
848
|
+
"hasDynamicHelp": false,
|
|
849
|
+
"hiddenAliases": [],
|
|
850
|
+
"id": "snippet:publish",
|
|
851
|
+
"pluginAlias": "@loopress/cli",
|
|
852
|
+
"pluginName": "@loopress/cli",
|
|
853
|
+
"pluginType": "core",
|
|
854
|
+
"strict": true,
|
|
855
|
+
"enableJsonFlag": false,
|
|
856
|
+
"isESM": true,
|
|
857
|
+
"relativePath": [
|
|
858
|
+
"dist",
|
|
859
|
+
"commands",
|
|
860
|
+
"snippet",
|
|
861
|
+
"publish.js"
|
|
862
|
+
]
|
|
863
|
+
},
|
|
864
|
+
"snippet:pull": {
|
|
865
|
+
"aliases": [],
|
|
866
|
+
"args": {
|
|
867
|
+
"path": {
|
|
868
|
+
"description": "Path to snippets directory (overrides project config)",
|
|
869
|
+
"name": "path"
|
|
870
|
+
}
|
|
871
|
+
},
|
|
872
|
+
"description": "Pull snippets from WordPress",
|
|
873
|
+
"examples": [
|
|
874
|
+
"$ lps snippet pull",
|
|
875
|
+
"$ lps snippet pull --path ./snippets"
|
|
467
876
|
],
|
|
468
877
|
"flags": {
|
|
469
878
|
"dry-run": {
|
|
@@ -476,7 +885,7 @@
|
|
|
476
885
|
},
|
|
477
886
|
"hasDynamicHelp": false,
|
|
478
887
|
"hiddenAliases": [],
|
|
479
|
-
"id": "
|
|
888
|
+
"id": "snippet:pull",
|
|
480
889
|
"pluginAlias": "@loopress/cli",
|
|
481
890
|
"pluginName": "@loopress/cli",
|
|
482
891
|
"pluginType": "core",
|
|
@@ -494,17 +903,22 @@
|
|
|
494
903
|
"relativePath": [
|
|
495
904
|
"dist",
|
|
496
905
|
"commands",
|
|
497
|
-
"
|
|
906
|
+
"snippet",
|
|
498
907
|
"pull.js"
|
|
499
908
|
]
|
|
500
909
|
},
|
|
501
|
-
"
|
|
910
|
+
"snippet:push": {
|
|
502
911
|
"aliases": [],
|
|
503
|
-
"args": {
|
|
504
|
-
|
|
912
|
+
"args": {
|
|
913
|
+
"path": {
|
|
914
|
+
"description": "Path to snippets directory (overrides project config)",
|
|
915
|
+
"name": "path"
|
|
916
|
+
}
|
|
917
|
+
},
|
|
918
|
+
"description": "Push snippets to WordPress. Local snippet files created or updated remotely are renamed on disk to the `<id>-<slug>` convention.",
|
|
505
919
|
"examples": [
|
|
506
|
-
"$ lps
|
|
507
|
-
"$ lps
|
|
920
|
+
"$ lps snippet push",
|
|
921
|
+
"$ lps snippet push --path ./snippets"
|
|
508
922
|
],
|
|
509
923
|
"flags": {
|
|
510
924
|
"dry-run": {
|
|
@@ -517,7 +931,7 @@
|
|
|
517
931
|
},
|
|
518
932
|
"hasDynamicHelp": false,
|
|
519
933
|
"hiddenAliases": [],
|
|
520
|
-
"id": "
|
|
934
|
+
"id": "snippet:push",
|
|
521
935
|
"pluginAlias": "@loopress/cli",
|
|
522
936
|
"pluginName": "@loopress/cli",
|
|
523
937
|
"pluginType": "core",
|
|
@@ -526,7 +940,7 @@
|
|
|
526
940
|
"relativePath": [
|
|
527
941
|
"dist",
|
|
528
942
|
"commands",
|
|
529
|
-
"
|
|
943
|
+
"snippet",
|
|
530
944
|
"push.js"
|
|
531
945
|
]
|
|
532
946
|
},
|
|
@@ -577,80 +991,7 @@
|
|
|
577
991
|
"telemetry",
|
|
578
992
|
"enable.js"
|
|
579
993
|
]
|
|
580
|
-
},
|
|
581
|
-
"composer:pull": {
|
|
582
|
-
"aliases": [],
|
|
583
|
-
"args": {},
|
|
584
|
-
"description": "Pull composer.lock from WordPress",
|
|
585
|
-
"examples": [
|
|
586
|
-
"$ lps composer pull",
|
|
587
|
-
"$ lps composer pull --dry-run"
|
|
588
|
-
],
|
|
589
|
-
"flags": {
|
|
590
|
-
"dry-run": {
|
|
591
|
-
"char": "d",
|
|
592
|
-
"description": "Show what would change without making changes",
|
|
593
|
-
"name": "dry-run",
|
|
594
|
-
"allowNo": false,
|
|
595
|
-
"type": "boolean"
|
|
596
|
-
}
|
|
597
|
-
},
|
|
598
|
-
"hasDynamicHelp": false,
|
|
599
|
-
"hiddenAliases": [],
|
|
600
|
-
"id": "composer:pull",
|
|
601
|
-
"pluginAlias": "@loopress/cli",
|
|
602
|
-
"pluginName": "@loopress/cli",
|
|
603
|
-
"pluginType": "core",
|
|
604
|
-
"strict": true,
|
|
605
|
-
"enableJsonFlag": false,
|
|
606
|
-
"dryRunFlag": {
|
|
607
|
-
"dry-run": {
|
|
608
|
-
"char": "d",
|
|
609
|
-
"description": "Show what would change without making changes",
|
|
610
|
-
"allowNo": false,
|
|
611
|
-
"type": "boolean"
|
|
612
|
-
}
|
|
613
|
-
},
|
|
614
|
-
"isESM": true,
|
|
615
|
-
"relativePath": [
|
|
616
|
-
"dist",
|
|
617
|
-
"commands",
|
|
618
|
-
"composer",
|
|
619
|
-
"pull.js"
|
|
620
|
-
]
|
|
621
|
-
},
|
|
622
|
-
"composer:push": {
|
|
623
|
-
"aliases": [],
|
|
624
|
-
"args": {},
|
|
625
|
-
"description": "Push composer.json and composer.lock to WordPress and run composer install",
|
|
626
|
-
"examples": [
|
|
627
|
-
"$ lps composer push",
|
|
628
|
-
"$ lps composer push --dry-run"
|
|
629
|
-
],
|
|
630
|
-
"flags": {
|
|
631
|
-
"dry-run": {
|
|
632
|
-
"char": "d",
|
|
633
|
-
"description": "Show what would change without making changes",
|
|
634
|
-
"name": "dry-run",
|
|
635
|
-
"allowNo": false,
|
|
636
|
-
"type": "boolean"
|
|
637
|
-
}
|
|
638
|
-
},
|
|
639
|
-
"hasDynamicHelp": false,
|
|
640
|
-
"hiddenAliases": [],
|
|
641
|
-
"id": "composer:push",
|
|
642
|
-
"pluginAlias": "@loopress/cli",
|
|
643
|
-
"pluginName": "@loopress/cli",
|
|
644
|
-
"pluginType": "core",
|
|
645
|
-
"strict": true,
|
|
646
|
-
"isESM": true,
|
|
647
|
-
"relativePath": [
|
|
648
|
-
"dist",
|
|
649
|
-
"commands",
|
|
650
|
-
"composer",
|
|
651
|
-
"push.js"
|
|
652
|
-
]
|
|
653
994
|
}
|
|
654
995
|
},
|
|
655
|
-
"version": "0.
|
|
996
|
+
"version": "0.17.0"
|
|
656
997
|
}
|