@bussolabs/closeyourit-cli 0.0.8 → 0.0.9

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.
@@ -648,6 +648,175 @@
648
648
  "update.js"
649
649
  ]
650
650
  },
651
+ "invitations:create": {
652
+ "aliases": [],
653
+ "args": {
654
+ "email": {
655
+ "description": "Email address to invite",
656
+ "name": "email",
657
+ "required": true
658
+ }
659
+ },
660
+ "description": "Invite a person to the organization. Prints the acceptance link (shown only once).",
661
+ "examples": [
662
+ "<%= config.bin %> invitations create client@acme.com",
663
+ "<%= config.bin %> invitations create teammate@acme.com --role member"
664
+ ],
665
+ "flags": {
666
+ "json": {
667
+ "description": "Format output as json.",
668
+ "helpGroup": "GLOBAL",
669
+ "name": "json",
670
+ "allowNo": false,
671
+ "type": "boolean"
672
+ },
673
+ "role": {
674
+ "description": "Membership role",
675
+ "name": "role",
676
+ "default": "customer",
677
+ "hasDynamicHelp": false,
678
+ "multiple": false,
679
+ "options": [
680
+ "customer",
681
+ "member",
682
+ "admin"
683
+ ],
684
+ "type": "option"
685
+ }
686
+ },
687
+ "hasDynamicHelp": false,
688
+ "hiddenAliases": [],
689
+ "id": "invitations:create",
690
+ "pluginAlias": "@bussolabs/closeyourit-cli",
691
+ "pluginName": "@bussolabs/closeyourit-cli",
692
+ "pluginType": "core",
693
+ "strict": true,
694
+ "enableJsonFlag": true,
695
+ "isESM": false,
696
+ "relativePath": [
697
+ "dist",
698
+ "commands",
699
+ "invitations",
700
+ "create.js"
701
+ ]
702
+ },
703
+ "invitations:list": {
704
+ "aliases": [],
705
+ "args": {},
706
+ "description": "List the pending/accepted invitations of your organization",
707
+ "examples": [
708
+ "<%= config.bin %> invitations list",
709
+ "<%= config.bin %> invitations list --json"
710
+ ],
711
+ "flags": {
712
+ "json": {
713
+ "description": "Format output as json.",
714
+ "helpGroup": "GLOBAL",
715
+ "name": "json",
716
+ "allowNo": false,
717
+ "type": "boolean"
718
+ },
719
+ "page": {
720
+ "description": "Page number",
721
+ "name": "page",
722
+ "default": 1,
723
+ "hasDynamicHelp": false,
724
+ "multiple": false,
725
+ "type": "option"
726
+ }
727
+ },
728
+ "hasDynamicHelp": false,
729
+ "hiddenAliases": [],
730
+ "id": "invitations:list",
731
+ "pluginAlias": "@bussolabs/closeyourit-cli",
732
+ "pluginName": "@bussolabs/closeyourit-cli",
733
+ "pluginType": "core",
734
+ "strict": true,
735
+ "enableJsonFlag": true,
736
+ "isESM": false,
737
+ "relativePath": [
738
+ "dist",
739
+ "commands",
740
+ "invitations",
741
+ "list.js"
742
+ ]
743
+ },
744
+ "invitations:resend": {
745
+ "aliases": [],
746
+ "args": {
747
+ "id": {
748
+ "description": "Invitation id (UUID)",
749
+ "name": "id",
750
+ "required": true
751
+ }
752
+ },
753
+ "description": "Resend a pending invitation. Prints the acceptance link (shown only once).",
754
+ "examples": [
755
+ "<%= config.bin %> invitations resend <invitation-uuid>"
756
+ ],
757
+ "flags": {
758
+ "json": {
759
+ "description": "Format output as json.",
760
+ "helpGroup": "GLOBAL",
761
+ "name": "json",
762
+ "allowNo": false,
763
+ "type": "boolean"
764
+ }
765
+ },
766
+ "hasDynamicHelp": false,
767
+ "hiddenAliases": [],
768
+ "id": "invitations:resend",
769
+ "pluginAlias": "@bussolabs/closeyourit-cli",
770
+ "pluginName": "@bussolabs/closeyourit-cli",
771
+ "pluginType": "core",
772
+ "strict": true,
773
+ "enableJsonFlag": true,
774
+ "isESM": false,
775
+ "relativePath": [
776
+ "dist",
777
+ "commands",
778
+ "invitations",
779
+ "resend.js"
780
+ ]
781
+ },
782
+ "invitations:revoke": {
783
+ "aliases": [],
784
+ "args": {
785
+ "id": {
786
+ "description": "Invitation id (UUID)",
787
+ "name": "id",
788
+ "required": true
789
+ }
790
+ },
791
+ "description": "Revoke a pending invitation",
792
+ "examples": [
793
+ "<%= config.bin %> invitations revoke <invitation-uuid>"
794
+ ],
795
+ "flags": {
796
+ "json": {
797
+ "description": "Format output as json.",
798
+ "helpGroup": "GLOBAL",
799
+ "name": "json",
800
+ "allowNo": false,
801
+ "type": "boolean"
802
+ }
803
+ },
804
+ "hasDynamicHelp": false,
805
+ "hiddenAliases": [],
806
+ "id": "invitations:revoke",
807
+ "pluginAlias": "@bussolabs/closeyourit-cli",
808
+ "pluginName": "@bussolabs/closeyourit-cli",
809
+ "pluginType": "core",
810
+ "strict": true,
811
+ "enableJsonFlag": true,
812
+ "isESM": false,
813
+ "relativePath": [
814
+ "dist",
815
+ "commands",
816
+ "invitations",
817
+ "revoke.js"
818
+ ]
819
+ },
651
820
  "errors:list": {
652
821
  "aliases": [],
653
822
  "args": {},
@@ -987,19 +1156,19 @@
987
1156
  "unmute.js"
988
1157
  ]
989
1158
  },
