hereya-cli 0.101.0 → 0.102.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.
@@ -1250,6 +1250,79 @@
1250
1250
  "index.js"
1251
1251
  ]
1252
1252
  },
1253
+ "app:deploy": {
1254
+ "aliases": [],
1255
+ "args": {
1256
+ "name": {
1257
+ "description": "app name in org/name format",
1258
+ "name": "name",
1259
+ "required": true
1260
+ }
1261
+ },
1262
+ "description": "Deploy a hereya-app to a workspace.",
1263
+ "examples": [
1264
+ "<%= config.bin %> <%= command.id %> my-org/my-app -w my-workspace",
1265
+ "<%= config.bin %> <%= command.id %> my-org/my-app -w prod --version 1.2.0",
1266
+ "<%= config.bin %> <%= command.id %> my-org/my-app -w prod -p organizationId=org-123"
1267
+ ],
1268
+ "flags": {
1269
+ "chdir": {
1270
+ "description": "Directory where the command will be executed.\n If not specified, it defaults to the current working directory.\n Alternatively, you can define the project root by setting the HEREYA_PROJECT_ROOT_DIR environment variable.",
1271
+ "name": "chdir",
1272
+ "required": false,
1273
+ "hasDynamicHelp": false,
1274
+ "multiple": false,
1275
+ "type": "option"
1276
+ },
1277
+ "local": {
1278
+ "description": "force local execution (skip remote executor)",
1279
+ "name": "local",
1280
+ "allowNo": false,
1281
+ "type": "boolean"
1282
+ },
1283
+ "parameter": {
1284
+ "char": "p",
1285
+ "description": "parameter for the app deployment, in the form of key=value (repeatable)",
1286
+ "name": "parameter",
1287
+ "default": [],
1288
+ "hasDynamicHelp": false,
1289
+ "multiple": true,
1290
+ "type": "option"
1291
+ },
1292
+ "version": {
1293
+ "description": "specific app version to deploy (defaults to latest)",
1294
+ "name": "version",
1295
+ "hasDynamicHelp": false,
1296
+ "multiple": false,
1297
+ "type": "option"
1298
+ },
1299
+ "workspace": {
1300
+ "char": "w",
1301
+ "description": "name of the workspace to deploy the app to",
1302
+ "name": "workspace",
1303
+ "required": true,
1304
+ "hasDynamicHelp": false,
1305
+ "multiple": false,
1306
+ "type": "option"
1307
+ }
1308
+ },
1309
+ "hasDynamicHelp": false,
1310
+ "hiddenAliases": [],
1311
+ "id": "app:deploy",
1312
+ "pluginAlias": "hereya-cli",
1313
+ "pluginName": "hereya-cli",
1314
+ "pluginType": "core",
1315
+ "strict": true,
1316
+ "enableJsonFlag": false,
1317
+ "isESM": true,
1318
+ "relativePath": [
1319
+ "dist",
1320
+ "commands",
1321
+ "app",
1322
+ "deploy",
1323
+ "index.js"
1324
+ ]
1325
+ },
1253
1326
  "app:deployments": {
1254
1327
  "aliases": [],
1255
1328
  "args": {
@@ -1628,79 +1701,6 @@
1628
1701
  "index.js"
1629
1702
  ]
1630
1703
  },
