forest-cli 5.22.0 → 5.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/dist/commands/roles/apply.d.ts.map +1 -1
- package/dist/commands/roles/apply.js +5 -7
- package/dist/commands/start.d.ts +138 -0
- package/dist/commands/start.d.ts.map +1 -0
- package/dist/commands/start.js +925 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/forest-layout.json +32 -0
- package/dist/services/onboarding/detect.d.ts +27 -0
- package/dist/services/onboarding/detect.d.ts.map +1 -0
- package/dist/services/onboarding/detect.js +75 -0
- package/dist/services/onboarding/env-file.d.ts +34 -0
- package/dist/services/onboarding/env-file.d.ts.map +1 -0
- package/dist/services/onboarding/env-file.js +129 -0
- package/dist/services/process-runner.d.ts +4 -2
- package/dist/services/process-runner.d.ts.map +1 -1
- package/dist/services/process-runner.js +4 -1
- package/dist/services/roles-csv.d.ts +27 -1
- package/dist/services/roles-csv.d.ts.map +1 -1
- package/dist/services/roles-csv.js +175 -51
- package/oclif.manifest.json +195 -113
- package/package.json +8 -5
package/oclif.manifest.json
CHANGED
|
@@ -368,6 +368,88 @@
|
|
|
368
368
|
"set-origin.js"
|
|
369
369
|
]
|
|
370
370
|
},
|
|
371
|
+
"start": {
|
|
372
|
+
"aliases": [],
|
|
373
|
+
"args": {},
|
|
374
|
+
"description": "Set up Forest from scratch: log in, create a project, boot its back-end, and hand your coding agent the skills to build on it.",
|
|
375
|
+
"flags": {
|
|
376
|
+
"dry-run": {
|
|
377
|
+
"description": "Print every command instead of running it — to review the flow.",
|
|
378
|
+
"name": "dry-run",
|
|
379
|
+
"allowNo": false,
|
|
380
|
+
"type": "boolean"
|
|
381
|
+
},
|
|
382
|
+
"flow": {
|
|
383
|
+
"description": "Skip the first question. Without it, a non-interactive run defaults to demo.",
|
|
384
|
+
"name": "flow",
|
|
385
|
+
"hasDynamicHelp": false,
|
|
386
|
+
"multiple": false,
|
|
387
|
+
"options": [
|
|
388
|
+
"demo",
|
|
389
|
+
"standalone",
|
|
390
|
+
"inapp"
|
|
391
|
+
],
|
|
392
|
+
"type": "option"
|
|
393
|
+
},
|
|
394
|
+
"stack": {
|
|
395
|
+
"description": "In-app stack.",
|
|
396
|
+
"name": "stack",
|
|
397
|
+
"hasDynamicHelp": false,
|
|
398
|
+
"multiple": false,
|
|
399
|
+
"options": [
|
|
400
|
+
"rails",
|
|
401
|
+
"node"
|
|
402
|
+
],
|
|
403
|
+
"type": "option"
|
|
404
|
+
},
|
|
405
|
+
"name": {
|
|
406
|
+
"description": "Project name (skips the prompt).",
|
|
407
|
+
"name": "name",
|
|
408
|
+
"hasDynamicHelp": false,
|
|
409
|
+
"multiple": false,
|
|
410
|
+
"type": "option"
|
|
411
|
+
},
|
|
412
|
+
"db": {
|
|
413
|
+
"description": "Database connection URL (skips the database prompts).",
|
|
414
|
+
"name": "db",
|
|
415
|
+
"hasDynamicHelp": false,
|
|
416
|
+
"multiple": false,
|
|
417
|
+
"type": "option"
|
|
418
|
+
},
|
|
419
|
+
"schema": {
|
|
420
|
+
"description": "Database schema, with --db (default: public).",
|
|
421
|
+
"name": "schema",
|
|
422
|
+
"hasDynamicHelp": false,
|
|
423
|
+
"multiple": false,
|
|
424
|
+
"type": "option"
|
|
425
|
+
},
|
|
426
|
+
"mount": {
|
|
427
|
+
"description": "How to mount Forest in a Node app.",
|
|
428
|
+
"name": "mount",
|
|
429
|
+
"hasDynamicHelp": false,
|
|
430
|
+
"multiple": false,
|
|
431
|
+
"options": [
|
|
432
|
+
"ai",
|
|
433
|
+
"manual",
|
|
434
|
+
"standalone"
|
|
435
|
+
],
|
|
436
|
+
"type": "option"
|
|
437
|
+
}
|
|
438
|
+
},
|
|
439
|
+
"hasDynamicHelp": false,
|
|
440
|
+
"hiddenAliases": [],
|
|
441
|
+
"id": "start",
|
|
442
|
+
"pluginAlias": "forest-cli",
|
|
443
|
+
"pluginName": "forest-cli",
|
|
444
|
+
"pluginType": "core",
|
|
445
|
+
"strict": true,
|
|
446
|
+
"isESM": false,
|
|
447
|
+
"relativePath": [
|
|
448
|
+
"dist",
|
|
449
|
+
"commands",
|
|
450
|
+
"start.js"
|
|
451
|
+
]
|
|
452
|
+
},
|
|
371
453
|
"switch": {
|
|
372
454
|
"aliases": [
|
|
373
455
|
"branch:switch"
|
|
@@ -1205,118 +1287,6 @@
|
|
|
1205
1287
|
"get.js"
|
|
1206
1288
|
]
|
|
1207
1289
|
},
|
|
1208
|
-
"schema:apply": {
|
|
1209
|
-
"aliases": [],
|
|
1210
|
-
"args": {},
|
|
1211
|
-
"description": "Apply the current schema of your repository to the specified environment (using your \".forestadmin-schema.json\" file).",
|
|
1212
|
-
"flags": {
|
|
1213
|
-
"secret": {
|
|
1214
|
-
"char": "s",
|
|
1215
|
-
"description": "Environment secret of the project (FOREST_ENV_SECRET).",
|
|
1216
|
-
"name": "secret",
|
|
1217
|
-
"required": false,
|
|
1218
|
-
"hasDynamicHelp": false,
|
|
1219
|
-
"multiple": false,
|
|
1220
|
-
"type": "option"
|
|
1221
|
-
}
|
|
1222
|
-
},
|
|
1223
|
-
"hasDynamicHelp": false,
|
|
1224
|
-
"hiddenAliases": [],
|
|
1225
|
-
"id": "schema:apply",
|
|
1226
|
-
"pluginAlias": "forest-cli",
|
|
1227
|
-
"pluginName": "forest-cli",
|
|
1228
|
-
"pluginType": "core",
|
|
1229
|
-
"strict": true,
|
|
1230
|
-
"isESM": false,
|
|
1231
|
-
"relativePath": [
|
|
1232
|
-
"dist",
|
|
1233
|
-
"commands",
|
|
1234
|
-
"schema",
|
|
1235
|
-
"apply.js"
|
|
1236
|
-
]
|
|
1237
|
-
},
|
|
1238
|
-
"schema:diff": {
|
|
1239
|
-
"aliases": [],
|
|
1240
|
-
"args": {
|
|
1241
|
-
"environmentIdFrom": {
|
|
1242
|
-
"description": "ID of an environment to compare.",
|
|
1243
|
-
"name": "environmentIdFrom",
|
|
1244
|
-
"required": true
|
|
1245
|
-
},
|
|
1246
|
-
"environmentIdTo": {
|
|
1247
|
-
"description": "ID of an environment to compare.",
|
|
1248
|
-
"name": "environmentIdTo",
|
|
1249
|
-
"required": true
|
|
1250
|
-
}
|
|
1251
|
-
},
|
|
1252
|
-
"description": "Allow to compare two environment schemas",
|
|
1253
|
-
"flags": {
|
|
1254
|
-
"help": {
|
|
1255
|
-
"description": "Display usage information.",
|
|
1256
|
-
"name": "help",
|
|
1257
|
-
"allowNo": false,
|
|
1258
|
-
"type": "boolean"
|
|
1259
|
-
}
|
|
1260
|
-
},
|
|
1261
|
-
"hasDynamicHelp": false,
|
|
1262
|
-
"hiddenAliases": [],
|
|
1263
|
-
"id": "schema:diff",
|
|
1264
|
-
"pluginAlias": "forest-cli",
|
|
1265
|
-
"pluginName": "forest-cli",
|
|
1266
|
-
"pluginType": "core",
|
|
1267
|
-
"strict": true,
|
|
1268
|
-
"isESM": false,
|
|
1269
|
-
"relativePath": [
|
|
1270
|
-
"dist",
|
|
1271
|
-
"commands",
|
|
1272
|
-
"schema",
|
|
1273
|
-
"diff.js"
|
|
1274
|
-
]
|
|
1275
|
-
},
|
|
1276
|
-
"schema:update": {
|
|
1277
|
-
"aliases": [],
|
|
1278
|
-
"args": {},
|
|
1279
|
-
"description": "Refresh your schema by generating files that do not currently exist.",
|
|
1280
|
-
"flags": {
|
|
1281
|
-
"config": {
|
|
1282
|
-
"char": "c",
|
|
1283
|
-
"dependsOn": [],
|
|
1284
|
-
"description": "Database configuration file to use.",
|
|
1285
|
-
"exclusive": [],
|
|
1286
|
-
"name": "config",
|
|
1287
|
-
"required": false,
|
|
1288
|
-
"default": "config/databases.js",
|
|
1289
|
-
"hasDynamicHelp": false,
|
|
1290
|
-
"multiple": false,
|
|
1291
|
-
"type": "option"
|
|
1292
|
-
},
|
|
1293
|
-
"outputDirectory": {
|
|
1294
|
-
"char": "o",
|
|
1295
|
-
"dependsOn": [],
|
|
1296
|
-
"description": "Output directory where to generate new files.",
|
|
1297
|
-
"exclusive": [],
|
|
1298
|
-
"name": "outputDirectory",
|
|
1299
|
-
"required": false,
|
|
1300
|
-
"hasDynamicHelp": false,
|
|
1301
|
-
"multiple": false,
|
|
1302
|
-
"type": "option"
|
|
1303
|
-
}
|
|
1304
|
-
},
|
|
1305
|
-
"hasDynamicHelp": false,
|
|
1306
|
-
"hiddenAliases": [],
|
|
1307
|
-
"id": "schema:update",
|
|
1308
|
-
"pluginAlias": "forest-cli",
|
|
1309
|
-
"pluginName": "forest-cli",
|
|
1310
|
-
"pluginType": "core",
|
|
1311
|
-
"strict": true,
|
|
1312
|
-
"isESM": false,
|
|
1313
|
-
"relativePath": [
|
|
1314
|
-
"dist",
|
|
1315
|
-
"commands",
|
|
1316
|
-
"schema",
|
|
1317
|
-
"update.js"
|
|
1318
|
-
]
|
|
1319
|
-
},
|
|
1320
1290
|
"roles:apply": {
|
|
1321
1291
|
"aliases": [],
|
|
1322
1292
|
"args": {
|
|
@@ -1499,6 +1469,118 @@
|
|
|
1499
1469
|
"export.js"
|
|
1500
1470
|
]
|
|
1501
1471
|
},
|
|
1472
|
+
"schema:apply": {
|
|
1473
|
+
"aliases": [],
|
|
1474
|
+
"args": {},
|
|
1475
|
+
"description": "Apply the current schema of your repository to the specified environment (using your \".forestadmin-schema.json\" file).",
|
|
1476
|
+
"flags": {
|
|
1477
|
+
"secret": {
|
|
1478
|
+
"char": "s",
|
|
1479
|
+
"description": "Environment secret of the project (FOREST_ENV_SECRET).",
|
|
1480
|
+
"name": "secret",
|
|
1481
|
+
"required": false,
|
|
1482
|
+
"hasDynamicHelp": false,
|
|
1483
|
+
"multiple": false,
|
|
1484
|
+
"type": "option"
|
|
1485
|
+
}
|
|
1486
|
+
},
|
|
1487
|
+
"hasDynamicHelp": false,
|
|
1488
|
+
"hiddenAliases": [],
|
|
1489
|
+
"id": "schema:apply",
|
|
1490
|
+
"pluginAlias": "forest-cli",
|
|
1491
|
+
"pluginName": "forest-cli",
|
|
1492
|
+
"pluginType": "core",
|
|
1493
|
+
"strict": true,
|
|
1494
|
+
"isESM": false,
|
|
1495
|
+
"relativePath": [
|
|
1496
|
+
"dist",
|
|
1497
|
+
"commands",
|
|
1498
|
+
"schema",
|
|
1499
|
+
"apply.js"
|
|
1500
|
+
]
|
|
1501
|
+
},
|
|
1502
|
+
"schema:diff": {
|
|
1503
|
+
"aliases": [],
|
|
1504
|
+
"args": {
|
|
1505
|
+
"environmentIdFrom": {
|
|
1506
|
+
"description": "ID of an environment to compare.",
|
|
1507
|
+
"name": "environmentIdFrom",
|
|
1508
|
+
"required": true
|
|
1509
|
+
},
|
|
1510
|
+
"environmentIdTo": {
|
|
1511
|
+
"description": "ID of an environment to compare.",
|
|
1512
|
+
"name": "environmentIdTo",
|
|
1513
|
+
"required": true
|
|
1514
|
+
}
|
|
1515
|
+
},
|
|
1516
|
+
"description": "Allow to compare two environment schemas",
|
|
1517
|
+
"flags": {
|
|
1518
|
+
"help": {
|
|
1519
|
+
"description": "Display usage information.",
|
|
1520
|
+
"name": "help",
|
|
1521
|
+
"allowNo": false,
|
|
1522
|
+
"type": "boolean"
|
|
1523
|
+
}
|
|
1524
|
+
},
|
|
1525
|
+
"hasDynamicHelp": false,
|
|
1526
|
+
"hiddenAliases": [],
|
|
1527
|
+
"id": "schema:diff",
|
|
1528
|
+
"pluginAlias": "forest-cli",
|
|
1529
|
+
"pluginName": "forest-cli",
|
|
1530
|
+
"pluginType": "core",
|
|
1531
|
+
"strict": true,
|
|
1532
|
+
"isESM": false,
|
|
1533
|
+
"relativePath": [
|
|
1534
|
+
"dist",
|
|
1535
|
+
"commands",
|
|
1536
|
+
"schema",
|
|
1537
|
+
"diff.js"
|
|
1538
|
+
]
|
|
1539
|
+
},
|
|
1540
|
+
"schema:update": {
|
|
1541
|
+
"aliases": [],
|
|
1542
|
+
"args": {},
|
|
1543
|
+
"description": "Refresh your schema by generating files that do not currently exist.",
|
|
1544
|
+
"flags": {
|
|
1545
|
+
"config": {
|
|
1546
|
+
"char": "c",
|
|
1547
|
+
"dependsOn": [],
|
|
1548
|
+
"description": "Database configuration file to use.",
|
|
1549
|
+
"exclusive": [],
|
|
1550
|
+
"name": "config",
|
|
1551
|
+
"required": false,
|
|
1552
|
+
"default": "config/databases.js",
|
|
1553
|
+
"hasDynamicHelp": false,
|
|
1554
|
+
"multiple": false,
|
|
1555
|
+
"type": "option"
|
|
1556
|
+
},
|
|
1557
|
+
"outputDirectory": {
|
|
1558
|
+
"char": "o",
|
|
1559
|
+
"dependsOn": [],
|
|
1560
|
+
"description": "Output directory where to generate new files.",
|
|
1561
|
+
"exclusive": [],
|
|
1562
|
+
"name": "outputDirectory",
|
|
1563
|
+
"required": false,
|
|
1564
|
+
"hasDynamicHelp": false,
|
|
1565
|
+
"multiple": false,
|
|
1566
|
+
"type": "option"
|
|
1567
|
+
}
|
|
1568
|
+
},
|
|
1569
|
+
"hasDynamicHelp": false,
|
|
1570
|
+
"hiddenAliases": [],
|
|
1571
|
+
"id": "schema:update",
|
|
1572
|
+
"pluginAlias": "forest-cli",
|
|
1573
|
+
"pluginName": "forest-cli",
|
|
1574
|
+
"pluginType": "core",
|
|
1575
|
+
"strict": true,
|
|
1576
|
+
"isESM": false,
|
|
1577
|
+
"relativePath": [
|
|
1578
|
+
"dist",
|
|
1579
|
+
"commands",
|
|
1580
|
+
"schema",
|
|
1581
|
+
"update.js"
|
|
1582
|
+
]
|
|
1583
|
+
},
|
|
1502
1584
|
"teams:copy-layout": {
|
|
1503
1585
|
"aliases": [],
|
|
1504
1586
|
"args": {},
|
|
@@ -3576,5 +3658,5 @@
|
|
|
3576
3658
|
]
|
|
3577
3659
|
}
|
|
3578
3660
|
},
|
|
3579
|
-
"version": "5.
|
|
3661
|
+
"version": "5.23.0"
|
|
3580
3662
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "forest-cli",
|
|
3
3
|
"description": "The Lumberjacks' toolbelt is the Forest CLI which makes easy to manage your back office application directly from the terminal.",
|
|
4
|
-
"version": "5.
|
|
4
|
+
"version": "5.23.0",
|
|
5
5
|
"author": "Sandro Munda",
|
|
6
6
|
"contributors": [
|
|
7
7
|
"Arnaud Valensi <arnaud.valensi@gmail.com>",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"dotenv": "8.2.0",
|
|
33
33
|
"handlebars": "4.7.9",
|
|
34
34
|
"inquirer": "6.2.0",
|
|
35
|
-
"joi": "17.13.
|
|
35
|
+
"joi": "17.13.6",
|
|
36
36
|
"json-diff": "1.0.0",
|
|
37
37
|
"jsonapi-serializer": "3.6.2",
|
|
38
38
|
"jsonwebtoken": "9.0.3",
|
|
@@ -143,8 +143,11 @@
|
|
|
143
143
|
"uuid": "^11.1.1",
|
|
144
144
|
"inquirer/**/tmp": "^0.2.6",
|
|
145
145
|
"brace-expansion": "^1.1.16 || ^2.1.2",
|
|
146
|
-
"
|
|
147
|
-
"
|
|
148
|
-
"
|
|
146
|
+
"@oclif/core/js-yaml": "^3.15.2",
|
|
147
|
+
"@istanbuljs/load-nyc-config/js-yaml": "^3.15.2",
|
|
148
|
+
"eslint/js-yaml": "^4.3.2",
|
|
149
|
+
"@eslint/eslintrc/js-yaml": "^4.3.2",
|
|
150
|
+
"cosmiconfig/js-yaml": "^4.3.2",
|
|
151
|
+
"browserslist": "^4.28.7"
|
|
149
152
|
}
|
|
150
153
|
}
|