forest-cli 5.25.1 → 5.26.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.
Files changed (39) hide show
  1. package/dist/abstract-command.d.ts +1 -0
  2. package/dist/abstract-command.d.ts.map +1 -1
  3. package/dist/abstract-command.js +5 -1
  4. package/dist/abstract-project-create-command.d.ts +6 -0
  5. package/dist/abstract-project-create-command.d.ts.map +1 -1
  6. package/dist/abstract-project-create-command.js +36 -4
  7. package/dist/commands/layout/pull.d.ts.map +1 -1
  8. package/dist/commands/layout/pull.js +3 -4
  9. package/dist/commands/projects/create/demo.d.ts +3 -1
  10. package/dist/commands/projects/create/demo.d.ts.map +1 -1
  11. package/dist/commands/projects/create/demo.js +5 -2
  12. package/dist/commands/projects/create/in-app.d.ts +1 -0
  13. package/dist/commands/projects/create/in-app.d.ts.map +1 -1
  14. package/dist/commands/projects/create/in-app.js +2 -1
  15. package/dist/commands/projects/create/nosql.d.ts +2 -1
  16. package/dist/commands/projects/create/nosql.d.ts.map +1 -1
  17. package/dist/commands/projects/create/nosql.js +5 -2
  18. package/dist/commands/projects/create/sql.d.ts +2 -1
  19. package/dist/commands/projects/create/sql.d.ts.map +1 -1
  20. package/dist/commands/projects/create/sql.js +5 -2
  21. package/dist/commands/start.d.ts +9 -0
  22. package/dist/commands/start.d.ts.map +1 -1
  23. package/dist/commands/start.js +106 -20
  24. package/dist/serializers/project.js +10 -2
  25. package/dist/services/api.d.ts +1 -0
  26. package/dist/services/api.d.ts.map +1 -1
  27. package/dist/services/api.js +15 -2
  28. package/dist/services/invitation-claim.d.ts +33 -0
  29. package/dist/services/invitation-claim.d.ts.map +1 -0
  30. package/dist/services/invitation-claim.js +184 -0
  31. package/dist/services/layout/resolve-command-scope.d.ts.map +1 -1
  32. package/dist/services/layout/resolve-command-scope.js +1 -1
  33. package/dist/services/process-runner.d.ts.map +1 -1
  34. package/dist/services/process-runner.js +2 -1
  35. package/dist/services/projects/create/project-creator.d.ts +2 -1
  36. package/dist/services/projects/create/project-creator.d.ts.map +1 -1
  37. package/dist/services/projects/create/project-creator.js +6 -3
  38. package/oclif.manifest.json +282 -185
  39. package/package.json +3 -8
@@ -434,6 +434,19 @@
434
434
  "standalone"
435
435
  ],
436
436
  "type": "option"
437
+ },
438
+ "invitation": {
439
+ "description": "Developer invitation claim, from the invitation page.",
440
+ "name": "invitation",
441
+ "hasDynamicHelp": false,
442
+ "multiple": false,
443
+ "type": "option"
444
+ },
445
+ "yes": {
446
+ "description": "With --invitation, create the project for the inviter without asking. Required without a terminal.",
447
+ "name": "yes",
448
+ "allowNo": false,
449
+ "type": "boolean"
437
450
  }
438
451
  },
439
452
  "hasDynamicHelp": false,
@@ -882,7 +895,7 @@
882
895
  "flags": {
883
896
  "env": {
884
897
  "char": "e",
885
- "description": "Environment to pull from (name or id). Defaults to the environment of FOREST_ENV_SECRET when set, otherwise the development environment.",
898
+ "description": "Environment to pull from (name or id). Prompted if omitted.",
886
899
  "name": "env",
887
900
  "hasDynamicHelp": false,
888
901
  "multiple": false,
@@ -890,7 +903,7 @@
890
903
  },
891
904
  "team": {
892
905
  "char": "t",
893
- "description": "Team whose layout to pull (name or id). Defaults to the \"Operations\" team.",
906
+ "description": "Team whose layout to pull (name or id). Prompted if omitted.",
894
907
  "name": "team",
895
908
  "hasDynamicHelp": false,
896
909
  "multiple": false,
@@ -935,6 +948,188 @@
935
948
  "pull.js"
936
949
  ]
937
950
  },