1631
- "app:deploy": {
1632
- "aliases": [],
1633
- "args": {
1634
- "name": {
1635
- "description": "app name in org/name format",
1636
- "name": "name",
1637
- "required": true
1638
- }
1639
- },
1640
- "description": "Deploy a hereya-app to a workspace.",
1641
- "examples": [
1642
- "<%= config.bin %> <%= command.id %> my-org/my-app -w my-workspace",
1643
- "<%= config.bin %> <%= command.id %> my-org/my-app -w prod --version 1.2.0",
1644
- "<%= config.bin %> <%= command.id %> my-org/my-app -w prod -p organizationId=org-123"
1645
- ],
1646
- "flags": {
1647
- "chdir": {
1648
- "description": "Directory where the command will be executed.\n If not specified, it defaults to the current working directory.\n Alternatively, you can define the project root by setting the HEREYA_PROJECT_ROOT_DIR environment variable.",
1649
- "name": "chdir",
1650
- "required": false,
1651
- "hasDynamicHelp": false,
1652
- "multiple": false,
1653
- "type": "option"
1654
- },
1655
- "local": {
1656
- "description": "force local execution (skip remote executor)",
1657
- "name": "local",
1658
- "allowNo": false,
1659
- "type": "boolean"
1660
- },
1661
- "parameter": {
1662
- "char": "p",
1663
- "description": "parameter for the app deployment, in the form of key=value (repeatable)",
1664
- "name": "parameter",
1665
- "default": [],
1666
- "hasDynamicHelp": false,
1667
- "multiple": true,
1668
- "type": "option"
1669
- },
1670
- "version": {
1671
- "description": "specific app version to deploy (defaults to latest)",
1672
- "name": "version",
1673
- "hasDynamicHelp": false,
1674
- "multiple": false,
1675
- "type": "option"
1676
- },
1677
- "workspace": {
1678
- "char": "w",
1679
- "description": "name of the workspace to deploy the app to",
1680
- "name": "workspace",
1681
- "required": true,
1682
- "hasDynamicHelp": false,
1683
- "multiple": false,
1684
- "type": "option"
1685
- }
1686
- },
1687
- "hasDynamicHelp": false,
1688
- "hiddenAliases": [],
1689
- "id": "app:deploy",
1690
- "pluginAlias": "hereya-cli",
1691
- "pluginName": "hereya-cli",
1692
- "pluginType": "core",
1693
- "strict": true,
1694
- "enableJsonFlag": false,
1695
- "isESM": true,
1696
- "relativePath": [
1697
- "dist",
1698
- "commands",
1699
- "app",
1700
- "deploy",
1701
- "index.js"
1702
- ]
1703
- },
1704
1704
  "devenv:config": {
1705
1705
  "aliases": [],
1706
1706
  "args": {},
@@ -2588,6 +2588,162 @@
2588
2588
  "index.js"
2589
2589
  ]
2590
2590
  },
