hereya-cli 0.83.1 → 0.84.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.
@@ -1185,6 +1185,322 @@
1185
1185
  "index.js"
1186
1186
  ]
1187
1187
  },
1188
+ "app:deploy": {
1189
+ "aliases": [],
1190
+ "args": {
1191
+ "name": {
1192
+ "description": "app name in org/name format",
1193
+ "name": "name",
1194
+ "required": true
1195
+ }
1196
+ },
1197
+ "description": "Deploy a hereya-app to a workspace.",
1198
+ "examples": [
1199
+ "<%= config.bin %> <%= command.id %> my-org/my-app -w my-workspace",
1200
+ "<%= config.bin %> <%= command.id %> my-org/my-app -w prod --version 1.2.0",
1201
+ "<%= config.bin %> <%= command.id %> my-org/my-app -w prod -V 'app.yaml: \"key: value\"'",
1202
+ "<%= config.bin %> <%= command.id %> my-org/my-app -w prod --vars-file ./hereyavars.yaml"
1203
+ ],
1204
+ "flags": {
1205
+ "parameter": {
1206
+ "char": "p",
1207
+ "description": "parameter for the app deployment, in the form of key=value (repeatable)",
1208
+ "name": "parameter",
1209
+ "default": [],
1210
+ "hasDynamicHelp": false,
1211
+ "multiple": true,
1212
+ "type": "option"
1213
+ },
1214
+ "vars": {
1215
+ "char": "V",
1216
+ "description": "YAML string mapping hereyavars filename -> YAML body (mutually exclusive with --vars-file)",
1217
+ "exclusive": [
1218
+ "vars-file"
1219
+ ],
1220
+ "name": "vars",
1221
+ "hasDynamicHelp": false,
1222
+ "multiple": false,
1223
+ "type": "option"
1224
+ },
1225
+ "vars-file": {
1226
+ "description": "path to a YAML file mapping hereyavars filename -> YAML body (mutually exclusive with --vars)",
1227
+ "exclusive": [
1228
+ "vars"
1229
+ ],
1230
+ "name": "vars-file",
1231
+ "hasDynamicHelp": false,
1232
+ "multiple": false,
1233
+ "type": "option"
1234
+ },
1235
+ "version": {
1236
+ "description": "specific app version to deploy (defaults to latest)",
1237
+ "name": "version",
1238
+ "hasDynamicHelp": false,
1239
+ "multiple": false,
1240
+ "type": "option"
1241
+ },
1242
+ "workspace": {
1243
+ "char": "w",
1244
+ "description": "name of the workspace to deploy the app to",
1245
+ "name": "workspace",
1246
+ "required": true,
1247
+ "hasDynamicHelp": false,
1248
+ "multiple": false,
1249
+ "type": "option"
1250
+ }
1251
+ },
1252
+ "hasDynamicHelp": false,
1253
+ "hiddenAliases": [],
1254
+ "id": "app:deploy",
1255
+ "pluginAlias": "hereya-cli",
1256
+ "pluginName": "hereya-cli",
1257
+ "pluginType": "core",
1258
+ "strict": true,
1259
+ "enableJsonFlag": false,
1260
+ "isESM": true,
1261
+ "relativePath": [
1262
+ "dist",
1263
+ "commands",
1264
+ "app",
1265
+ "deploy",
1266
+ "index.js"
1267
+ ]
1268
+ },
1269
+ "app:deployments": {
1270
+ "aliases": [],
1271
+ "args": {
1272
+ "name": {
1273
+ "description": "app name in org/name format",
1274
+ "name": "name",
1275
+ "required": true
1276
+ }
1277
+ },
1278
+ "description": "List workspaces a hereya-app has been deployed to.",
1279
+ "examples": [
1280
+ "<%= config.bin %> <%= command.id %> my-org/my-app"
1281
+ ],
1282
+ "flags": {},
1283
+ "hasDynamicHelp": false,
1284
+ "hiddenAliases": [],
1285
+ "id": "app:deployments",
1286
+ "pluginAlias": "hereya-cli",
1287
+ "pluginName": "hereya-cli",
1288
+ "pluginType": "core",
1289
+ "strict": true,
1290
+ "enableJsonFlag": false,
1291
+ "isESM": true,
1292
+ "relativePath": [
1293
+ "dist",
1294
+ "commands",
1295
+ "app",
1296
+ "deployments",
1297
+ "index.js"
1298
+ ]
1299
+ },
1300
+ "app:destroy": {
1301
+ "aliases": [],
1302
+ "args": {
1303
+ "name": {
1304
+ "description": "app name in org/name format",
1305
+ "name": "name",
1306
+ "required": true
1307
+ }
1308
+ },
1309
+ "description": "Destroy a hereya-app deployment from a workspace.",
1310
+ "examples": [
1311
+ "<%= config.bin %> <%= command.id %> my-org/my-app -w my-workspace"
1312
+ ],
1313
+ "flags": {
1314
+ "workspace": {
1315
+ "char": "w",
1316
+ "description": "workspace where the app is currently deployed",
1317
+ "name": "workspace",
1318
+ "required": true,
1319
+ "hasDynamicHelp": false,
1320
+ "multiple": false,
1321
+ "type": "option"
1322
+ }
1323
+ },
1324
+ "hasDynamicHelp": false,
1325
+ "hiddenAliases": [],
1326
+ "id": "app:destroy",
1327
+ "pluginAlias": "hereya-cli",
1328
+ "pluginName": "hereya-cli",
1329
+ "pluginType": "core",
1330
+ "strict": true,
1331
+ "enableJsonFlag": false,
1332
+ "isESM": true,
1333
+ "relativePath": [
1334
+ "dist",
1335
+ "commands",
1336
+ "app",
1337
+ "destroy",
1338
+ "index.js"
1339
+ ]
1340
+ },
1341
+ "app:env": {
1342
+ "aliases": [],
1343
+ "args": {
1344
+ "name": {
1345
+ "description": "app name in org/name format",
1346
+ "name": "name",
1347
+ "required": true
1348
+ },
1349
+ "key": {
1350
+ "description": "optional env var key to print (omit to print all)",
1351
+ "name": "key",
1352
+ "required": false
1353
+ }
1354
+ },
1355
+ "description": "Print environment variables exported by a hereya-app deployment.",
1356
+ "examples": [
1357
+ "<%= config.bin %> <%= command.id %> my-org/my-app -w my-workspace",
1358
+ "<%= config.bin %> <%= command.id %> my-org/my-app -w my-workspace DATABASE_URL"
1359
+ ],
1360
+ "flags": {
1361
+ "workspace": {
1362
+ "char": "w",
1363
+ "description": "workspace to read env outputs from",
1364
+ "name": "workspace",
1365
+ "required": true,
1366
+ "hasDynamicHelp": false,
1367
+ "multiple": false,
1368
+ "type": "option"
1369
+ }
1370
+ },
1371
+ "hasDynamicHelp": false,
1372
+ "hiddenAliases": [],
1373
+ "id": "app:env",
1374
+ "pluginAlias": "hereya-cli",
1375
+ "pluginName": "hereya-cli",
1376
+ "pluginType": "core",
1377
+ "strict": true,
1378
+ "enableJsonFlag": false,
1379
+ "isESM": true,
1380
+ "relativePath": [
1381
+ "dist",
1382
+ "commands",
1383
+ "app",
1384
+ "env",
1385
+ "index.js"
1386
+ ]
1387
+ },
1388
+ "app:list": {
1389
+ "aliases": [],
1390
+ "args": {},
1391
+ "description": "List hereya-apps available to your account.",
1392
+ "examples": [
1393
+ "<%= config.bin %> <%= command.id %>"
1394
+ ],
1395
+ "flags": {},
1396
+ "hasDynamicHelp": false,
1397
+ "hiddenAliases": [],
1398
+ "id": "app:list",
1399
+ "pluginAlias": "hereya-cli",
1400
+ "pluginName": "hereya-cli",
1401
+ "pluginType": "core",
1402
+ "strict": true,
1403
+ "enableJsonFlag": false,
1404
+ "isESM": true,
1405
+ "relativePath": [
1406
+ "dist",
1407
+ "commands",
1408
+ "app",
1409
+ "list",
1410
+ "index.js"
1411
+ ]
1412
+ },
1413
+ "app:new": {
1414
+ "aliases": [],
1415
+ "args": {
1416
+ "dirname": {
1417
+ "description": "directory to create the app skeleton in",
1418
+ "name": "dirname",
1419
+ "required": true
1420
+ }
1421
+ },
1422
+ "description": "Scaffold a new hereya-app directory with starter hereyarc.yaml + hereya.yaml.",
1423
+ "examples": [
1424
+ "<%= config.bin %> <%= command.id %> ./my-app -n my-org/my-app",
1425
+ "<%= config.bin %> <%= command.id %> ./my-app -n my-org/my-app --description \"An ai-app-builder app\""
1426
+ ],
1427
+ "flags": {
1428
+ "description": {
1429
+ "description": "description of the app",
1430
+ "name": "description",
1431
+ "required": false,
1432
+ "hasDynamicHelp": false,
1433
+ "multiple": false,
1434
+ "type": "option"
1435
+ },
1436
+ "name": {
1437
+ "char": "n",
1438
+ "description": "app name in org/name format (e.g. my-org/my-app)",
1439
+ "name": "name",
1440
+ "required": true,
1441
+ "hasDynamicHelp": false,
1442
+ "multiple": false,
1443
+ "type": "option"
1444
+ }
1445
+ },
1446
+ "hasDynamicHelp": false,
1447
+ "hiddenAliases": [],
1448
+ "id": "app:new",
1449
+ "pluginAlias": "hereya-cli",
1450
+ "pluginName": "hereya-cli",
1451
+ "pluginType": "core",
1452
+ "strict": true,
1453
+ "enableJsonFlag": false,
1454
+ "isESM": true,
1455
+ "relativePath": [
1456
+ "dist",
1457
+ "commands",
1458
+ "app",
1459
+ "new",
1460
+ "index.js"
1461
+ ]
1462
+ },
1463
+ "app:status": {
1464
+ "aliases": [],
1465
+ "args": {
1466
+ "name": {
1467
+ "description": "app name in org/name format",
1468
+ "name": "name",
1469
+ "required": true
1470
+ }
1471
+ },
1472
+ "description": "Show the deployment status of a hereya-app on a workspace.",
1473
+ "examples": [
1474
+ "<%= config.bin %> <%= command.id %> my-org/my-app -w my-workspace"
1475
+ ],
1476
+ "flags": {
1477
+ "workspace": {
1478
+ "char": "w",
1479
+ "description": "workspace to read deployment status from",
1480
+ "name": "workspace",
1481
+ "required": true,
1482
+ "hasDynamicHelp": false,
1483
+ "multiple": false,
1484
+ "type": "option"
1485
+ }
1486
+ },
1487
+ "hasDynamicHelp": false,
1488
+ "hiddenAliases": [],
1489
+ "id": "app:status",
1490
+ "pluginAlias": "hereya-cli",
1491
+ "pluginName": "hereya-cli",
1492
+ "pluginType": "core",
1493
+ "strict": true,
1494
+ "enableJsonFlag": false,
1495
+ "isESM": true,
1496
+ "relativePath": [
1497
+ "dist",
1498
+ "commands",
1499
+ "app",
1500
+ "status",
1501
+ "index.js"
1502
+ ]
1503
+ },
1188
1504
  "config:get-backend": {
1189
1505
  "aliases": [],
1190
1506
  "args": {},
@@ -2450,7 +2766,7 @@
2450
2766
  "index.js"
2451
2767
  ]