990
- "invitations:create": {
1159
+ "groups:create": {
991
1160
  "aliases": [],
992
1161
  "args": {
993
- "email": {
994
- "description": "Email address to invite",
995
- "name": "email",
1162
+ "name": {
1163
+ "description": "Group name",
1164
+ "name": "name",
996
1165
  "required": true
997
1166
  }
998
1167
  },
999
- "description": "Invite a person to the organization. Prints the acceptance link (shown only once).",
1168
+ "description": "Create a group (a container of related projects, e.g. \"DriverOne\")",
1000
1169
  "examples": [
1001
- "<%= config.bin %> invitations create client@acme.com",
1002
- "<%= config.bin %> invitations create teammate@acme.com --role member"
1170
+ "<%= config.bin %> groups create DriverOne",
1171
+ "<%= config.bin %> groups create DriverOne --color indigo"
1003
1172
  ],
1004
1173
  "flags": {
1005
1174
  "json": {
@@ -1009,23 +1178,17 @@
1009
1178
  "allowNo": false,
1010
1179
  "type": "boolean"
1011
1180
  },
1012
- "role": {
1013
- "description": "Membership role",
1014
- "name": "role",
1015
- "default": "customer",
1181
+ "color": {
1182
+ "description": "Color label",
1183
+ "name": "color",
1016
1184
  "hasDynamicHelp": false,
1017
1185
  "multiple": false,
1018
- "options": [
1019
- "customer",
1020
- "member",
1021
- "admin"
1022
- ],
1023
1186
  "type": "option"
1024
1187
  }
1025
1188
  },
1026
1189
  "hasDynamicHelp": false,
1027
1190
  "hiddenAliases": [],
1028
- "id": "invitations:create",
1191
+ "id": "groups:create",
1029
1192
  "pluginAlias": "@bussolabs/closeyourit-cli",
1030
1193
  "pluginName": "@bussolabs/closeyourit-cli",
1031
1194
  "pluginType": "core",
@@ -1035,17 +1198,22 @@
1035
1198
  "relativePath": [
1036
1199
  "dist",
1037
1200
  "commands",
1038
- "invitations",
1201
+ "groups",
1039
1202
  "create.js"
1040
1203
  ]
1041
1204
  },
1042
- "invitations:list": {
1205
+ "groups:delete": {
1043
1206
  "aliases": [],
1044
- "args": {},
1045
- "description": "List the pending/accepted invitations of your organization",
1207
+ "args": {
1208
+ "group": {
1209
+ "description": "Group id (UUID) or name",
1210
+ "name": "group",
1211
+ "required": true
1212
+ }
1213
+ },
1214
+ "description": "Delete a group (its projects are detached, not deleted)",
1046
1215
  "examples": [
1047
- "<%= config.bin %> invitations list",
1048
- "<%= config.bin %> invitations list --json"
1216
+ "<%= config.bin %> groups delete Backend --confirm"
1049
1217
  ],
1050
1218
  "flags": {
1051
1219
  "json": {
@@ -1055,18 +1223,16 @@
1055
1223
  "allowNo": false,
1056
1224
  "type": "boolean"
1057
1225
  },
1058
- "page": {
1059
- "description": "Page number",
1060
- "name": "page",
1061
- "default": 1,
1062
- "hasDynamicHelp": false,
1063
- "multiple": false,
1064
- "type": "option"
1226
+ "confirm": {
1227
+ "description": "Required: confirm the deletion",
1228
+ "name": "confirm",
1229
+ "allowNo": false,
1230
+ "type": "boolean"
1065
1231
  }
1066
1232
  },
1067
1233
  "hasDynamicHelp": false,
1068
1234
  "hiddenAliases": [],
1069
- "id": "invitations:list",
1235
+ "id": "groups:delete",
1070
1236
  "pluginAlias": "@bussolabs/closeyourit-cli",
1071
1237
  "pluginName": "@bussolabs/closeyourit-cli",
1072
1238
  "pluginType": "core",
@@ -1076,22 +1242,17 @@
1076
1242
  "relativePath": [
1077
1243
  "dist",
1078
1244
  "commands",
1079
- "invitations",
1080
- "list.js"
1245
+ "groups",
1246
+ "delete.js"
1081
1247
  ]
1082
1248
  },
1083
- "invitations:resend": {
1249
+ "groups:list": {
1084
1250
  "aliases": [],
1085
- "args": {
1086
- "id": {
1087
- "description": "Invitation id (UUID)",
1088
- "name": "id",
1089
- "required": true
1090
- }
1091
- },
1092
- "description": "Resend a pending invitation. Prints the acceptance link (shown only once).",
1251
+ "args": {},
1252
+ "description": "List the groups (macro-projects) in your organization",
1093
1253
  "examples": [
1094
- "<%= config.bin %> invitations resend <invitation-uuid>"
1254
+ "<%= config.bin %> groups list",
1255
+ "<%= config.bin %> groups list --page 2 --json"
1095
1256
  ],
1096
1257
  "flags": {
1097
1258
  "json": {
@@ -1100,175 +1261,14 @@
1100
1261
  "name": "json",
1101
1262
  "allowNo": false,
1102
1263
  "type": "boolean"
1103
- }
1104
- },
1105
- "hasDynamicHelp": false,
1106
- "hiddenAliases": [],
1107
- "id": "invitations:resend",
1108
- "pluginAlias": "@bussolabs/closeyourit-cli",
1109
- "pluginName": "@bussolabs/closeyourit-cli",
1110
- "pluginType": "core",
1111
- "strict": true,
1112
- "enableJsonFlag": true,
1113
- "isESM": false,
1114
- "relativePath": [
1115
- "dist",
1116
- "commands",
1117
- "invitations",
1118
- "resend.js"
1119
- ]
1120
- },
1121
- "invitations:revoke": {
1122
- "aliases": [],
1123
- "args": {
1124
- "id": {
1125
- "description": "Invitation id (UUID)",
1126
- "name": "id",
1127
- "required": true
1128
- }
1129
- },
1130
- "description": "Revoke a pending invitation",
1131
- "examples": [
1132
- "<%= config.bin %> invitations revoke <invitation-uuid>"
1133
- ],
1134
- "flags": {
1135
- "json": {
1136
- "description": "Format output as json.",
1137
- "helpGroup": "GLOBAL",
1138
- "name": "json",
1139
- "allowNo": false,
1140
- "type": "boolean"
1141
- }
1142
- },
1143
- "hasDynamicHelp": false,
1144
- "hiddenAliases": [],
1145
- "id": "invitations:revoke",
1146
- "pluginAlias": "@bussolabs/closeyourit-cli",
1147
- "pluginName": "@bussolabs/closeyourit-cli",
1148
- "pluginType": "core",
1149
- "strict": true,
1150
- "enableJsonFlag": true,
1151
- "isESM": false,
1152
- "relativePath": [
1153
- "dist",
1154
- "commands",
1155
- "invitations",
1156
- "revoke.js"
1157
- ]
1158
- },
1159
- "groups:create": {
1160
- "aliases": [],
1161
- "args": {
1162
- "name": {
1163
- "description": "Group name",
1164
- "name": "name",
1165
- "required": true
1166
- }
1167
- },
1168
- "description": "Create a group (a container of related projects, e.g. \"DriverOne\")",
1169
- "examples": [
1170
- "<%= config.bin %> groups create DriverOne",
1171
- "<%= config.bin %> groups create DriverOne --color indigo"
1172
- ],
1173
- "flags": {
1174
- "json": {
1175
- "description": "Format output as json.",
1176
- "helpGroup": "GLOBAL",
1177
- "name": "json",
1178
- "allowNo": false,
1179
- "type": "boolean"
1180
- },
1181
- "color": {
1182
- "description": "Color label",
1183
- "name": "color",
1184
- "hasDynamicHelp": false,
1185
- "multiple": false,
1186
- "type": "option"
1187
- }
1188
- },
1189
- "hasDynamicHelp": false,
1190
- "hiddenAliases": [],
1191
- "id": "groups:create",
1192
- "pluginAlias": "@bussolabs/closeyourit-cli",
1193
- "pluginName": "@bussolabs/closeyourit-cli",
1194
- "pluginType": "core",
1195
- "strict": true,
1196
- "enableJsonFlag": true,
1197
- "isESM": false,
1198
- "relativePath": [
1199
- "dist",
1200
- "commands",
1201
- "groups",
1202
- "create.js"
1203
- ]
1204
- },
1205
- "groups:delete": {
1206
- "aliases": [],
1207
- "args": {
1208
- "group": {
1209
- "description": "Group id (UUID) or name",
1210
- "name": "group",
1211
- "required": true
1212
- }
1213
- },
1214
- "description": "Delete a group (its projects are detached, not deleted)",
1215
- "examples": [
1216
- "<%= config.bin %> groups delete Backend --confirm"
1217
- ],
1218
- "flags": {
1219
- "json": {
1220
- "description": "Format output as json.",
1221
- "helpGroup": "GLOBAL",
1222
- "name": "json",
1223
- "allowNo": false,
1224
- "type": "boolean"
1225
- },
1226
- "confirm": {
1227
- "description": "Required: confirm the deletion",
1228
- "name": "confirm",
1229
- "allowNo": false,
1230
- "type": "boolean"
1231
- }
1232
- },
1233
- "hasDynamicHelp": false,
1234
- "hiddenAliases": [],
1235
- "id": "groups:delete",
1236
- "pluginAlias": "@bussolabs/closeyourit-cli",
1237
- "pluginName": "@bussolabs/closeyourit-cli",
1238
- "pluginType": "core",
1239
- "strict": true,
1240
- "enableJsonFlag": true,
1241
- "isESM": false,
1242
- "relativePath": [
1243
- "dist",
1244
- "commands",
1245
- "groups",
1246
- "delete.js"
1247
- ]
1248
- },
1249
- "groups:list": {
1250
- "aliases": [],
1251
- "args": {},
1252
- "description": "List the groups (macro-projects) in your organization",
1253
- "examples": [
1254
- "<%= config.bin %> groups list",
1255
- "<%= config.bin %> groups list --page 2 --json"
1256
- ],
1257
- "flags": {
1258
- "json": {
1259
- "description": "Format output as json.",
1260
- "helpGroup": "GLOBAL",
1261
- "name": "json",
1262
- "allowNo": false,
1263
- "type": "boolean"
1264
- },
1265
- "page": {
1266
- "description": "Page number",
1267
- "name": "page",
1268
- "default": 1,
1269
- "hasDynamicHelp": false,
1270
- "multiple": false,
1271
- "type": "option"
1264
+ },
1265
+ "page": {
1266
+ "description": "Page number",
1267
+ "name": "page",
1268
+ "default": 1,
1269
+ "hasDynamicHelp": false,
1270
+ "multiple": false,
1271
+ "type": "option"
1272
1272
  }
1273
1273
  },
1274
1274
  "hasDynamicHelp": false,
@@ -2781,18 +2781,20 @@
2781
2781
  "update.js"
2782
2782
  ]
2783
2783
  },
2784
- "roles:create": {
2784
+ "projects:create": {
2785
2785
  "aliases": [],
2786
2786
  "args": {
2787
2787
  "name": {
2788
- "description": "Role name",
2788
+ "description": "Project name",
2789
2789
  "name": "name",
2790
2790
  "required": true
2791
2791
  }
2792
2792
  },
2793
- "description": "Create an RBAC role (a named bundle of permission keys)",
2793
+ "description": "Create a project (optionally inside a group)",
2794
2794
  "examples": [
2795
- "<%= config.bin %> roles create Client --permission tickets.edit --permission tickets.assign"
2795
+ "<%= config.bin %> projects create driverone-rails --key DRRA",
2796
+ "<%= config.bin %> projects create driverone-rails --group DriverOne --key DRRA",
2797
+ "<%= config.bin %> projects create driverone-flutter -g <group-uuid> -k DRFL"
2796
2798
  ],
2797
2799
  "flags": {
2798
2800
  "json": {
@@ -2809,17 +2811,34 @@
2809
2811
  "multiple": false,
2810
2812
  "type": "option"
2811
2813
  },
2812
- "permission": {
2813
- "description": "Permission key from the catalog (repeatable)",
2814
- "name": "permission",
2814
+ "description": {
2815
+ "description": "Free-form description",
2816
+ "name": "description",
2815
2817
  "hasDynamicHelp": false,
2816
- "multiple": true,
2818
+ "multiple": false,
2819
+ "type": "option"
2820
+ },
2821
+ "group": {
2822
+ "char": "g",
2823
+ "description": "Group id (UUID) or name to place the project in",
2824
+ "name": "group",
2825
+ "hasDynamicHelp": false,
2826
+ "multiple": false,
2827
+ "type": "option"
2828
+ },
2829
+ "key": {
2830
+ "char": "k",
2831
+ "description": "Project key (uppercase A-Z0-9, max 4 chars, unique per org)",
2832
+ "name": "key",
2833
+ "required": true,
2834
+ "hasDynamicHelp": false,
2835
+ "multiple": false,
2817
2836
  "type": "option"
2818
2837
  }
2819
2838
  },
2820
2839
  "hasDynamicHelp": false,
2821
2840
  "hiddenAliases": [],
2822
- "id": "roles:create",
2841
+ "id": "projects:create",
2823
2842
  "pluginAlias": "@bussolabs/closeyourit-cli",
2824
2843
  "pluginName": "@bussolabs/closeyourit-cli",
2825
2844
  "pluginType": "core",
@@ -2829,22 +2848,16 @@
2829
2848
  "relativePath": [
2830
2849
  "dist",
2831
2850
  "commands",
2832
- "roles",
2851
+ "projects",
2833
2852
  "create.js"
2834
2853
  ]
2835
2854
  },
2836
- "roles:delete": {
2855
+ "projects:delete": {
2837
2856
  "aliases": [],
2838
- "args": {
2839
- "role": {
2840
- "description": "Role id (UUID) or name",
2841
- "name": "role",
2842
- "required": true
2843
- }
2844
- },
2845
- "description": "Delete a role (its assignments to teams and accounts are removed)",
2857
+ "args": {},
2858
+ "description": "Delete a project (irreversible)",
2846
2859
  "examples": [
2847
- "<%= config.bin %> roles delete Client"
2860
+ "<%= config.bin %> projects delete --project LBRA --confirm"
2848
2861
  ],
2849
2862
  "flags": {
2850
2863
  "json": {
@@ -2853,11 +2866,26 @@
2853
2866
  "name": "json",
2854
2867
  "allowNo": false,
2855
2868
  "type": "boolean"
2869
+ },
2870
+ "project": {
2871
+ "char": "p",
2872
+ "description": "Project id (UUID) or key",
2873
+ "name": "project",
2874
+ "required": true,
2875
+ "hasDynamicHelp": false,
2876
+ "multiple": false,
2877
+ "type": "option"
2878
+ },
2879
+ "confirm": {
2880
+ "description": "Required: confirm the irreversible deletion",
2881
+ "name": "confirm",
2882
+ "allowNo": false,
2883
+ "type": "boolean"
2856
2884
  }
2857
2885
  },
2858
2886
  "hasDynamicHelp": false,
2859
2887
  "hiddenAliases": [],
2860
- "id": "roles:delete",
2888
+ "id": "projects:delete",
2861
2889
  "pluginAlias": "@bussolabs/closeyourit-cli",
2862
2890
  "pluginName": "@bussolabs/closeyourit-cli",
2863
2891
  "pluginType": "core",
@@ -2867,17 +2895,17 @@
2867
2895
  "relativePath": [
2868
2896
  "dist",
2869
2897
  "commands",
2870
- "roles",
2898
+ "projects",
2871
2899
  "delete.js"
2872
2900
  ]
2873
2901
  },
2874
- "roles:list": {
2902
+ "projects:list": {
2875
2903
  "aliases": [],
2876
2904
  "args": {},
2877
- "description": "List the RBAC roles in your organization",
2905
+ "description": "List the projects visible to you",
2878
2906
  "examples": [
2879
- "<%= config.bin %> roles list",
2880
- "<%= config.bin %> roles list --json"
2907
+ "<%= config.bin %> projects list",
2908
+ "<%= config.bin %> projects list --page 2 --json"
2881
2909
  ],
2882
2910
  "flags": {
2883
2911
  "json": {
@@ -2898,7 +2926,7 @@
2898
2926
  },
2899
2927
  "hasDynamicHelp": false,
2900
2928
  "hiddenAliases": [],
2901
- "id": "roles:list",
2929
+ "id": "projects:list",
2902
2930
  "pluginAlias": "@bussolabs/closeyourit-cli",
2903
2931
  "pluginName": "@bussolabs/closeyourit-cli",
2904
2932
  "pluginType": "core",
@@ -2908,268 +2936,11 @@
2908
2936
  "relativePath": [
2909
2937
  "dist",
2910
2938
  "commands",
2911
- "roles",
2939
+ "projects",
2912
2940
  "list.js"
2913
2941
  ]
2914
2942
  },
2915
- "roles:show": {
2916
- "aliases": [],
2917
- "args": {
2918
- "role": {
2919
- "description": "Role id (UUID) or name",
2920
- "name": "role",
2921
- "required": true
2922
- }
2923
- },
2924
- "description": "Show a role by id or name (with its permission keys)",
2925
- "examples": [
2926
- "<%= config.bin %> roles show Client"
2927
- ],
2928
- "flags": {
2929
- "json": {
2930
- "description": "Format output as json.",
2931
- "helpGroup": "GLOBAL",
2932
- "name": "json",
2933
- "allowNo": false,
2934
- "type": "boolean"
2935
- }
2936
- },
2937
- "hasDynamicHelp": false,
2938
- "hiddenAliases": [],
2939
- "id": "roles:show",
2940
- "pluginAlias": "@bussolabs/closeyourit-cli",
2941
- "pluginName": "@bussolabs/closeyourit-cli",
2942
- "pluginType": "core",
2943
- "strict": true,
2944
- "enableJsonFlag": true,
2945
- "isESM": false,
2946
- "relativePath": [
2947
- "dist",
2948
- "commands",
2949
- "roles",
2950
- "show.js"
2951
- ]
2952
- },
2953
- "roles:update": {
2954
- "aliases": [],
2955
- "args": {
2956
- "role": {
2957
- "description": "Role id (UUID) or name",
2958
- "name": "role",
2959
- "required": true
2960
- }
2961
- },
2962
- "description": "Update a role (rename, recolor, or replace its permission keys)",
2963
- "examples": [
2964
- "<%= config.bin %> roles update Client --permission tickets.edit --permission tickets.assign",
2965
- "<%= config.bin %> roles update Client --name \"Client manager\""
2966
- ],
2967
- "flags": {
2968
- "json": {
2969
- "description": "Format output as json.",
2970
- "helpGroup": "GLOBAL",
2971
- "name": "json",
2972
- "allowNo": false,
2973
- "type": "boolean"
2974
- },
2975
- "color": {
2976
- "description": "Color label",
2977
- "name": "color",
2978
- "hasDynamicHelp": false,
2979
- "multiple": false,
2980
- "type": "option"
2981
- },
2982
- "name": {
2983
- "description": "New name",
2984
- "name": "name",
2985
- "hasDynamicHelp": false,
2986
- "multiple": false,
2987
- "type": "option"
2988
- },
2989
- "permission": {
2990
- "description": "Permission key (repeatable); when given, REPLACES the whole set",
2991
- "name": "permission",
2992
- "hasDynamicHelp": false,
2993
- "multiple": true,
2994
- "type": "option"
2995
- }
2996
- },
2997
- "hasDynamicHelp": false,
2998
- "hiddenAliases": [],
2999
- "id": "roles:update",
3000
- "pluginAlias": "@bussolabs/closeyourit-cli",
3001
- "pluginName": "@bussolabs/closeyourit-cli",
3002
- "pluginType": "core",
3003
- "strict": true,
3004
- "enableJsonFlag": true,
3005
- "isESM": false,
3006
- "relativePath": [
3007
- "dist",
3008
- "commands",
3009
- "roles",
3010
- "update.js"
3011
- ]
3012
- },
3013
- "projects:create": {
3014
- "aliases": [],
3015
- "args": {
3016
- "name": {
3017
- "description": "Project name",
3018
- "name": "name",
3019
- "required": true
3020
- }
3021
- },
3022
- "description": "Create a project (optionally inside a group)",
3023
- "examples": [
3024
- "<%= config.bin %> projects create driverone-rails --key DRRA",
3025
- "<%= config.bin %> projects create driverone-rails --group DriverOne --key DRRA",
3026
- "<%= config.bin %> projects create driverone-flutter -g <group-uuid> -k DRFL"
3027
- ],
3028
- "flags": {
3029
- "json": {
3030
- "description": "Format output as json.",
3031
- "helpGroup": "GLOBAL",
3032
- "name": "json",
3033
- "allowNo": false,
3034
- "type": "boolean"
3035
- },
3036
- "color": {
3037
- "description": "Color label",
3038
- "name": "color",
3039
- "hasDynamicHelp": false,
3040
- "multiple": false,
3041
- "type": "option"
3042
- },
3043
- "description": {
3044
- "description": "Free-form description",
3045
- "name": "description",
3046
- "hasDynamicHelp": false,
3047
- "multiple": false,
3048
- "type": "option"
3049
- },
3050
- "group": {
3051
- "char": "g",
3052
- "description": "Group id (UUID) or name to place the project in",
3053
- "name": "group",
3054
- "hasDynamicHelp": false,
3055
- "multiple": false,
3056
- "type": "option"
3057
- },
3058
- "key": {
3059
- "char": "k",
3060
- "description": "Project key (uppercase A-Z0-9, max 4 chars, unique per org)",
3061
- "name": "key",
3062
- "required": true,
3063
- "hasDynamicHelp": false,
3064
- "multiple": false,
3065
- "type": "option"
3066
- }
3067
- },
3068
- "hasDynamicHelp": false,
3069
- "hiddenAliases": [],
3070
- "id": "projects:create",
3071
- "pluginAlias": "@bussolabs/closeyourit-cli",
3072
- "pluginName": "@bussolabs/closeyourit-cli",
3073
- "pluginType": "core",
3074
- "strict": true,
3075
- "enableJsonFlag": true,
3076
- "isESM": false,
3077
- "relativePath": [
3078
- "dist",
3079
- "commands",
3080
- "projects",
3081
- "create.js"
3082
- ]
3083
- },
3084
- "projects:delete": {
3085
- "aliases": [],
3086
- "args": {},
3087
- "description": "Delete a project (irreversible)",
3088
- "examples": [
3089
- "<%= config.bin %> projects delete --project LBRA --confirm"
3090
- ],
3091
- "flags": {
3092
- "json": {
3093
- "description": "Format output as json.",
3094
- "helpGroup": "GLOBAL",
3095
- "name": "json",
3096
- "allowNo": false,
3097
- "type": "boolean"
3098
- },
3099
- "project": {
3100
- "char": "p",
3101
- "description": "Project id (UUID) or key",
3102
- "name": "project",
3103
- "required": true,
3104
- "hasDynamicHelp": false,
3105
- "multiple": false,
3106
- "type": "option"
3107
- },
3108
- "confirm": {
3109
- "description": "Required: confirm the irreversible deletion",
3110
- "name": "confirm",
3111
- "allowNo": false,
3112
- "type": "boolean"
3113
- }
3114
- },
3115
- "hasDynamicHelp": false,
3116
- "hiddenAliases": [],
3117
- "id": "projects:delete",
3118
- "pluginAlias": "@bussolabs/closeyourit-cli",
3119
- "pluginName": "@bussolabs/closeyourit-cli",
3120
- "pluginType": "core",
3121
- "strict": true,
3122
- "enableJsonFlag": true,
3123
- "isESM": false,
3124
- "relativePath": [
3125
- "dist",
3126
- "commands",
3127
- "projects",
3128
- "delete.js"
3129
- ]
3130
- },
3131
- "projects:list": {
3132
- "aliases": [],
3133
- "args": {},
3134
- "description": "List the projects visible to you",
3135
- "examples": [
3136
- "<%= config.bin %> projects list",
3137
- "<%= config.bin %> projects list --page 2 --json"
3138
- ],
3139
- "flags": {
3140
- "json": {
3141
- "description": "Format output as json.",
3142
- "helpGroup": "GLOBAL",
3143
- "name": "json",
3144
- "allowNo": false,
3145
- "type": "boolean"
3146
- },
3147
- "page": {
3148
- "description": "Page number",
3149
- "name": "page",
3150
- "default": 1,
3151
- "hasDynamicHelp": false,
3152
- "multiple": false,
3153
- "type": "option"
3154
- }
3155
- },
3156
- "hasDynamicHelp": false,
3157
- "hiddenAliases": [],
3158
- "id": "projects:list",
3159
- "pluginAlias": "@bussolabs/closeyourit-cli",
3160
- "pluginName": "@bussolabs/closeyourit-cli",
3161
- "pluginType": "core",
3162
- "strict": true,
3163
- "enableJsonFlag": true,
3164
- "isESM": false,
3165
- "relativePath": [
3166
- "dist",
3167
- "commands",
3168
- "projects",
3169
- "list.js"
3170
- ]
3171
- },
3172
- "projects:set-environments": {
2943
+ "projects:set-environments": {
3173
2944
  "aliases": [],
3174
2945
  "args": {},
3175
2946
  "description": "Declare the environments a project receives data from (replaces the current set)",
@@ -3401,62 +3172,18 @@
3401
3172
  "update.js"
3402
3173
  ]
3403
3174
  },
3404
- "teams:add-member": {
3405
- "aliases": [],
3406
- "args": {
3407
- "team": {
3408
- "description": "Team id (UUID) or name",
3409
- "name": "team",
3410
- "required": true
3411
- },
3412
- "member": {
3413
- "description": "Member account id or email (must be an org member)",
3414
- "name": "member",
3415
- "required": true
3416
- }
3417
- },
3418
- "description": "Add a person to a team, keeping the existing members",
3419
- "examples": [
3420
- "<%= config.bin %> teams add-member DriverOne client@acme.com"
3421
- ],
3422
- "flags": {
3423
- "json": {
3424
- "description": "Format output as json.",
3425
- "helpGroup": "GLOBAL",
3426
- "name": "json",
3427
- "allowNo": false,
3428
- "type": "boolean"
3429
- }
3430
- },
3431
- "hasDynamicHelp": false,
3432
- "hiddenAliases": [],
3433
- "id": "teams:add-member",
3434
- "pluginAlias": "@bussolabs/closeyourit-cli",
3435
- "pluginName": "@bussolabs/closeyourit-cli",
3436
- "pluginType": "core",
3437
- "strict": true,
3438
- "enableJsonFlag": true,
3439
- "isESM": false,
3440
- "relativePath": [
3441
- "dist",
3442
- "commands",
3443
- "teams",
3444
- "add-member.js"
3445
- ]
3446
- },
3447
- "teams:create": {
3175
+ "roles:create": {
3448
3176
  "aliases": [],
3449
3177
  "args": {
3450
3178
  "name": {
3451
- "description": "Team name",
3179
+ "description": "Role name",
3452
3180
  "name": "name",
3453
3181
  "required": true
3454
3182
  }
3455
3183
  },
3456
- "description": "Create a team and (optionally) set its roles, group/project scope and members",
3184
+ "description": "Create an RBAC role (a named bundle of permission keys)",
3457
3185
  "examples": [
3458
- "<%= config.bin %> teams create DriverOne --role Client --group DriverOne",
3459
- "<%= config.bin %> teams create DriverOne --role Client --group DriverOne --member client@acme.com"
3186
+ "<%= config.bin %> roles create Client --permission tickets.edit --permission tickets.assign"
3460
3187
  ],
3461
3188
  "flags": {
3462
3189
  "json": {
@@ -3473,30 +3200,9 @@
3473
3200
  "multiple": false,
3474
3201
  "type": "option"
3475
3202
  },
3476
- "group": {
3477
- "description": "Group id or name to scope the team to (repeatable)",
3478
- "name": "group",
3479
- "hasDynamicHelp": false,
3480
- "multiple": true,
3481
- "type": "option"
3482
- },
3483
- "member": {
3484
- "description": "Member account id or email (repeatable; must be an org member)",
3485
- "name": "member",
3486
- "hasDynamicHelp": false,
3487
- "multiple": true,
3488
- "type": "option"
3489
- },
3490
- "project": {
3491
- "description": "Project id or key to scope the team to (repeatable)",
3492
- "name": "project",
3493
- "hasDynamicHelp": false,
3494
- "multiple": true,
3495
- "type": "option"
3496
- },
3497
- "role": {
3498
- "description": "Role id or name to grant to the team (repeatable)",
3499
- "name": "role",
3203
+ "permission": {
3204
+ "description": "Permission key from the catalog (repeatable)",
3205
+ "name": "permission",
3500
3206
  "hasDynamicHelp": false,
3501
3207
  "multiple": true,
3502
3208
  "type": "option"
@@ -3504,7 +3210,7 @@
3504
3210
  },
3505
3211
  "hasDynamicHelp": false,
3506
3212
  "hiddenAliases": [],
3507
- "id": "teams:create",
3213
+ "id": "roles:create",
3508
3214
  "pluginAlias": "@bussolabs/closeyourit-cli",
3509
3215
  "pluginName": "@bussolabs/closeyourit-cli",
3510
3216
  "pluginType": "core",
@@ -3514,22 +3220,22 @@
3514
3220
  "relativePath": [
3515
3221
  "dist",
3516
3222
  "commands",
3517
- "teams",
3223
+ "roles",
3518
3224
  "create.js"
3519
3225
  ]
3520
3226
  },
3521
- "teams:delete": {
3227
+ "roles:delete": {
3522
3228
  "aliases": [],
3523
3229
  "args": {
3524
- "team": {
3525
- "description": "Team id (UUID) or name",
3526
- "name": "team",
3230
+ "role": {
3231
+ "description": "Role id (UUID) or name",
3232
+ "name": "role",
3527
3233
  "required": true
3528
3234
  }
3529
3235
  },
3530
- "description": "Delete a team (its members lose the access this team granted)",
3236
+ "description": "Delete a role (its assignments to teams and accounts are removed)",
3531
3237
  "examples": [
3532
- "<%= config.bin %> teams delete DriverOne"
3238
+ "<%= config.bin %> roles delete Client"
3533
3239
  ],
3534
3240
  "flags": {
3535
3241
  "json": {
@@ -3542,7 +3248,7 @@
3542
3248
  },
3543
3249
  "hasDynamicHelp": false,
3544
3250
  "hiddenAliases": [],
3545
- "id": "teams:delete",
3251
+ "id": "roles:delete",
3546
3252
  "pluginAlias": "@bussolabs/closeyourit-cli",
3547
3253
  "pluginName": "@bussolabs/closeyourit-cli",
3548
3254
  "pluginType": "core",
@@ -3552,17 +3258,17 @@
3552
3258
  "relativePath": [
3553
3259
  "dist",
3554
3260
  "commands",
3555
- "teams",
3261
+ "roles",
3556
3262
  "delete.js"
3557
3263
  ]
3558
3264
  },
3559
- "teams:list": {
3265
+ "roles:list": {
3560
3266
  "aliases": [],
3561
3267
  "args": {},
3562
- "description": "List the teams (people with scope) in your organization",
3268
+ "description": "List the RBAC roles in your organization",
3563
3269
  "examples": [
3564
- "<%= config.bin %> teams list",
3565
- "<%= config.bin %> teams list --json"
3270
+ "<%= config.bin %> roles list",
3271
+ "<%= config.bin %> roles list --json"
3566
3272
  ],
3567
3273
  "flags": {
3568
3274
  "json": {
@@ -3583,7 +3289,7 @@
3583
3289
  },
3584
3290
  "hasDynamicHelp": false,
3585
3291
  "hiddenAliases": [],
3586
- "id": "teams:list",
3292
+ "id": "roles:list",
3587
3293
  "pluginAlias": "@bussolabs/closeyourit-cli",
3588
3294
  "pluginName": "@bussolabs/closeyourit-cli",
3589
3295
  "pluginType": "core",
@@ -3593,27 +3299,22 @@
3593
3299
  "relativePath": [
3594
3300
  "dist",
3595
3301
  "commands",
3596
- "teams",
3302
+ "roles",
3597
3303
  "list.js"
3598
3304
  ]
3599
3305
  },
3600
- "teams:remove-member": {
3306
+ "roles:show": {
3601
3307
  "aliases": [],
3602
3308
  "args": {
3603
- "team": {
3604
- "description": "Team id (UUID) or name",
3605
- "name": "team",
3606
- "required": true
3607
- },
3608
- "member": {
3609
- "description": "Member account id or email",
3610
- "name": "member",
3309
+ "role": {
3310
+ "description": "Role id (UUID) or name",
3311
+ "name": "role",
3611
3312
  "required": true
3612
3313
  }
3613
3314
  },
3614
- "description": "Remove a person from a team, keeping the other members",
3315
+ "description": "Show a role by id or name (with its permission keys)",
3615
3316
  "examples": [
3616
- "<%= config.bin %> teams remove-member DriverOne client@acme.com"
3317
+ "<%= config.bin %> roles show Client"
3617
3318
  ],
3618
3319
  "flags": {
3619
3320
  "json": {
@@ -3626,7 +3327,7 @@
3626
3327
  },
3627
3328
  "hasDynamicHelp": false,
3628
3329
  "hiddenAliases": [],
3629
- "id": "teams:remove-member",
3330
+ "id": "roles:show",
3630
3331
  "pluginAlias": "@bussolabs/closeyourit-cli",
3631
3332
  "pluginName": "@bussolabs/closeyourit-cli",
3632
3333
  "pluginType": "core",
@@ -3636,22 +3337,23 @@
3636
3337
  "relativePath": [
3637
3338
  "dist",
3638
3339
  "commands",
3639
- "teams",
3640
- "remove-member.js"
3340
+ "roles",
3341
+ "show.js"
3641
3342
  ]
3642
3343
  },
3643
- "teams:show": {
3344
+ "roles:update": {
3644
3345
  "aliases": [],
3645
3346
  "args": {
3646
- "team": {
3647
- "description": "Team id (UUID) or name",
3648
- "name": "team",
3347
+ "role": {
3348
+ "description": "Role id (UUID) or name",
3349
+ "name": "role",
3649
3350
  "required": true
3650
3351
  }
3651
3352
  },
3652
- "description": "Show a team by id or name (roles, group/project scope, members)",
3353
+ "description": "Update a role (rename, recolor, or replace its permission keys)",
3653
3354
  "examples": [
3654
- "<%= config.bin %> teams show DriverOne"
3355
+ "<%= config.bin %> roles update Client --permission tickets.edit --permission tickets.assign",
3356
+ "<%= config.bin %> roles update Client --name \"Client manager\""
3655
3357
  ],
3656
3358
  "flags": {
3657
3359
  "json": {
@@ -3660,11 +3362,32 @@
3660
3362
  "name": "json",
3661
3363
  "allowNo": false,
3662
3364
  "type": "boolean"
3365
+ },
3366
+ "color": {
3367
+ "description": "Color label",
3368
+ "name": "color",
3369
+ "hasDynamicHelp": false,
3370
+ "multiple": false,
3371
+ "type": "option"
3372
+ },
3373
+ "name": {
3374
+ "description": "New name",
3375
+ "name": "name",
3376
+ "hasDynamicHelp": false,
3377
+ "multiple": false,
3378
+ "type": "option"
3379
+ },
3380
+ "permission": {
3381
+ "description": "Permission key (repeatable); when given, REPLACES the whole set",
3382
+ "name": "permission",
3383
+ "hasDynamicHelp": false,
3384
+ "multiple": true,
3385
+ "type": "option"
3663
3386
  }
3664
3387
  },
3665
3388
  "hasDynamicHelp": false,
3666
3389
  "hiddenAliases": [],
3667
- "id": "teams:show",
3390
+ "id": "roles:update",
3668
3391
  "pluginAlias": "@bussolabs/closeyourit-cli",
3669
3392
  "pluginName": "@bussolabs/closeyourit-cli",
3670
3393
  "pluginType": "core",
@@ -3674,23 +3397,22 @@
3674
3397
  "relativePath": [
3675
3398
  "dist",
3676
3399
  "commands",
3677
- "teams",
3678
- "show.js"
3400
+ "roles",
3401
+ "update.js"
3679
3402
  ]
3680
3403
  },
3681
- "teams:update": {
3404
+ "servers:delete": {
3682
3405
  "aliases": [],
3683
3406
  "args": {
3684
- "team": {
3685
- "description": "Team id (UUID) or name",
3686
- "name": "team",
3407
+ "id": {
3408
+ "description": "Server id",
3409
+ "name": "id",
3687
3410
  "required": true
3688
3411
  }
3689
3412
  },
3690
- "description": "Update a team. Each given dimension REPLACES the whole set for that dimension.",
3413
+ "description": "Delete a server and all its metrics (a live agent would re-register it)",
3691
3414
  "examples": [
3692
- "<%= config.bin %> teams update DriverOne --role Client --group DriverOne",
3693
- "<%= config.bin %> teams update DriverOne --name \"DriverOne clients\""
3415
+ "<%= config.bin %> servers delete <server-id> --confirm"
3694
3416
  ],
3695
3417
  "flags": {
3696
3418
  "json": {
@@ -3700,52 +3422,16 @@
3700
3422
  "allowNo": false,
3701
3423
  "type": "boolean"
3702
3424
  },
3703
- "color": {
3704
- "description": "Color label",
3705
- "name": "color",
3706
- "hasDynamicHelp": false,
3707
- "multiple": false,
3708
- "type": "option"
3709
- },
3710
- "group": {
3711
- "description": "Group id or name (repeatable; replaces the group scope)",
3712
- "name": "group",
3713
- "hasDynamicHelp": false,
3714
- "multiple": true,
3715
- "type": "option"
3716
- },
3717
- "member": {
3718
- "description": "Member account id or email (repeatable; replaces the members)",
3719
- "name": "member",
3720
- "hasDynamicHelp": false,
3721
- "multiple": true,
3722
- "type": "option"
3723
- },
3724
- "name": {
3725
- "description": "New name",
3726
- "name": "name",
3727
- "hasDynamicHelp": false,
3728
- "multiple": false,
3729
- "type": "option"
3730
- },
3731
- "project": {
3732
- "description": "Project id or key (repeatable; replaces the project scope)",
3733
- "name": "project",
3734
- "hasDynamicHelp": false,
3735
- "multiple": true,
3736
- "type": "option"
3737
- },
3738
- "role": {
3739
- "description": "Role id or name (repeatable; replaces the roles)",
3740
- "name": "role",
3741
- "hasDynamicHelp": false,
3742
- "multiple": true,
3743
- "type": "option"
3425
+ "confirm": {
3426
+ "description": "Required: confirm the deletion",
3427
+ "name": "confirm",
3428
+ "allowNo": false,
3429
+ "type": "boolean"
3744
3430
  }
3745
3431
  },
3746
3432
  "hasDynamicHelp": false,
3747
3433
  "hiddenAliases": [],
3748
- "id": "teams:update",
3434
+ "id": "servers:delete",
3749
3435
  "pluginAlias": "@bussolabs/closeyourit-cli",
3750
3436
  "pluginName": "@bussolabs/closeyourit-cli",
3751
3437
  "pluginType": "core",
@@ -3755,16 +3441,17 @@
3755
3441
  "relativePath": [
3756
3442
  "dist",
3757
3443
  "commands",
3758
- "teams",
3759
- "update.js"
3444
+ "servers",
3445
+ "delete.js"
3760
3446
  ]
3761
3447
  },
3762
- "tokens:create": {
3448
+ "servers:list": {
3763
3449
  "aliases": [],
3764
3450
  "args": {},
3765
- "description": "Create an ingest token (the secret is shown only once)",
3451
+ "description": "List the monitored servers in your organization (fleet snapshot)",
3766
3452
  "examples": [
3767
- "<%= config.bin %> tokens create --project acme-api --name \"CI prod\" --environment-id <env-id>"
3453
+ "<%= config.bin %> servers list",
3454
+ "<%= config.bin %> servers list --status down --json"
3768
3455
  ],
3769
3456
  "flags": {
3770
3457
  "json": {
@@ -3774,24 +3461,319 @@
3774
3461
  "allowNo": false,
3775
3462
  "type": "boolean"
3776
3463
  },
3777
- "project": {
3778
- "char": "p",
3779
- "description": "Project id (UUID) or key",
3780
- "name": "project",
3781
- "required": true,
3464
+ "page": {
3465
+ "description": "Page number",
3466
+ "name": "page",
3467
+ "default": 1,
3782
3468
  "hasDynamicHelp": false,
3783
3469
  "multiple": false,
3784
3470
  "type": "option"
3785
3471
  },
3786
- "name": {
3787
- "description": "Human-readable token name",
3788
- "name": "name",
3789
- "required": true,
3472
+ "status": {
3473
+ "description": "Filter by status (repeatable)",
3474
+ "name": "status",
3790
3475
  "hasDynamicHelp": false,
3791
- "multiple": false,
3476
+ "multiple": true,
3477
+ "options": [
3478
+ "pending",
3479
+ "up",
3480
+ "down",
3481
+ "paused"
3482
+ ],
3792
3483
  "type": "option"
3793
- },
3794
- "environment-id": {
3484
+ }
3485
+ },
3486
+ "hasDynamicHelp": false,
3487
+ "hiddenAliases": [],
3488
+ "id": "servers:list",
3489
+ "pluginAlias": "@bussolabs/closeyourit-cli",
3490
+ "pluginName": "@bussolabs/closeyourit-cli",
3491
+ "pluginType": "core",
3492
+ "strict": true,
3493
+ "enableJsonFlag": true,
3494
+ "isESM": false,
3495
+ "relativePath": [
3496
+ "dist",
3497
+ "commands",
3498
+ "servers",
3499
+ "list.js"
3500
+ ]
3501
+ },
3502
+ "servers:pause": {
3503
+ "aliases": [],
3504
+ "args": {
3505
+ "id": {
3506
+ "description": "Server id",
3507
+ "name": "id",
3508
+ "required": true
3509
+ }
3510
+ },
3511
+ "description": "Pause a server (no staleness checks or alerts until resumed)",
3512
+ "examples": [
3513
+ "<%= config.bin %> servers pause <server-id>"
3514
+ ],
3515
+ "flags": {
3516
+ "json": {
3517
+ "description": "Format output as json.",
3518
+ "helpGroup": "GLOBAL",
3519
+ "name": "json",
3520
+ "allowNo": false,
3521
+ "type": "boolean"
3522
+ }
3523
+ },
3524
+ "hasDynamicHelp": false,
3525
+ "hiddenAliases": [],
3526
+ "id": "servers:pause",
3527
+ "pluginAlias": "@bussolabs/closeyourit-cli",
3528
+ "pluginName": "@bussolabs/closeyourit-cli",
3529
+ "pluginType": "core",
3530
+ "strict": true,
3531
+ "enableJsonFlag": true,
3532
+ "isESM": false,
3533
+ "relativePath": [
3534
+ "dist",
3535
+ "commands",
3536
+ "servers",
3537
+ "pause.js"
3538
+ ]
3539
+ },
3540
+ "servers:rename": {
3541
+ "aliases": [],
3542
+ "args": {
3543
+ "id": {
3544
+ "description": "Server id",
3545
+ "name": "id",
3546
+ "required": true
3547
+ }
3548
+ },
3549
+ "description": "Rename a monitored server (display name only)",
3550
+ "examples": [
3551
+ "<%= config.bin %> servers rename <server-id> --name apps-prod"
3552
+ ],
3553
+ "flags": {
3554
+ "json": {
3555
+ "description": "Format output as json.",
3556
+ "helpGroup": "GLOBAL",
3557
+ "name": "json",
3558
+ "allowNo": false,
3559
+ "type": "boolean"
3560
+ },
3561
+ "name": {
3562
+ "description": "New display name",
3563
+ "name": "name",
3564
+ "required": true,
3565
+ "hasDynamicHelp": false,
3566
+ "multiple": false,
3567
+ "type": "option"
3568
+ }
3569
+ },
3570
+ "hasDynamicHelp": false,
3571
+ "hiddenAliases": [],
3572
+ "id": "servers:rename",
3573
+ "pluginAlias": "@bussolabs/closeyourit-cli",
3574
+ "pluginName": "@bussolabs/closeyourit-cli",
3575
+ "pluginType": "core",
3576
+ "strict": true,
3577
+ "enableJsonFlag": true,
3578
+ "isESM": false,
3579
+ "relativePath": [
3580
+ "dist",
3581
+ "commands",
3582
+ "servers",
3583
+ "rename.js"
3584
+ ]
3585
+ },
3586
+ "servers:resume": {
3587
+ "aliases": [],
3588
+ "args": {
3589
+ "id": {
3590
+ "description": "Server id",
3591
+ "name": "id",
3592
+ "required": true
3593
+ }
3594
+ },
3595
+ "description": "Resume a paused server (back up at the next agent push)",
3596
+ "examples": [
3597
+ "<%= config.bin %> servers resume <server-id>"
3598
+ ],
3599
+ "flags": {
3600
+ "json": {
3601
+ "description": "Format output as json.",
3602
+ "helpGroup": "GLOBAL",
3603
+ "name": "json",
3604
+ "allowNo": false,
3605
+ "type": "boolean"
3606
+ }
3607
+ },
3608
+ "hasDynamicHelp": false,
3609
+ "hiddenAliases": [],
3610
+ "id": "servers:resume",
3611
+ "pluginAlias": "@bussolabs/closeyourit-cli",
3612
+ "pluginName": "@bussolabs/closeyourit-cli",
3613
+ "pluginType": "core",
3614
+ "strict": true,
3615
+ "enableJsonFlag": true,
3616
+ "isESM": false,
3617
+ "relativePath": [
3618
+ "dist",
3619
+ "commands",
3620
+ "servers",
3621
+ "resume.js"
3622
+ ]
3623
+ },
3624
+ "servers:revoke": {
3625
+ "aliases": [],
3626
+ "args": {
3627
+ "id": {
3628
+ "description": "Server id",
3629
+ "name": "id",
3630
+ "required": true
3631
+ }
3632
+ },
3633
+ "description": "Revoke a server: its agent gets 403 and stops (host stays, reversible)",
3634
+ "examples": [
3635
+ "<%= config.bin %> servers revoke <server-id> --confirm"
3636
+ ],
3637
+ "flags": {
3638
+ "json": {
3639
+ "description": "Format output as json.",
3640
+ "helpGroup": "GLOBAL",
3641
+ "name": "json",
3642
+ "allowNo": false,
3643
+ "type": "boolean"
3644
+ },
3645
+ "confirm": {
3646
+ "description": "Required: confirm the revocation",
3647
+ "name": "confirm",
3648
+ "allowNo": false,
3649
+ "type": "boolean"
3650
+ }
3651
+ },
3652
+ "hasDynamicHelp": false,
3653
+ "hiddenAliases": [],
3654
+ "id": "servers:revoke",
3655
+ "pluginAlias": "@bussolabs/closeyourit-cli",
3656
+ "pluginName": "@bussolabs/closeyourit-cli",
3657
+ "pluginType": "core",
3658
+ "strict": true,
3659
+ "enableJsonFlag": true,
3660
+ "isESM": false,
3661
+ "relativePath": [
3662
+ "dist",
3663
+ "commands",
3664
+ "servers",
3665
+ "revoke.js"
3666
+ ]
3667
+ },
3668
+ "servers:show": {
3669
+ "aliases": [],
3670
+ "args": {
3671
+ "id": {
3672
+ "description": "Server id",
3673
+ "name": "id",
3674
+ "required": true
3675
+ }
3676
+ },
3677
+ "description": "Show a monitored server (latest snapshot)",
3678
+ "examples": [
3679
+ "<%= config.bin %> servers show <server-id>"
3680
+ ],
3681
+ "flags": {
3682
+ "json": {
3683
+ "description": "Format output as json.",
3684
+ "helpGroup": "GLOBAL",
3685
+ "name": "json",
3686
+ "allowNo": false,
3687
+ "type": "boolean"
3688
+ }
3689
+ },
3690
+ "hasDynamicHelp": false,
3691
+ "hiddenAliases": [],
3692
+ "id": "servers:show",
3693
+ "pluginAlias": "@bussolabs/closeyourit-cli",
3694
+ "pluginName": "@bussolabs/closeyourit-cli",
3695
+ "pluginType": "core",
3696
+ "strict": true,
3697
+ "enableJsonFlag": true,
3698
+ "isESM": false,
3699
+ "relativePath": [
3700
+ "dist",
3701
+ "commands",
3702
+ "servers",
3703
+ "show.js"
3704
+ ]
3705
+ },
3706
+ "servers:unrevoke": {
3707
+ "aliases": [],
3708
+ "args": {
3709
+ "id": {
3710
+ "description": "Server id",
3711
+ "name": "id",
3712
+ "required": true
3713
+ }
3714
+ },
3715
+ "description": "Restore a revoked server (its agent can push again)",
3716
+ "examples": [
3717
+ "<%= config.bin %> servers unrevoke <server-id>"
3718
+ ],
3719
+ "flags": {
3720
+ "json": {
3721
+ "description": "Format output as json.",
3722
+ "helpGroup": "GLOBAL",
3723
+ "name": "json",
3724
+ "allowNo": false,
3725
+ "type": "boolean"
3726
+ }
3727
+ },
3728
+ "hasDynamicHelp": false,
3729
+ "hiddenAliases": [],
3730
+ "id": "servers:unrevoke",
3731
+ "pluginAlias": "@bussolabs/closeyourit-cli",
3732
+ "pluginName": "@bussolabs/closeyourit-cli",
3733
+ "pluginType": "core",
3734
+ "strict": true,
3735
+ "enableJsonFlag": true,
3736
+ "isESM": false,
3737
+ "relativePath": [
3738
+ "dist",
3739
+ "commands",
3740
+ "servers",
3741
+ "unrevoke.js"
3742
+ ]
3743
+ },
3744
+ "tokens:create": {
3745
+ "aliases": [],
3746
+ "args": {},
3747
+ "description": "Create an ingest token (the secret is shown only once)",
3748
+ "examples": [
3749
+ "<%= config.bin %> tokens create --project acme-api --name \"CI prod\" --environment-id <env-id>"
3750
+ ],
3751
+ "flags": {
3752
+ "json": {
3753
+ "description": "Format output as json.",
3754
+ "helpGroup": "GLOBAL",
3755
+ "name": "json",
3756
+ "allowNo": false,
3757
+ "type": "boolean"
3758
+ },
3759
+ "project": {
3760
+ "char": "p",
3761
+ "description": "Project id (UUID) or key",
3762
+ "name": "project",
3763
+ "required": true,
3764
+ "hasDynamicHelp": false,
3765
+ "multiple": false,
3766
+ "type": "option"
3767
+ },
3768
+ "name": {
3769
+ "description": "Human-readable token name",
3770
+ "name": "name",
3771
+ "required": true,
3772
+ "hasDynamicHelp": false,
3773
+ "multiple": false,
3774
+ "type": "option"
3775
+ },
3776
+ "environment-id": {
3795
3777
  "description": "Environment id the token is scoped to",
3796
3778
  "name": "environment-id",
3797
3779
  "required": true,
@@ -5027,7 +5009,490 @@
5027
5009
  "tickets",
5028
5010
  "vote.js"
5029
5011
  ]
5012
+ },
5013
+ "teams:add-member": {
5014
+ "aliases": [],
5015
+ "args": {
5016
+ "team": {
5017
+ "description": "Team id (UUID) or name",
5018
+ "name": "team",
5019
+ "required": true
5020
+ },
5021
+ "member": {
5022
+ "description": "Member account id or email (must be an org member)",
5023
+ "name": "member",
5024
+ "required": true
5025
+ }
5026
+ },
5027
+ "description": "Add a person to a team, keeping the existing members",
5028
+ "examples": [
5029
+ "<%= config.bin %> teams add-member DriverOne client@acme.com"
5030
+ ],
5031
+ "flags": {
5032
+ "json": {
5033
+ "description": "Format output as json.",
5034
+ "helpGroup": "GLOBAL",
5035
+ "name": "json",
5036
+ "allowNo": false,
5037
+ "type": "boolean"
5038
+ }
5039
+ },
5040
+ "hasDynamicHelp": false,
5041
+ "hiddenAliases": [],
5042
+ "id": "teams:add-member",
5043
+ "pluginAlias": "@bussolabs/closeyourit-cli",
5044
+ "pluginName": "@bussolabs/closeyourit-cli",
5045
+ "pluginType": "core",
5046
+ "strict": true,
5047
+ "enableJsonFlag": true,
5048
+ "isESM": false,
5049
+ "relativePath": [
5050
+ "dist",
5051
+ "commands",
5052
+ "teams",
5053
+ "add-member.js"
5054
+ ]
5055
+ },
5056
+ "teams:create": {
5057
+ "aliases": [],
5058
+ "args": {
5059
+ "name": {
5060
+ "description": "Team name",
5061
+ "name": "name",
5062
+ "required": true
5063
+ }
5064
+ },
5065
+ "description": "Create a team and (optionally) set its roles, group/project scope and members",
5066
+ "examples": [
5067
+ "<%= config.bin %> teams create DriverOne --role Client --group DriverOne",
5068
+ "<%= config.bin %> teams create DriverOne --role Client --group DriverOne --member client@acme.com"
5069
+ ],
5070
+ "flags": {
5071
+ "json": {
5072
+ "description": "Format output as json.",
5073
+ "helpGroup": "GLOBAL",
5074
+ "name": "json",
5075
+ "allowNo": false,
5076
+ "type": "boolean"
5077
+ },
5078
+ "color": {
5079
+ "description": "Color label",
5080
+ "name": "color",
5081
+ "hasDynamicHelp": false,
5082
+ "multiple": false,
5083
+ "type": "option"
5084
+ },
5085
+ "group": {
5086
+ "description": "Group id or name to scope the team to (repeatable)",
5087
+ "name": "group",
5088
+ "hasDynamicHelp": false,
5089
+ "multiple": true,
5090
+ "type": "option"
5091
+ },
5092
+ "member": {
5093
+ "description": "Member account id or email (repeatable; must be an org member)",
5094
+ "name": "member",
5095
+ "hasDynamicHelp": false,
5096
+ "multiple": true,
5097
+ "type": "option"
5098
+ },
5099
+ "project": {
5100
+ "description": "Project id or key to scope the team to (repeatable)",
5101
+ "name": "project",
5102
+ "hasDynamicHelp": false,
5103
+ "multiple": true,
5104
+ "type": "option"
5105
+ },
5106
+ "role": {
5107
+ "description": "Role id or name to grant to the team (repeatable)",
5108
+ "name": "role",
5109
+ "hasDynamicHelp": false,
5110
+ "multiple": true,
5111
+ "type": "option"
5112
+ }
5113
+ },
5114
+ "hasDynamicHelp": false,
5115
+ "hiddenAliases": [],
5116
+ "id": "teams:create",
5117
+ "pluginAlias": "@bussolabs/closeyourit-cli",
5118
+ "pluginName": "@bussolabs/closeyourit-cli",
5119
+ "pluginType": "core",
5120
+ "strict": true,
5121
+ "enableJsonFlag": true,
5122
+ "isESM": false,
5123
+ "relativePath": [
5124
+ "dist",
5125
+ "commands",
5126
+ "teams",
5127
+ "create.js"
5128
+ ]
5129
+ },
5130
+ "teams:delete": {
5131
+ "aliases": [],
5132
+ "args": {
5133
+ "team": {
5134
+ "description": "Team id (UUID) or name",
5135
+ "name": "team",
5136
+ "required": true
5137
+ }
5138
+ },
5139
+ "description": "Delete a team (its members lose the access this team granted)",
5140
+ "examples": [
5141
+ "<%= config.bin %> teams delete DriverOne"
5142
+ ],
5143
+ "flags": {
5144
+ "json": {
5145
+ "description": "Format output as json.",
5146
+ "helpGroup": "GLOBAL",
5147
+ "name": "json",
5148
+ "allowNo": false,
5149
+ "type": "boolean"
5150
+ }
5151
+ },
5152
+ "hasDynamicHelp": false,
5153
+ "hiddenAliases": [],
5154
+ "id": "teams:delete",
5155
+ "pluginAlias": "@bussolabs/closeyourit-cli",
5156
+ "pluginName": "@bussolabs/closeyourit-cli",
5157
+ "pluginType": "core",
5158
+ "strict": true,
5159
+ "enableJsonFlag": true,
5160
+ "isESM": false,
5161
+ "relativePath": [
5162
+ "dist",
5163
+ "commands",
5164
+ "teams",
5165
+ "delete.js"
5166
+ ]
5167
+ },
5168
+ "teams:list": {
5169
+ "aliases": [],
5170
+ "args": {},
5171
+ "description": "List the teams (people with scope) in your organization",
5172
+ "examples": [
5173
+ "<%= config.bin %> teams list",
5174
+ "<%= config.bin %> teams list --json"
5175
+ ],
5176
+ "flags": {
5177
+ "json": {
5178
+ "description": "Format output as json.",
5179
+ "helpGroup": "GLOBAL",
5180
+ "name": "json",
5181
+ "allowNo": false,
5182
+ "type": "boolean"
5183
+ },
5184
+ "page": {
5185
+ "description": "Page number",
5186
+ "name": "page",
5187
+ "default": 1,
5188
+ "hasDynamicHelp": false,
5189
+ "multiple": false,
5190
+ "type": "option"
5191
+ }
5192
+ },
5193
+ "hasDynamicHelp": false,
5194
+ "hiddenAliases": [],
5195
+ "id": "teams:list",
5196
+ "pluginAlias": "@bussolabs/closeyourit-cli",
5197
+ "pluginName": "@bussolabs/closeyourit-cli",
5198
+ "pluginType": "core",
5199
+ "strict": true,
5200
+ "enableJsonFlag": true,
5201
+ "isESM": false,
5202
+ "relativePath": [
5203
+ "dist",
5204
+ "commands",
5205
+ "teams",
5206
+ "list.js"
5207
+ ]
5208
+ },
5209
+ "teams:remove-member": {
5210
+ "aliases": [],
5211
+ "args": {
5212
+ "team": {
5213
+ "description": "Team id (UUID) or name",
5214
+ "name": "team",
5215
+ "required": true
5216
+ },
5217
+ "member": {
5218
+ "description": "Member account id or email",
5219
+ "name": "member",
5220
+ "required": true
5221
+ }
5222
+ },
5223
+ "description": "Remove a person from a team, keeping the other members",
5224
+ "examples": [
5225
+ "<%= config.bin %> teams remove-member DriverOne client@acme.com"
5226
+ ],
5227
+ "flags": {
5228
+ "json": {
5229
+ "description": "Format output as json.",
5230
+ "helpGroup": "GLOBAL",
5231
+ "name": "json",
5232
+ "allowNo": false,
5233
+ "type": "boolean"
5234
+ }
5235
+ },
5236
+ "hasDynamicHelp": false,
5237
+ "hiddenAliases": [],
5238
+ "id": "teams:remove-member",
5239
+ "pluginAlias": "@bussolabs/closeyourit-cli",
5240
+ "pluginName": "@bussolabs/closeyourit-cli",
5241
+ "pluginType": "core",
5242
+ "strict": true,
5243
+ "enableJsonFlag": true,
5244
+ "isESM": false,
5245
+ "relativePath": [
5246
+ "dist",
5247
+ "commands",
5248
+ "teams",
5249
+ "remove-member.js"
5250
+ ]
5251
+ },
5252
+ "teams:show": {
5253
+ "aliases": [],
5254
+ "args": {
5255
+ "team": {
5256
+ "description": "Team id (UUID) or name",
5257
+ "name": "team",
5258
+ "required": true
5259
+ }
5260
+ },
5261
+ "description": "Show a team by id or name (roles, group/project scope, members)",
5262
+ "examples": [
5263
+ "<%= config.bin %> teams show DriverOne"
5264
+ ],
5265
+ "flags": {
5266
+ "json": {
5267
+ "description": "Format output as json.",
5268
+ "helpGroup": "GLOBAL",
5269
+ "name": "json",
5270
+ "allowNo": false,
5271
+ "type": "boolean"
5272
+ }
5273
+ },
5274
+ "hasDynamicHelp": false,
5275
+ "hiddenAliases": [],
5276
+ "id": "teams:show",
5277
+ "pluginAlias": "@bussolabs/closeyourit-cli",
5278
+ "pluginName": "@bussolabs/closeyourit-cli",
5279
+ "pluginType": "core",
5280
+ "strict": true,
5281
+ "enableJsonFlag": true,
5282
+ "isESM": false,
5283
+ "relativePath": [
5284
+ "dist",
5285
+ "commands",
5286
+ "teams",
5287
+ "show.js"
5288
+ ]
5289
+ },
5290
+ "teams:update": {
5291
+ "aliases": [],
5292
+ "args": {
5293
+ "team": {
5294
+ "description": "Team id (UUID) or name",
5295
+ "name": "team",
5296
+ "required": true
5297
+ }
5298
+ },
5299
+ "description": "Update a team. Each given dimension REPLACES the whole set for that dimension.",
5300
+ "examples": [
5301
+ "<%= config.bin %> teams update DriverOne --role Client --group DriverOne",
5302
+ "<%= config.bin %> teams update DriverOne --name \"DriverOne clients\""
5303
+ ],
5304
+ "flags": {
5305
+ "json": {
5306
+ "description": "Format output as json.",
5307
+ "helpGroup": "GLOBAL",
5308
+ "name": "json",
5309
+ "allowNo": false,
5310
+ "type": "boolean"
5311
+ },
5312
+ "color": {
5313
+ "description": "Color label",
5314
+ "name": "color",
5315
+ "hasDynamicHelp": false,
5316
+ "multiple": false,
5317
+ "type": "option"
5318
+ },
5319
+ "group": {
5320
+ "description": "Group id or name (repeatable; replaces the group scope)",
5321
+ "name": "group",
5322
+ "hasDynamicHelp": false,
5323
+ "multiple": true,
5324
+ "type": "option"
5325
+ },
5326
+ "member": {
5327
+ "description": "Member account id or email (repeatable; replaces the members)",
5328
+ "name": "member",
5329
+ "hasDynamicHelp": false,
5330
+ "multiple": true,
5331
+ "type": "option"
5332
+ },
5333
+ "name": {
5334
+ "description": "New name",
5335
+ "name": "name",
5336
+ "hasDynamicHelp": false,
5337
+ "multiple": false,
5338
+ "type": "option"
5339
+ },
5340
+ "project": {
5341
+ "description": "Project id or key (repeatable; replaces the project scope)",
5342
+ "name": "project",
5343
+ "hasDynamicHelp": false,
5344
+ "multiple": true,
5345
+ "type": "option"
5346
+ },
5347
+ "role": {
5348
+ "description": "Role id or name (repeatable; replaces the roles)",
5349
+ "name": "role",
5350
+ "hasDynamicHelp": false,
5351
+ "multiple": true,
5352
+ "type": "option"
5353
+ }
5354
+ },
5355
+ "hasDynamicHelp": false,
5356
+ "hiddenAliases": [],
5357
+ "id": "teams:update",
5358
+ "pluginAlias": "@bussolabs/closeyourit-cli",
5359
+ "pluginName": "@bussolabs/closeyourit-cli",
5360
+ "pluginType": "core",
5361
+ "strict": true,
5362
+ "enableJsonFlag": true,
5363
+ "isESM": false,
5364
+ "relativePath": [
5365
+ "dist",
5366
+ "commands",
5367
+ "teams",
5368
+ "update.js"
5369
+ ]
5370
+ },
5371
+ "servers:tokens:create": {
5372
+ "aliases": [],
5373
+ "args": {
5374
+ "name": {
5375
+ "description": "Token name (e.g. fleet)",
5376
+ "name": "name",
5377
+ "required": true
5378
+ }
5379
+ },
5380
+ "description": "Create a fleet enrollment token (the secret is shown only once)",
5381
+ "examples": [
5382
+ "<%= config.bin %> servers tokens create fleet"
5383
+ ],
5384
+ "flags": {
5385
+ "json": {
5386
+ "description": "Format output as json.",
5387
+ "helpGroup": "GLOBAL",
5388
+ "name": "json",
5389
+ "allowNo": false,
5390
+ "type": "boolean"
5391
+ }
5392
+ },
5393
+ "hasDynamicHelp": false,
5394
+ "hiddenAliases": [],
5395
+ "id": "servers:tokens:create",
5396
+ "pluginAlias": "@bussolabs/closeyourit-cli",
5397
+ "pluginName": "@bussolabs/closeyourit-cli",
5398
+ "pluginType": "core",
5399
+ "strict": true,
5400
+ "enableJsonFlag": true,
5401
+ "isESM": false,
5402
+ "relativePath": [
5403
+ "dist",
5404
+ "commands",
5405
+ "servers",
5406
+ "tokens",
5407
+ "create.js"
5408
+ ]
5409
+ },
5410
+ "servers:tokens:list": {
5411
+ "aliases": [],
5412
+ "args": {},
5413
+ "description": "List the fleet enrollment tokens (agents authenticate with these)",
5414
+ "examples": [
5415
+ "<%= config.bin %> servers tokens list"
5416
+ ],
5417
+ "flags": {
5418
+ "json": {
5419
+ "description": "Format output as json.",
5420
+ "helpGroup": "GLOBAL",
5421
+ "name": "json",
5422
+ "allowNo": false,
5423
+ "type": "boolean"
5424
+ },
5425
+ "page": {
5426
+ "description": "Page number",
5427
+ "name": "page",
5428
+ "default": 1,
5429
+ "hasDynamicHelp": false,
5430
+ "multiple": false,
5431
+ "type": "option"
5432
+ }
5433
+ },
5434
+ "hasDynamicHelp": false,
5435
+ "hiddenAliases": [],
5436
+ "id": "servers:tokens:list",
5437
+ "pluginAlias": "@bussolabs/closeyourit-cli",
5438
+ "pluginName": "@bussolabs/closeyourit-cli",
5439
+ "pluginType": "core",
5440
+ "strict": true,
5441
+ "enableJsonFlag": true,
5442
+ "isESM": false,
5443
+ "relativePath": [
5444
+ "dist",
5445
+ "commands",
5446
+ "servers",
5447
+ "tokens",
5448
+ "list.js"
5449
+ ]
5450
+ },
5451
+ "servers:tokens:revoke": {
5452
+ "aliases": [],
5453
+ "args": {
5454
+ "id": {
5455
+ "description": "Enrollment token id",
5456
+ "name": "id",
5457
+ "required": true
5458
+ }
5459
+ },
5460
+ "description": "Revoke a fleet enrollment token (agents using it stop pushing)",
5461
+ "examples": [
5462
+ "<%= config.bin %> servers tokens revoke <token-id> --confirm"
5463
+ ],
5464
+ "flags": {
5465
+ "json": {
5466
+ "description": "Format output as json.",
5467
+ "helpGroup": "GLOBAL",
5468
+ "name": "json",
5469
+ "allowNo": false,
5470
+ "type": "boolean"
5471
+ },
5472
+ "confirm": {
5473
+ "description": "Required: confirm the revocation",
5474
+ "name": "confirm",
5475
+ "allowNo": false,
5476
+ "type": "boolean"
5477
+ }
5478
+ },
5479
+ "hasDynamicHelp": false,
5480
+ "hiddenAliases": [],
5481
+ "id": "servers:tokens:revoke",
5482
+ "pluginAlias": "@bussolabs/closeyourit-cli",
5483
+ "pluginName": "@bussolabs/closeyourit-cli",
5484
+ "pluginType": "core",
5485
+ "strict": true,
5486
+ "enableJsonFlag": true,
5487
+ "isESM": false,
5488
+ "relativePath": [
5489
+ "dist",
5490
+ "commands",
5491
+ "servers",
5492
+ "tokens",
5493
+ "revoke.js"
5494
+ ]
5030
5495
  }
5031
5496
  },
5032
- "version": "0.0.8"
5497
+ "version": "0.0.9"
5033
5498
  }