2591
+ "job:cancel": {
2592
+ "aliases": [],
2593
+ "args": {
2594
+ "jobId": {
2595
+ "description": "id of the remote executor job to cancel",
2596
+ "name": "jobId",
2597
+ "required": true
2598
+ }
2599
+ },
2600
+ "description": "Cancel a pending remote executor job. Only pending jobs can be cancelled.",
2601
+ "examples": [
2602
+ "<%= config.bin %> <%= command.id %> my-job-id -w my-workspace"
2603
+ ],
2604
+ "flags": {
2605
+ "workspace": {
2606
+ "char": "w",
2607
+ "description": "name of the workspace the job belongs to",
2608
+ "name": "workspace",
2609
+ "required": true,
2610
+ "hasDynamicHelp": false,
2611
+ "multiple": false,
2612
+ "type": "option"
2613
+ }
2614
+ },
2615
+ "hasDynamicHelp": false,
2616
+ "hiddenAliases": [],
2617
+ "id": "job:cancel",
2618
+ "pluginAlias": "hereya-cli",
2619
+ "pluginName": "hereya-cli",
2620
+ "pluginType": "core",
2621
+ "strict": true,
2622
+ "enableJsonFlag": false,
2623
+ "isESM": true,
2624
+ "relativePath": [
2625
+ "dist",
2626
+ "commands",
2627
+ "job",
2628
+ "cancel",
2629
+ "index.js"
2630
+ ]
2631
+ },
2632
+ "job:list": {
2633
+ "aliases": [],
2634
+ "args": {},
2635
+ "description": "List remote executor jobs for a workspace, newest first. Pending jobs can be cancelled with `hereya job cancel <jobId>`.",
2636
+ "examples": [
2637
+ "<%= config.bin %> <%= command.id %> -w my-workspace",
2638
+ "<%= config.bin %> <%= command.id %> -w my-workspace --status pending --limit 10"
2639
+ ],
2640
+ "flags": {
2641
+ "limit": {
2642
+ "description": "maximum number of jobs to list (server default: 20)",
2643
+ "name": "limit",
2644
+ "required": false,
2645
+ "hasDynamicHelp": false,
2646
+ "multiple": false,
2647
+ "type": "option"
2648
+ },
2649
+ "status": {
2650
+ "description": "only list jobs with this status",
2651
+ "name": "status",
2652
+ "required": false,
2653
+ "hasDynamicHelp": false,
2654
+ "multiple": false,
2655
+ "options": [
2656
+ "pending",
2657
+ "running",
2658
+ "completed",
2659
+ "failed",
2660
+ "cancelled"
2661
+ ],
2662
+ "type": "option"
2663
+ },
2664
+ "workspace": {
2665
+ "char": "w",
2666
+ "description": "name of the workspace to list jobs for",
2667
+ "name": "workspace",
2668
+ "required": true,
2669
+ "hasDynamicHelp": false,
2670
+ "multiple": false,
2671
+ "type": "option"
2672
+ }
2673
+ },
2674
+ "hasDynamicHelp": false,
2675
+ "hiddenAliases": [],
2676
+ "id": "job:list",
2677
+ "pluginAlias": "hereya-cli",
2678
+ "pluginName": "hereya-cli",
2679
+ "pluginType": "core",
2680
+ "strict": true,
2681
+ "enableJsonFlag": false,
2682
+ "isESM": true,
2683
+ "relativePath": [
2684
+ "dist",
2685
+ "commands",
2686
+ "job",
2687
+ "list",
2688
+ "index.js"
2689
+ ]
2690
+ },
2691
+ "workspace:create": {
2692
+ "aliases": [],
2693
+ "args": {
2694
+ "name": {
2695
+ "description": "name of the workspace to create",
2696
+ "name": "name",
2697
+ "required": true
2698
+ }
2699
+ },
2700
+ "description": "Create a new workspace if it does not exist.",
2701
+ "examples": [
2702
+ "<%= config.bin %> <%= command.id %> dev"
2703
+ ],
2704
+ "flags": {
2705
+ "deployment": {
2706
+ "char": "d",
2707
+ "description": "mark workspace as a deployment workspace",
2708
+ "name": "deployment",
2709
+ "required": false,
2710
+ "allowNo": false,
2711
+ "type": "boolean"
2712
+ },
2713
+ "mirror": {
2714
+ "description": "workspace to mirror",
2715
+ "name": "mirror",
2716
+ "required": false,
2717
+ "hasDynamicHelp": false,
2718
+ "multiple": false,
2719
+ "type": "option"
2720
+ },
2721
+ "profile": {
2722
+ "description": "workspace profile to set (cloud backend only)",
2723
+ "name": "profile",
2724
+ "required": false,
2725
+ "hasDynamicHelp": false,
2726
+ "multiple": false,
2727
+ "type": "option"
2728
+ }
2729
+ },
2730
+ "hasDynamicHelp": false,
2731
+ "hiddenAliases": [],
2732
+ "id": "workspace:create",
2733
+ "pluginAlias": "hereya-cli",
2734
+ "pluginName": "hereya-cli",
2735
+ "pluginType": "core",
2736
+ "strict": true,
2737
+ "enableJsonFlag": false,
2738
+ "isESM": true,
2739
+ "relativePath": [
2740
+ "dist",
2741
+ "commands",
2742
+ "workspace",
2743
+ "create",
2744
+ "index.js"
2745
+ ]
2746
+ },
2591
2747
  "workspace:delete": {
2592
2748
  "aliases": [],
2593
2749
  "args": {
@@ -2883,83 +3039,56 @@
2883
3039
  "index.js"
2884
3040
  ]
2885
3041
  },