2452
2768
  },
2453
- "devenv:project:uninit": {
2769
+ "devenv:project:init": {
2454
2770
  "aliases": [],
2455
2771
  "args": {
2456
2772
  "project": {
@@ -2459,19 +2775,48 @@
2459
2775
  "required": true
2460
2776
  }
2461
2777
  },
2462
- "description": "Uninitialize a project on a remote dev environment.",
2778
+ "description": "Initialize a project on a remote dev environment.",
2463
2779
  "examples": [
2464
2780
  "<%= config.bin %> <%= command.id %> my-app -w my-workspace",
2465
- "<%= config.bin %> <%= command.id %> my-app -w my-workspace --force"
2781
+ "<%= config.bin %> <%= command.id %> my-app -w my-workspace -t acme/node-starter",
2782
+ "<%= config.bin %> <%= command.id %> my-app -w my-workspace -t acme/node-starter -p region=us-east-1"
2466
2783
  ],
2467
2784
  "flags": {
2785
+ "deploy-workspace": {
2786
+ "char": "d",
2787
+ "description": "workspace used for deployment (required when using a template)",
2788
+ "name": "deploy-workspace",
2789
+ "required": false,
2790
+ "hasDynamicHelp": false,
2791
+ "multiple": false,
2792
+ "type": "option"
2793
+ },
2468
2794
  "force": {
2469
2795
  "char": "f",
2470
- "description": "also remove the project directory after uninit",
2796
+ "description": "continue even if folder already exists",
2471
2797
  "name": "force",
2472
2798
  "allowNo": false,
2473
2799
  "type": "boolean"
2474
2800
  },
2801
+ "parameter": {
2802
+ "char": "p",
2803
+ "description": "parameter for the template, in the form of 'key=value'. Can be specified multiple times.",
2804
+ "name": "parameter",
2805
+ "required": false,
2806
+ "default": [],
2807
+ "hasDynamicHelp": false,
2808
+ "multiple": true,
2809
+ "type": "option"
2810
+ },
2811
+ "template": {
2812
+ "char": "t",
2813
+ "description": "template package to scaffold the project from",
2814
+ "name": "template",
2815
+ "required": false,
2816
+ "hasDynamicHelp": false,
2817
+ "multiple": false,
2818
+ "type": "option"
2819
+ },
2475
2820
  "workspace": {
2476
2821
  "char": "w",
2477
2822
  "description": "name of the workspace",
@@ -2484,7 +2829,7 @@
2484
2829
  },
2485
2830
  "hasDynamicHelp": false,
2486
2831
  "hiddenAliases": [],
2487
- "id": "devenv:project:uninit",
2832
+ "id": "devenv:project:init",
2488
2833
  "pluginAlias": "hereya-cli",
2489
2834
  "pluginName": "hereya-cli",
2490
2835
  "pluginType": "core",
@@ -2496,11 +2841,11 @@
2496
2841
  "commands",
2497
2842
  "devenv",
2498
2843
  "project",
2499
- "uninit",
2844
+ "init",
2500
2845
  "index.js"
2501
2846
  ]
2502
2847
  },
2503
- "devenv:project:init": {
2848
+ "devenv:project:uninit": {
2504
2849
  "aliases": [],
2505
2850
  "args": {
2506
2851
  "project": {
@@ -2509,48 +2854,19 @@
2509
2854
  "required": true
2510
2855
  }
2511
2856
  },
2512
- "description": "Initialize a project on a remote dev environment.",
2857
+ "description": "Uninitialize a project on a remote dev environment.",
2513
2858
  "examples": [
2514
2859
  "<%= config.bin %> <%= command.id %> my-app -w my-workspace",
2515
- "<%= config.bin %> <%= command.id %> my-app -w my-workspace -t acme/node-starter",
2516
- "<%= config.bin %> <%= command.id %> my-app -w my-workspace -t acme/node-starter -p region=us-east-1"
2860
+ "<%= config.bin %> <%= command.id %> my-app -w my-workspace --force"
2517
2861
  ],
2518
2862
  "flags": {
2519
- "deploy-workspace": {
2520
- "char": "d",
2521
- "description": "workspace used for deployment (required when using a template)",
2522
- "name": "deploy-workspace",
2523
- "required": false,
2524
- "hasDynamicHelp": false,
2525
- "multiple": false,
2526
- "type": "option"
2527
- },
2528
2863
  "force": {
2529
2864
  "char": "f",
2530
- "description": "continue even if folder already exists",
2865
+ "description": "also remove the project directory after uninit",
2531
2866
  "name": "force",
2532
2867
  "allowNo": false,
2533
2868
  "type": "boolean"
2534
2869
  },
2535
- "parameter": {
2536
- "char": "p",
2537
- "description": "parameter for the template, in the form of 'key=value'. Can be specified multiple times.",
2538
- "name": "parameter",
2539
- "required": false,
2540
- "default": [],
2541
- "hasDynamicHelp": false,
2542
- "multiple": true,
2543
- "type": "option"
2544
- },
2545
- "template": {
2546
- "char": "t",
2547
- "description": "template package to scaffold the project from",
2548
- "name": "template",
2549
- "required": false,
2550
- "hasDynamicHelp": false,
2551
- "multiple": false,
2552
- "type": "option"
2553
- },
2554
2870
  "workspace": {
2555
2871
  "char": "w",
2556
2872
  "description": "name of the workspace",
@@ -2563,7 +2879,7 @@
2563
2879
  },
2564
2880
  "hasDynamicHelp": false,
2565
2881
  "hiddenAliases": [],
2566
- "id": "devenv:project:init",
2882
+ "id": "devenv:project:uninit",
2567
2883
  "pluginAlias": "hereya-cli",
2568
2884
  "pluginName": "hereya-cli",
2569
2885
  "pluginType": "core",
@@ -2575,7 +2891,7 @@
2575
2891
  "commands",
2576
2892
  "devenv",
2577
2893
  "project",
2578
- "init",
2894
+ "uninit",
2579
2895
  "index.js"
2580
2896
  ]
2581
2897
  },
@@ -2881,5 +3197,5 @@
2881
3197
  ]
2882
3198
  }
2883
3199
  },
2884
- "version": "0.83.1"
3200
+ "version": "0.84.0"
2885
3201
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hereya-cli",
3
3
  "description": "Infrastructure as Package",
4
- "version": "0.83.1",
4
+ "version": "0.84.0",
5
5
  "author": "Hereya Developers",
6
6
  "bin": {
7
7
  "hereya": "./bin/run.js"