951
+ "roles:apply": {
952
+ "aliases": [],
953
+ "args": {
954
+ "file": {
955
+ "description": "Path to the wide-format CSV file.",
956
+ "name": "file",
957
+ "required": true
958
+ }
959
+ },
960
+ "description": "Apply a wide-format CSV to update role permissions in an environment.",
961
+ "flags": {
962
+ "env": {
963
+ "char": "e",
964
+ "description": "Environment name to apply to.",
965
+ "name": "env",
966
+ "required": true,
967
+ "hasDynamicHelp": false,
968
+ "multiple": false,
969
+ "type": "option"
970
+ },
971
+ "force": {
972
+ "char": "F",
973
+ "description": "Skip confirmation prompt.",
974
+ "name": "force",
975
+ "allowNo": false,
976
+ "type": "boolean"
977
+ },
978
+ "projectId": {
979
+ "char": "p",
980
+ "description": "Forest project ID.",
981
+ "name": "projectId",
982
+ "hasDynamicHelp": false,
983
+ "multiple": false,
984
+ "type": "option"
985
+ }
986
+ },
987
+ "hasDynamicHelp": false,
988
+ "hiddenAliases": [],
989
+ "id": "roles:apply",
990
+ "pluginAlias": "forest-cli",
991
+ "pluginName": "forest-cli",
992
+ "pluginType": "core",
993
+ "strict": true,
994
+ "isESM": false,
995
+ "relativePath": [
996
+ "dist",
997
+ "commands",
998
+ "roles",
999
+ "apply.js"
1000
+ ]
1001
+ },
1002
+ "roles:copy": {
1003
+ "aliases": [],
1004
+ "args": {},
1005
+ "description": "Copy role permissions from one environment to another.",
1006
+ "flags": {
1007
+ "from": {
1008
+ "char": "f",
1009
+ "description": "Source environment name.",
1010
+ "name": "from",
1011
+ "required": true,
1012
+ "hasDynamicHelp": false,
1013
+ "multiple": false,
1014
+ "type": "option"
1015
+ },
1016
+ "to": {
1017
+ "char": "t",
1018
+ "description": "Destination environment name.",
1019
+ "name": "to",
1020
+ "required": true,
1021
+ "hasDynamicHelp": false,
1022
+ "multiple": false,
1023
+ "type": "option"
1024
+ },
1025
+ "projectId": {
1026
+ "char": "p",
1027
+ "description": "Forest project ID.",
1028
+ "name": "projectId",
1029
+ "hasDynamicHelp": false,
1030
+ "multiple": false,
1031
+ "type": "option"
1032
+ }
1033
+ },
1034
+ "hasDynamicHelp": false,
1035
+ "hiddenAliases": [],
1036
+ "id": "roles:copy",
1037
+ "pluginAlias": "forest-cli",
1038
+ "pluginName": "forest-cli",
1039
+ "pluginType": "core",
1040
+ "strict": true,
1041
+ "isESM": false,
1042
+ "relativePath": [
1043
+ "dist",
1044
+ "commands",
1045
+ "roles",
1046
+ "copy.js"
1047
+ ]
1048
+ },
1049
+ "roles:create": {
1050
+ "aliases": [],
1051
+ "args": {},
1052
+ "description": "Create a new role in a project.",
1053
+ "flags": {
1054
+ "name": {
1055
+ "char": "n",
1056
+ "description": "Name of the role to create.",
1057
+ "name": "name",
1058
+ "required": true,
1059
+ "hasDynamicHelp": false,
1060
+ "multiple": false,
1061
+ "type": "option"
1062
+ },
1063
+ "projectId": {
1064
+ "char": "p",
1065
+ "description": "Forest project ID.",
1066
+ "name": "projectId",
1067
+ "hasDynamicHelp": false,
1068
+ "multiple": false,
1069
+ "type": "option"
1070
+ }
1071
+ },
1072
+ "hasDynamicHelp": false,
1073
+ "hiddenAliases": [],
1074
+ "id": "roles:create",
1075
+ "pluginAlias": "forest-cli",
1076
+ "pluginName": "forest-cli",
1077
+ "pluginType": "core",
1078
+ "strict": true,
1079
+ "isESM": false,
1080
+ "relativePath": [
1081
+ "dist",
1082
+ "commands",
1083
+ "roles",
1084
+ "create.js"
1085
+ ]
1086
+ },
1087
+ "roles:export": {
1088
+ "aliases": [],
1089
+ "args": {},
1090
+ "description": "Export all roles and their permissions to a wide CSV file.",
1091
+ "flags": {
1092
+ "env": {
1093
+ "char": "e",
1094
+ "description": "Environment name to export permissions for.",
1095
+ "name": "env",
1096
+ "required": true,
1097
+ "hasDynamicHelp": false,
1098
+ "multiple": false,
1099
+ "type": "option"
1100
+ },
1101
+ "projectId": {
1102
+ "char": "p",
1103
+ "description": "Forest project ID.",
1104
+ "name": "projectId",
1105
+ "hasDynamicHelp": false,
1106
+ "multiple": false,
1107
+ "type": "option"
1108
+ },
1109
+ "output": {
1110
+ "char": "o",
1111
+ "description": "Output file path (default: stdout).",
1112
+ "name": "output",
1113
+ "hasDynamicHelp": false,
1114
+ "multiple": false,
1115
+ "type": "option"
1116
+ }
1117
+ },
1118
+ "hasDynamicHelp": false,
1119
+ "hiddenAliases": [],
1120
+ "id": "roles:export",
1121
+ "pluginAlias": "forest-cli",
1122
+ "pluginName": "forest-cli",
1123
+ "pluginType": "core",
1124
+ "strict": true,
1125
+ "isESM": false,
1126
+ "relativePath": [
1127
+ "dist",
1128
+ "commands",
1129
+ "roles",
1130
+ "export.js"
1131
+ ]
1132
+ },
938
1133
  "projects:create": {
939
1134
  "aliases": [],
940
1135
  "args": {
@@ -1086,6 +1281,14 @@
1086
1281
  "pluginAlias": "forest-cli",
1087
1282
  "pluginName": "forest-cli",
1088
1283
  "pluginType": "core",
1284
+ "invitationFlags": {
1285
+ "invitation": {
1286
+ "hidden": true,
1287
+ "input": [],
1288
+ "multiple": false,
1289
+ "type": "option"
1290
+ }
1291
+ },
1089
1292
  "options": {
1090
1293
  "databaseConnectionURL": {
1091
1294
  "oclif": {
@@ -1287,188 +1490,6 @@
1287
1490
  "get.js"
1288
1491
  ]
1289
1492
  },
1290
- "roles:apply": {
1291
- "aliases": [],
1292
- "args": {
1293
- "file": {
1294
- "description": "Path to the wide-format CSV file.",
1295
- "name": "file",
1296
- "required": true
1297
- }
1298
- },
1299
- "description": "Apply a wide-format CSV to update role permissions in an environment.",
1300
- "flags": {
1301
- "env": {
1302
- "char": "e",
1303
- "description": "Environment name to apply to.",
1304
- "name": "env",
1305
- "required": true,
1306
- "hasDynamicHelp": false,
1307
- "multiple": false,
1308
- "type": "option"
1309
- },
1310
- "force": {
1311
- "char": "F",
1312
- "description": "Skip confirmation prompt.",
1313
- "name": "force",
1314
- "allowNo": false,
1315
- "type": "boolean"
1316
- },
1317
- "projectId": {
1318
- "char": "p",
1319
- "description": "Forest project ID.",
1320
- "name": "projectId",
1321
- "hasDynamicHelp": false,
1322
- "multiple": false,
1323
- "type": "option"
1324
- }
1325
- },
1326
- "hasDynamicHelp": false,
1327
- "hiddenAliases": [],
1328
- "id": "roles:apply",
1329
- "pluginAlias": "forest-cli",
1330
- "pluginName": "forest-cli",
1331
- "pluginType": "core",
1332
- "strict": true,
1333
- "isESM": false,
1334
- "relativePath": [
1335
- "dist",
1336
- "commands",
1337
- "roles",
1338
- "apply.js"
1339
- ]
1340
- },
1341
- "roles:copy": {
1342
- "aliases": [],
1343
- "args": {},
1344
- "description": "Copy role permissions from one environment to another.",
1345
- "flags": {
1346
- "from": {
1347
- "char": "f",
1348
- "description": "Source environment name.",
1349
- "name": "from",
1350
- "required": true,
1351
- "hasDynamicHelp": false,
1352
- "multiple": false,
1353
- "type": "option"
1354
- },
1355
- "to": {
1356
- "char": "t",
1357
- "description": "Destination environment name.",
1358
- "name": "to",
1359
- "required": true,
1360
- "hasDynamicHelp": false,
1361
- "multiple": false,
1362
- "type": "option"
1363
- },
1364
- "projectId": {
1365
- "char": "p",
1366
- "description": "Forest project ID.",
1367
- "name": "projectId",
1368
- "hasDynamicHelp": false,
1369
- "multiple": false,
1370
- "type": "option"
1371
- }
1372
- },
1373
- "hasDynamicHelp": false,
1374
- "hiddenAliases": [],
1375
- "id": "roles:copy",
1376
- "pluginAlias": "forest-cli",
1377
- "pluginName": "forest-cli",
1378
- "pluginType": "core",
1379
- "strict": true,
1380
- "isESM": false,
1381
- "relativePath": [
1382
- "dist",
1383
- "commands",
1384
- "roles",
1385
- "copy.js"
1386
- ]
1387
- },
1388
- "roles:create": {
1389
- "aliases": [],
1390
- "args": {},
1391
- "description": "Create a new role in a project.",
1392
- "flags": {
1393
- "name": {
1394
- "char": "n",
1395
- "description": "Name of the role to create.",
1396
- "name": "name",
1397
- "required": true,
1398
- "hasDynamicHelp": false,
1399
- "multiple": false,
1400
- "type": "option"
1401
- },
1402
- "projectId": {
1403
- "char": "p",
1404
- "description": "Forest project ID.",
1405
- "name": "projectId",
1406
- "hasDynamicHelp": false,
1407
- "multiple": false,
1408
- "type": "option"
1409
- }
1410
- },
1411
- "hasDynamicHelp": false,
1412
- "hiddenAliases": [],
1413
- "id": "roles:create",
1414
- "pluginAlias": "forest-cli",
1415
- "pluginName": "forest-cli",
1416
- "pluginType": "core",
1417
- "strict": true,
1418
- "isESM": false,
1419
- "relativePath": [
1420
- "dist",
1421
- "commands",
1422
- "roles",
1423
- "create.js"
1424
- ]
1425
- },
1426
- "roles:export": {
1427
- "aliases": [],
1428
- "args": {},
1429
- "description": "Export all roles and their permissions to a wide CSV file.",
1430
- "flags": {
1431
- "env": {
1432
- "char": "e",
1433
- "description": "Environment name to export permissions for.",
1434
- "name": "env",
1435
- "required": true,
1436
- "hasDynamicHelp": false,
1437
- "multiple": false,
1438
- "type": "option"
1439
- },
1440
- "projectId": {
1441
- "char": "p",
1442
- "description": "Forest project ID.",
1443
- "name": "projectId",
1444
- "hasDynamicHelp": false,
1445
- "multiple": false,
1446
- "type": "option"
1447
- },
1448
- "output": {
1449
- "char": "o",
1450
- "description": "Output file path (default: stdout).",
1451
- "name": "output",
1452
- "hasDynamicHelp": false,
1453
- "multiple": false,
1454
- "type": "option"
1455
- }
1456
- },
1457
- "hasDynamicHelp": false,
1458
- "hiddenAliases": [],
1459
- "id": "roles:export",
1460
- "pluginAlias": "forest-cli",
1461
- "pluginName": "forest-cli",
1462
- "pluginType": "core",
1463
- "strict": true,
1464
- "isESM": false,
1465
- "relativePath": [
1466
- "dist",
1467
- "commands",
1468
- "roles",
1469
- "export.js"
1470
- ]
1471
- },
1472
1493
  "schema:apply": {
1473
1494
  "aliases": [],
1474
1495
  "args": {},
@@ -2221,6 +2242,14 @@
2221
2242
  "pluginAlias": "forest-cli",
2222
2243
  "pluginName": "forest-cli",
2223
2244
  "pluginType": "core",
2245
+ "invitationFlags": {
2246
+ "invitation": {
2247
+ "hidden": true,
2248
+ "input": [],
2249
+ "multiple": false,
2250
+ "type": "option"
2251
+ }
2252
+ },
2224
2253
  "options": {
2225
2254
  "databaseConnectionURL": {
2226
2255
  "oclif": {
@@ -2590,6 +2619,14 @@
2590
2619
  "pluginAlias": "forest-cli",
2591
2620
  "pluginName": "forest-cli",
2592
2621
  "pluginType": "core",
2622
+ "invitationFlags": {
2623
+ "invitation": {
2624
+ "hidden": true,
2625
+ "input": [],
2626
+ "multiple": false,
2627
+ "type": "option"
2628
+ }
2629
+ },
2593
2630
  "options": {
2594
2631
  "databaseConnectionURL": {
2595
2632
  "oclif": {
@@ -2844,6 +2881,13 @@
2844
2881
  "typescript"
2845
2882
  ],
2846
2883
  "type": "option"
2884
+ },
2885
+ "invitation": {
2886
+ "hidden": true,
2887
+ "name": "invitation",
2888
+ "hasDynamicHelp": false,
2889
+ "multiple": false,
2890
+ "type": "option"
2847
2891
  }
2848
2892
  },
2849
2893
  "hasDynamicHelp": false,
@@ -2852,6 +2896,14 @@
2852
2896
  "pluginAlias": "forest-cli",
2853
2897
  "pluginName": "forest-cli",
2854
2898
  "pluginType": "core",
2899
+ "invitationFlags": {
2900
+ "invitation": {
2901
+ "hidden": true,
2902
+ "input": [],
2903
+ "multiple": false,
2904
+ "type": "option"
2905
+ }
2906
+ },
2855
2907
  "options": {
2856
2908
  "applicationHost": {
2857
2909
  "default": "http://localhost",
@@ -2941,6 +2993,13 @@
2941
2993
  "multiple": false,
2942
2994
  "type": "option"
2943
2995
  },
2996
+ "invitation": {
2997
+ "hidden": true,
2998
+ "name": "invitation",
2999
+ "hasDynamicHelp": false,
3000
+ "multiple": false,
3001
+ "type": "option"
3002
+ },
2944
3003
  "format": {
2945
3004
  "description": "Output format. With `json`, stdout carries only a machine-readable `{\"projectId\", \"envSecret\", \"authSecret\", \"endpoint\"}` document.",
2946
3005
  "name": "format",
@@ -2960,6 +3019,14 @@
2960
3019
  "pluginAlias": "forest-cli",
2961
3020
  "pluginName": "forest-cli",
2962
3021
  "pluginType": "core",
3022
+ "invitationFlags": {
3023
+ "invitation": {
3024
+ "hidden": true,
3025
+ "input": [],
3026
+ "multiple": false,
3027
+ "type": "option"
3028
+ }
3029
+ },
2963
3030
  "options": {
2964
3031
  "applicationHost": {
2965
3032
  "default": "http://localhost",
@@ -3145,6 +3212,13 @@
3145
3212
  "typescript"
3146
3213
  ],
3147
3214
  "type": "option"
3215
+ },
3216
+ "invitation": {
3217
+ "hidden": true,
3218
+ "name": "invitation",
3219
+ "hasDynamicHelp": false,
3220
+ "multiple": false,
3221
+ "type": "option"
3148
3222
  }
3149
3223
  },
3150
3224
  "hasDynamicHelp": false,
@@ -3153,6 +3227,14 @@
3153
3227
  "pluginAlias": "forest-cli",
3154
3228
  "pluginName": "forest-cli",
3155
3229
  "pluginType": "core",
3230
+ "invitationFlags": {
3231
+ "invitation": {
3232
+ "hidden": true,
3233
+ "input": [],
3234
+ "multiple": false,
3235
+ "type": "option"
3236
+ }
3237
+ },
3156
3238
  "options": {
3157
3239
  "databaseConnectionURL": {
3158
3240
  "oclif": {
@@ -3514,6 +3596,13 @@
3514
3596
  "typescript"
3515
3597
  ],
3516
3598
  "type": "option"
3599
+ },
3600
+ "invitation": {
3601
+ "hidden": true,
3602
+ "name": "invitation",
3603
+ "hasDynamicHelp": false,
3604
+ "multiple": false,
3605
+ "type": "option"
3517
3606
  }
3518
3607
  },
3519
3608
  "hasDynamicHelp": false,
@@ -3522,6 +3611,14 @@
3522
3611
  "pluginAlias": "forest-cli",
3523
3612
  "pluginName": "forest-cli",
3524
3613
  "pluginType": "core",
3614
+ "invitationFlags": {
3615
+ "invitation": {
3616
+ "hidden": true,
3617
+ "input": [],
3618
+ "multiple": false,
3619
+ "type": "option"
3620
+ }
3621
+ },
3525
3622
  "options": {
3526
3623
  "databaseConnectionURL": {
3527
3624
  "oclif": {
@@ -3736,5 +3833,5 @@
3736
3833
  ]
3737
3834
  }
3738
3835
  },
3739
- "version": "5.25.1"
3836
+ "version": "5.26.0"
3740
3837
  }
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.25.1",
4
+ "version": "5.26.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.10",
34
34
  "inquirer": "6.2.0",
35
- "joi": "17.13.8",
35
+ "joi": "17.13.9",
36
36
  "json-diff": "1.0.0",
37
37
  "jsonapi-serializer": "3.6.2",
38
38
  "jsonwebtoken": "9.0.3",
@@ -142,11 +142,6 @@
142
142
  "inquirer/**/tmp": "^0.2.6",
143
143
  "mongodb/mongodb-connection-string-url": "^3.0.2",
144
144
  "filelist": "^2.0.2",
145
- "fast-xml-parser": "^5.7.0",
146
- "undici": "^6.29.1",
147
- "superagent/qs": "^6.16.1",
148
- "fast-uri": "^3.1.9",
149
- "ip-address": "^10.7.4",
150
- "npm": "^11.21.2"
145
+ "fast-xml-parser": "^5.7.0"
151
146
  }
152
147
  }