2886
- "workspace:create": {
3042
+ "devenv:project:init": {
2887
3043
  "aliases": [],
2888
3044
  "args": {
2889
- "name": {
2890
- "description": "name of the workspace to create",
2891
- "name": "name",
3045
+ "project": {
3046
+ "description": "project name",
3047
+ "name": "project",
2892
3048
  "required": true
2893
3049
  }
2894
3050
  },
2895
- "description": "Create a new workspace if it does not exist.",
3051
+ "description": "Initialize a project on a remote dev environment.",
2896
3052
  "examples": [
2897
- "<%= config.bin %> <%= command.id %> dev"
3053
+ "<%= config.bin %> <%= command.id %> my-app -w my-workspace",
3054
+ "<%= config.bin %> <%= command.id %> my-app -w my-workspace -t acme/node-starter",
3055
+ "<%= config.bin %> <%= command.id %> my-app -w my-workspace -t acme/node-starter -p region=us-east-1"
2898
3056
  ],
2899
3057
  "flags": {
2900
- "deployment": {
3058
+ "deploy-workspace": {
2901
3059
  "char": "d",
2902
- "description": "mark workspace as a deployment workspace",
2903
- "name": "deployment",
3060
+ "description": "workspace used for deployment (required when using a template)",
3061
+ "name": "deploy-workspace",
2904
3062
  "required": false,
3063
+ "hasDynamicHelp": false,
3064
+ "multiple": false,
3065
+ "type": "option"
3066
+ },
3067
+ "force": {
3068
+ "char": "f",
3069
+ "description": "continue even if folder already exists",
3070
+ "name": "force",
2905
3071
  "allowNo": false,
2906
3072
  "type": "boolean"
2907
3073
  },
2908
- "mirror": {
2909
- "description": "workspace to mirror",
2910
- "name": "mirror",
3074
+ "parameter": {
3075
+ "char": "p",
3076
+ "description": "parameter for the template, in the form of 'key=value'. Can be specified multiple times.",
3077
+ "name": "parameter",
2911
3078
  "required": false,
3079
+ "default": [],
2912
3080
  "hasDynamicHelp": false,
2913
- "multiple": false,
3081
+ "multiple": true,
2914
3082
  "type": "option"
2915
3083
  },
2916
- "profile": {
2917
- "description": "workspace profile to set (cloud backend only)",
2918
- "name": "profile",
3084
+ "template": {
3085
+ "char": "t",
3086
+ "description": "template package to scaffold the project from",
3087
+ "name": "template",
2919
3088
  "required": false,
2920
3089
  "hasDynamicHelp": false,
2921
3090
  "multiple": false,
2922
3091
  "type": "option"
2923
- }
2924
- },
2925
- "hasDynamicHelp": false,
2926
- "hiddenAliases": [],
2927
- "id": "workspace:create",
2928
- "pluginAlias": "hereya-cli",
2929
- "pluginName": "hereya-cli",
2930
- "pluginType": "core",
2931
- "strict": true,
2932
- "enableJsonFlag": false,
2933
- "isESM": true,
2934
- "relativePath": [
2935
- "dist",
2936
- "commands",
2937
- "workspace",
2938
- "create",
2939
- "index.js"
2940
- ]
2941
- },
2942
- "devenv:project:uninit": {
2943
- "aliases": [],
2944
- "args": {
2945
- "project": {
2946
- "description": "project name",
2947
- "name": "project",
2948
- "required": true
2949
- }
2950
- },
2951
- "description": "Uninitialize a project on a remote dev environment.",
2952
- "examples": [
2953
- "<%= config.bin %> <%= command.id %> my-app -w my-workspace",
2954
- "<%= config.bin %> <%= command.id %> my-app -w my-workspace --force"
2955
- ],
2956
- "flags": {
2957
- "force": {
2958
- "char": "f",
2959
- "description": "also remove the project directory after uninit",
2960
- "name": "force",
2961
- "allowNo": false,
2962
- "type": "boolean"
2963
3092
  },
2964
3093
  "workspace": {
2965
3094
  "char": "w",
@@ -2973,7 +3102,7 @@
2973
3102
  },
2974
3103
  "hasDynamicHelp": false,
2975
3104
  "hiddenAliases": [],
2976
- "id": "devenv:project:uninit",
3105
+ "id": "devenv:project:init",
2977
3106
  "pluginAlias": "hereya-cli",
2978
3107
  "pluginName": "hereya-cli",
2979
3108
  "pluginType": "core",
@@ -2985,11 +3114,11 @@
2985
3114
  "commands",
2986
3115
  "devenv",
2987
3116
  "project",
2988
- "uninit",
3117
+ "init",
2989
3118
  "index.js"
2990
3119
  ]
2991
3120
  },
2992
- "devenv:project:init": {
3121
+ "devenv:project:uninit": {
2993
3122
  "aliases": [],
2994
3123
  "args": {
2995
3124
  "project": {
@@ -2998,48 +3127,19 @@
2998
3127
  "required": true
2999
3128
  }
3000
3129
  },
3001
- "description": "Initialize a project on a remote dev environment.",
3130
+ "description": "Uninitialize a project on a remote dev environment.",
3002
3131
  "examples": [
3003
3132
  "<%= config.bin %> <%= command.id %> my-app -w my-workspace",
3004
- "<%= config.bin %> <%= command.id %> my-app -w my-workspace -t acme/node-starter",
3005
- "<%= config.bin %> <%= command.id %> my-app -w my-workspace -t acme/node-starter -p region=us-east-1"
3133
+ "<%= config.bin %> <%= command.id %> my-app -w my-workspace --force"
3006
3134
  ],
3007
3135
  "flags": {
3008
- "deploy-workspace": {
3009
- "char": "d",
3010
- "description": "workspace used for deployment (required when using a template)",
3011
- "name": "deploy-workspace",
3012
- "required": false,
3013
- "hasDynamicHelp": false,
3014
- "multiple": false,
3015
- "type": "option"
3016
- },
3017
3136
  "force": {
3018
3137
  "char": "f",
3019
- "description": "continue even if folder already exists",
3138
+ "description": "also remove the project directory after uninit",
3020
3139
  "name": "force",
3021
3140
  "allowNo": false,
3022
3141
  "type": "boolean"
3023
3142
  },
3024
- "parameter": {
3025
- "char": "p",
3026
- "description": "parameter for the template, in the form of 'key=value'. Can be specified multiple times.",
3027
- "name": "parameter",
3028
- "required": false,
3029
- "default": [],
3030
- "hasDynamicHelp": false,
3031
- "multiple": true,
3032
- "type": "option"
3033
- },
3034
- "template": {
3035
- "char": "t",
3036
- "description": "template package to scaffold the project from",
3037
- "name": "template",
3038
- "required": false,
3039
- "hasDynamicHelp": false,
3040
- "multiple": false,
3041
- "type": "option"
3042
- },
3043
3143
  "workspace": {
3044
3144
  "char": "w",
3045
3145
  "description": "name of the workspace",
@@ -3052,7 +3152,7 @@
3052
3152
  },
3053
3153
  "hasDynamicHelp": false,
3054
3154
  "hiddenAliases": [],
3055
- "id": "devenv:project:init",
3155
+ "id": "devenv:project:uninit",
3056
3156
  "pluginAlias": "hereya-cli",
3057
3157
  "pluginName": "hereya-cli",
3058
3158
  "pluginType": "core",
@@ -3064,7 +3164,7 @@
3064
3164
  "commands",
3065
3165
  "devenv",
3066
3166
  "project",
3067
- "init",
3167
+ "uninit",
3068
3168
  "index.js"
3069
3169
  ]
3070
3170
  },
@@ -3409,5 +3509,5 @@
3409
3509
  ]
3410
3510
  }
3411
3511
  },
3412
- "version": "0.101.0"
3512
+ "version": "0.102.0"
3413
3513
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hereya-cli",
3
3
  "description": "Infrastructure as Package",
4
- "version": "0.101.0",
4
+ "version": "0.102.0",
5
5
  "author": "Hereya Developers",
6
6
  "bin": {
7
7
  "hereya": "./bin/run.cjs"
@@ -109,6 +109,9 @@
109
109
  ],
110
110
  "topicSeparator": " ",
111
111
  "topics": {
112
+ "job": {
113
+ "description": "Inspect and cancel remote executor jobs"
114
+ },
112
115
  "workspace": {
113
116
  "description": "Manage Hereya workspaces"
114
117
  }